20 void setup()
override;
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
std::string component_type() const override
bool publish_event_(const std::string &event_type)
void dump_config() override
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool send_initial_state() override
Events do not send a state so just return true.
const EntityBase * get_entity() const override
MQTTEventComponent(event::Event *event)
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().