13#include <zephyr/sys/poweroff.h>
24 ESP_LOGI(TAG,
"Shutting down");
26#if defined(USE_ESP8266)
28#elif defined(USE_ESP32)
29 esp_deep_sleep_start();
30#elif defined(USE_BK72XX)
32 lt_deep_sleep_enter();
33#elif defined(USE_ZEPHYR) && defined(CONFIG_POWEROFF)
35#elif defined(USE_HOST)
void safe_shutdown(uint32_t timeout_ms)
Run the safe shutdown hooks, give components up to timeout_ms to tear down, then run the powerdown ho...
void shutdown_device()
Run by the shutdown button and switch.
ESPHOME_LOG_TAG(TAG, "shutdown")
void HOT delay(uint32_t ms)
Application App
Global storage of Application pointer - only one Application can exist.