Add docs for deep_sleep until (#2012)

This commit is contained in:
Jesse Hills 2022-04-13 12:55:31 +12:00 committed by GitHub
parent 9bb6cd134d
commit 3e620d0157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: