mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
Updated confusing deep_sleep.prevent documentation (#287)
* Updated confusing deep_sleep.prevent documentation * Fixed wording
This commit is contained in:
parent
78da768745
commit
3d6a4c1169
@ -103,11 +103,11 @@ Useful for
|
||||
|
||||
You can use this automation to automatically prevent deep sleep when a MQTT message on the topic
|
||||
``livingroom/ota_mode`` is received. Then, to do the OTA update, just
|
||||
use a MQTT client to publish a retained MQTT message described above. When the node wakes up again
|
||||
use a MQTT client to publish a retained MQTT message described below. When the node wakes up again
|
||||
it will no longer enter deep sleep mode and you can upload your OTA update.
|
||||
|
||||
Remember to turn "OTA mode" off again after the OTA update by sending a MQTT message with the payload
|
||||
``OFF``.
|
||||
``OFF``. Note that the device won't enter deep sleep again until the next reboot.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
@ -118,6 +118,7 @@ Useful for
|
||||
# ...
|
||||
on_message:
|
||||
topic: livingroom/ota_mode
|
||||
payload: 'ON'
|
||||
then:
|
||||
- deep_sleep.prevent: deep_sleep_1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user