12 void setup()
override;
Base class for all switches.
bool state
The current reported state of the binary sensor.
void dump_config() override
void write_state(bool state) override
void set_tuya_parent(Tuya *parent)
void set_switch_id(uint8_t switch_id)
Providing packet encoding functions for exchanging data with a remote host.