8 if (pressed != this->
state)
void publish_state(bool new_state)
Publish a new state to the front-end.
bool state
The current state of this binary sensor. Also used as the backing storage for StatefulEntityBase.
void keys_update(uint8_t keys) override
Providing packet encoding functions for exchanging data with a remote host.