32 void setup() override;
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
fan::Fan * get_state() const
const EntityBase * get_entity() const override
void dump_config() override
state state state state void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool send_initial_state() override
Send the full current state to MQTT.
std::string component_type() const override
'fan' component type for discovery.
void setup() override
Setup the fan subscriptions and discovery.
MQTT_COMPONENT_CUSTOM_TOPIC(direction, command) MQTT_COMPONENT_CUSTOM_TOPIC(direction
MQTTFanComponent(fan::Fan *state)
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().