From cb2097ce6ac7669683f79f4f39baa495bc8c7e74 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Thu, 17 Jan 2019 17:07:57 +0100 Subject: [PATCH] Added explanation how to change the password (#124) * Added explanation how to change the password * Update ota.rst * Use RST syntax --- esphomeyaml/components/ota.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/esphomeyaml/components/ota.rst b/esphomeyaml/components/ota.rst index f14ab47a6..c4d3ce8d8 100644 --- a/esphomeyaml/components/ota.rst +++ b/esphomeyaml/components/ota.rst @@ -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 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