Added explanation how to change the password (#124)

* Added explanation how to change the password

* Update ota.rst

* Use RST syntax
This commit is contained in:
Rick van Hattem 2019-01-17 17:07:57 +01:00 committed by Otto Winter
parent 060c5eb253
commit cb2097ce6a
1 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,21 @@ Configuration variables:
to ``3232`` for the ESP32 and ``8266`` for the ESP8266.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
Updating the password:
----------------------
Since the password is used both for compiling and uploading the regular ``esphomeyaml <file> run`` won't work of course. This issue can be worked around by executing the operations separately through a ``on_boot`` trigger:
.. code-block:: yaml
esphomeyaml:
on_boot:
- lambda: |-
id(ota).set_auth_password("New password");
ota:
password: "Old password"
id: ota
.. note::
If you get errors like