7 static const char *
const TAG =
"copy.switch";
switch_::Switch * source_
void dump_config() override
void write_state(bool state) override
void add_on_state_callback(std::function< void(bool)> &&callback)
Set callback for state changes.
void turn_on()
Turn this switch on.
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
void publish_state(bool state)
Publish a state to the front-end from the back-end.
bool state
The current reported state of the binary sensor.
void turn_off()
Turn this switch off.