mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-12 10:24:00 +01:00
Add docs for deep_sleep until (#2012)
This commit is contained in:
parent
9bb6cd134d
commit
3e620d0157
@ -97,9 +97,20 @@ This action makes the given deep sleep component enter deep sleep immediately.
|
||||
id: deep_sleep_1
|
||||
sleep_duration: 20min
|
||||
|
||||
|
||||
# ESP32 can sleep until a specific time of day.
|
||||
on_...:
|
||||
then:
|
||||
- deep_sleep.enter:
|
||||
id: deep_sleep_1
|
||||
until: "16:00:00"
|
||||
time_id: sntp_id
|
||||
|
||||
Configuration options:
|
||||
|
||||
- **sleep_duration** (*Optional*, :ref:`templatable <config-templatable>`, :ref:`config-time`): The time duration to stay in deep sleep mode.
|
||||
- **until** (*Optional*, string): The time of day to wake up. Only on ESP32.
|
||||
- **time_id** (*Optional*, :ref:`config-id`): The ID of the time component to use for the ``until`` option. Only on ESP32.
|
||||
|
||||
|
||||
.. _deep_sleep-prevent_action:
|
||||
|
Loading…
Reference in New Issue
Block a user