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