7static const char *
const TAG =
"output.switch";
11 ESP_LOGCONFIG(TAG,
"Setting up Output Switch '%s'...", this->
name_.
c_str());
constexpr const char * c_str() const
value_type value_or(U const &v) const
virtual void turn_off()
Disable this binary output.
virtual void turn_on()
Enable this binary output.
void write_state(bool state) override
output::BinaryOutput * output_
void dump_config() override
void turn_on()
Turn this switch on.
void turn_off()
Turn this switch off.
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.
Providing packet encoding functions for exchanging data with a remote host.