From 3e620d0157c4daa0c64f65477a759d2740ceeaa7 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 13 Apr 2022 12:55:31 +1200 Subject: [PATCH] Add docs for deep_sleep until (#2012) --- components/deep_sleep.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/deep_sleep.rst b/components/deep_sleep.rst index 9516524ab..144bb337e 100644 --- a/components/deep_sleep.rst +++ b/components/deep_sleep.rst @@ -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 `, :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: