3#if defined(USE_ESP_IDF) && defined(USE_SENDSPIN_SWITCH)
23 this->
parent_->set_enabled(state);
39 this->
parent_->set_unpaired_access_enabled(state);
void dump_config() override
void write_state(bool state) override
void write_state(bool state) override
void dump_config() override
bool state
The current reported state of the binary sensor.
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.
ESPHOME_LOG_TAG(TAG, "sendspin.image")
ESPPreferences * global_preferences
bool sync()
Commit pending writes to flash.