5#ifdef USE_BINARY_SENSOR
21 void setup()
override;
Base class for all binary_sensor-type classes.
bool publish_state(bool state)
MQTTBinarySensorComponent(binary_sensor::BinarySensor *binary_sensor)
Construct a MQTTBinarySensorComponent.
const EntityBase * get_entity() const override
void dump_config() override
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool send_initial_state() override
std::string component_type() const override
binary_sensor::BinarySensor * binary_sensor_
void set_is_status(bool status)
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().