20 void setup()
override;
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
void dump_config() override
light::LightState * state_
MQTTJSONLightComponent(light::LightState *state)
const EntityBase * get_entity() const override
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool send_initial_state() override
light::LightState * get_state() const
std::string component_type() const override
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().