deep_sleep.allow docs (#2066)

This commit is contained in:
Jesse Hills 2022-05-11 12:47:56 +12:00 committed by GitHub
parent c51c935bf0
commit 9805f81b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -159,6 +159,19 @@ Useful for keeping the ESP active during data transfer or OTA updating (See note
then:
- deep_sleep.enter: deep_sleep_1
.. _deep_sleep-allow_action:
``deep_sleep.allow`` Action
-----------------------------
This action allows the given deep sleep component to enter deep sleep, after previously being prevented.
.. code-block:: yaml
on_...:
then:
- deep_sleep.allow: deep_sleep_1
See Also
--------

View File

@ -366,7 +366,7 @@ All Actions
:ref:`cover.control <cover-control_action>`
- :ref:`fan.toggle <fan-toggle_action>` / :ref:`fan.turn_off <fan-turn_off_action>` / :ref:`fan.turn_on <fan-turn_on_action>`
- :ref:`output.turn_off <output-turn_off_action>` / :ref:`output.turn_on <output-turn_on_action>` / :ref:`output.set_level <output-set_level_action>`
- :ref:`deep_sleep.enter <deep_sleep-enter_action>` / :ref:`deep_sleep.prevent <deep_sleep-prevent_action>`
- :ref:`deep_sleep.enter <deep_sleep-enter_action>` / :ref:`deep_sleep.prevent <deep_sleep-prevent_action>` / :ref:`deep_sleep.allow <deep_sleep-allow_action>`
- :ref:`sensor.template.publish <sensor-template-publish_action>` / :ref:`binary_sensor.template.publish <binary_sensor-template-publish_action>`
/ :ref:`cover.template.publish <cover-template-publish_action>` / :ref:`switch.template.publish <switch-template-publish_action>`
/ :ref:`text_sensor.template.publish <text_sensor-template-publish_action>`