Updated confusing deep_sleep.prevent documentation (#287)

* Updated confusing deep_sleep.prevent documentation

* Fixed wording
This commit is contained in:
Olivér Falvai 2019-07-11 10:20:04 +02:00 committed by Otto Winter
parent 78da768745
commit 3d6a4c1169
1 changed files with 3 additions and 2 deletions

View File

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