|
ESPHome 2026.8.0-dev
|
Data Structures | |
| class | AllowDeepSleepAction |
| class | DeepSleepComponent |
| This component allows setting up the node to go into deep sleep mode to conserve battery. More... | |
| class | EnterDeepSleepAction |
| class | Ext1WakeTrigger |
| Fires once on boot when the device was woken from deep sleep by the given ext1 pin. More... | |
| struct | Ext1Wakeup |
| class | PreventDeepSleepAction |
| class | WakeTrigger |
| Fires once on boot when the device woke from deep sleep, with the wakeup cause. More... | |
| struct | WakeupCauseToRunDuration |
| struct | WakeUpPinItem |
Enumerations | |
| enum | WakeupPinMode { WAKEUP_PIN_MODE_IGNORE = 0 , WAKEUP_PIN_MODE_KEEP_AWAKE , WAKEUP_PIN_MODE_INVERT_WAKEUP } |
| The values of this enum define what should be done if deep sleep is set up with a wakeup pin on the ESP32 and the scenario occurs that the wakeup pin is already in the wakeup state. More... | |
| enum | WakeupCause : uint8_t { WAKEUP_CAUSE_NONE = 0 , WAKEUP_CAUSE_UNKNOWN , WAKEUP_CAUSE_TIMER , WAKEUP_CAUSE_GPIO , WAKEUP_CAUSE_TOUCH } |
| Why the device woke from deep sleep. Passed to on_wake automations. More... | |
Functions | |
| WakeupCause | get_wakeup_cause () |
| Return why the device woke from deep sleep. Implemented per platform. | |
Variables | |
| bool | global_has_deep_sleep = false |
| constexpr float | ON_WAKE_TRIGGER_SETUP_PRIORITY = 700.0f |
| Setup priority of on_wake triggers. | |
| enum esphome::deep_sleep::WakeupCause : uint8_t |
Why the device woke from deep sleep. Passed to on_wake automations.
Definition at line 66 of file deep_sleep_component.h.
The values of this enum define what should be done if deep sleep is set up with a wakeup pin on the ESP32 and the scenario occurs that the wakeup pin is already in the wakeup state.
Definition at line 25 of file deep_sleep_component.h.
| WakeupCause esphome::deep_sleep::get_wakeup_cause | ( | ) |
Return why the device woke from deep sleep. Implemented per platform.
Definition at line 11 of file deep_sleep_bk72xx.cpp.
| bool esphome::deep_sleep::global_has_deep_sleep = false |
Definition at line 11 of file deep_sleep_component.cpp.
|
inlineconstexpr |
Setup priority of on_wake triggers.
Between restoring global variables (setup_priority::HARDWARE, 800) and on_boot automations at their default priority (600), so on_wake automations can update state (e.g. globals) that on_boot automations then use.
Definition at line 88 of file deep_sleep_component.h.