16 static const char *
const TAG =
"shutdown.switch";
24 ESP_LOGI(TAG,
"Shutting down...");
32 esp_deep_sleep_start();
void run_safe_shutdown_hooks()
void write_state(bool state) override
void dump_config() override
Application App
Global storage of Application pointer - only one Application can exist.
Implementation of SPI Controller mode.
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 IRAM_ATTR HOT delay(uint32_t ms)