30 void setup()
override;
MQTTFanComponent(fan::Fan *state)
void setup() override
Setup the fan subscriptions and discovery.
const EntityBase * get_entity() const override
void dump_config() override
fan::Fan * get_state() const
std::string component_type() const override
'fan' component type for discovery.
state state state void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
Simple Helper struct used for Home Assistant MQTT send_discovery().
bool send_initial_state() override
Send the full current state to MQTT.
MQTT_COMPONENT_CUSTOM_TOPIC(oscillation, command) MQTT_COMPONENT_CUSTOM_TOPIC(oscillation
Implementation of SPI Controller mode.
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...