From 52dddb800c672e0c7c1e4717bcbb097cb8c61a60 Mon Sep 17 00:00:00 2001 From: w00zy Date: Fri, 1 Sep 2023 23:19:15 +0100 Subject: [PATCH] update docs (#1003) * updated docs * Update ReleaseNotes.md --------- Co-authored-by: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> --- docs/ReleaseNotes.md | 4 ++-- docs/en/customization.md | 30 +++++++++++++++++++++++++++--- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/docs/ReleaseNotes.md b/docs/ReleaseNotes.md index 0ae382f..867cf08 100644 --- a/docs/ReleaseNotes.md +++ b/docs/ReleaseNotes.md @@ -151,8 +151,8 @@ See here: https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap ## What's Changed * @chpego - Fixes on the blueprint UI (#928) -* @WZYProjects - Human readable "Last started" sensor (#986) +* @WZYProjects - Human readable "Last started" sensor (#986) and support with customization (#1003) ## New Contributors * @chpego -* @WZYProjects \ No newline at end of file +* @WZYProjects diff --git a/docs/en/customization.md b/docs/en/customization.md index 18407b6..3f79f83 100644 --- a/docs/en/customization.md +++ b/docs/en/customization.md @@ -65,7 +65,19 @@ api: ```   ### Custom OTA password -By default, the Wi-Fi password will be used as your OTA password, but you can replace it using this customization: +By default, the Wi-Fi password will be used as your OTA password, but you can replace it.
+First, you need to change the default password using this code. +```yaml +# change OTA password, remove after flashing +esphome: + on_boot: + - lambda: |- + id(my_ota).set_auth_password("New password"); +ota: + password: !secret wifi_password + id: my_ota +``` +After flashing the device, you must remove the code above and replace it with the code below to start using this customization. ```yaml # Use my global OTA password ota: @@ -73,7 +85,7 @@ ota: ```   ### Web server credentials -By default, the web server credentials are defined by this project as using `admin` as `username` and your Wi-Fi password, but you can replace it using this customization: +By default, the web server credentials are defined by this project using `admin` as `username` and your `Wi-Fi password` as `password`, but you can replace it using this customization: ```yaml # Custom web server credentials web_server: @@ -124,7 +136,19 @@ wifi: hidden: true fast_connect: true ``` - +  +### Connect to multiple networks +NSPanel will attempt to connect to the one with the highest signal strength or, if you set a priority, it will try to connect to the highest priority. After failing it will connect to the second network. +```yaml +# Set dual network +wifi: + networks: + - id: !extend wifi_default + priority: 10 + - ssid: !secret wifi_ssid_backup + password: !secret wifi_password_backup + priority: 0 +```   ### SNTP (time) server ESPHome takes it's time from Home Assistant, however you can configure it to use a Network Time Server instead.