Base class for all binary_sensor-type classes.
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a new state to the front-end.
void on_presence(bool presence) override
binary_sensor::BinarySensor * presence_bsensor_
void dump_config() override
void set_presence_sensor(binary_sensor::BinarySensor *bsensor)
Providing packet encoding functions for exchanging data with a remote host.