Base class for all switches.
bool state
The current reported state of the binary sensor.
std::vector< uint8_t > data_off_
void write_state(bool state) override
void write_command_(bool state)
std::vector< uint8_t > data_on_
void dump_config() override
void set_data_off(const std::vector< uint8_t > &data)
uint32_t last_transmission_
void set_single_state(bool single)
void set_data_on(const std::vector< uint8_t > &data)
void set_send_every(uint32_t send_every)
Providing packet encoding functions for exchanging data with a remote host.