6#ifdef USE_DATETIME_TIME
25 void setup()
override;
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
MQTTTimeComponent(datetime::TimeEntity *time)
Construct this MQTTTimeComponent instance with the provided friendly_name and time.
std::string component_type() const override
datetime::TimeEntity * time_
bool send_initial_state() override
void dump_config() override
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
const EntityBase * get_entity() const override
void setup() override
Override setup.
bool publish_state(uint8_t hour, uint8_t minute, uint8_t second)
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().