6static const char *
const TAG =
"output.switch";
virtual void set_state(bool state)
Enable or disable this binary output.
void write_state(bool state) override
output::BinaryOutput * output_
void dump_config() override
void publish_state(bool state)
Publish a state to the front-end from the back-end.
optional< bool > get_initial_state_with_restore_mode()
Returns the initial state of the switch, after applying restore mode rules.
void control(bool target_state)
Control this switch using a boolean state value.