mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-21 03:21:20 +02:00
Update esphome.rst: Add Removing a Password section (#4026)
This commit is contained in:
parent
37554dff7a
commit
d88b20456e
@ -66,6 +66,7 @@ won't work. This issue can be worked around by executing the operations separate
|
|||||||
id: my_ota
|
id: my_ota
|
||||||
password: "Old password"
|
password: "Old password"
|
||||||
|
|
||||||
|
The "id: my_ota" in the OTA block is important. This is referenced in the lambda.
|
||||||
After this trick has been used to change the password, the ``on_boot`` trigger may be removed and the old password
|
After this trick has been used to change the password, the ``on_boot`` trigger may be removed and the old password
|
||||||
replaced with the new password in the ``ota:`` section.
|
replaced with the new password in the ``ota:`` section.
|
||||||
|
|
||||||
@ -74,6 +75,16 @@ Adding a Password
|
|||||||
|
|
||||||
If OTA is already enabled without a password, simply add a ``password:`` line to the existing ``ota:`` config block.
|
If OTA is already enabled without a password, simply add a ``password:`` line to the existing ``ota:`` config block.
|
||||||
|
|
||||||
|
Removing a Password
|
||||||
|
*******************
|
||||||
|
|
||||||
|
- If you know your password but want to remove it, enter an empty string: ``id(my_ota).set_auth_password("");`` instead of changing.
|
||||||
|
- If you no longer know your password and the web server has been activated:
|
||||||
|
|
||||||
|
- Remove the OTA password from the configuration
|
||||||
|
- Build a new image locally.
|
||||||
|
- Execute the OTA update directly via the ESP web server.
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user