Reorg substitutions

Makes easier custom passwords.
This commit is contained in:
Edward Firmo
2023-12-28 12:27:00 +01:00
parent 00640bd360
commit 33a0a34938
2 changed files with 18 additions and 6 deletions

View File

@@ -7,6 +7,13 @@
##### ATTENTION: This will add advanced elements to the core system and requires the core part. ##### ##### ATTENTION: This will add advanced elements to the core system and requires the core part. #####
##################################################################################################### #####################################################################################################
--- ---
substitutions:
##### Do not change this here. #####
##### Set your substitutions on #####
##### your base yaml file. #####
web_password: ${wifi_password}
#####################################
button: button:
##### EXIT REPARSE TFT DISPLAY ##### ##### EXIT REPARSE TFT DISPLAY #####
- name: ${device_name} Exit reparse - name: ${device_name} Exit reparse
@@ -89,4 +96,4 @@ web_server:
port: 80 port: 80
auth: auth:
username: admin username: admin
password: ${wifi_password} password: ${web_password}

View File

@@ -6,11 +6,16 @@
##################################################################################################### #####################################################################################################
--- ---
substitutions: substitutions:
##### DON'T CHANGE THIS ##### ##############################
version: "4.2dev.3" ## Change only in your ##
## local yaml substitutions ##
temp_units: "°C" temp_units: "°C"
invalid_cooldown: "500ms" invalid_cooldown: "500ms"
############################# ota_password: ${wifi_password}
ap_password: ${wifi_password}
##### DON'T CHANGE THIS ######
version: "4.2dev.3"
##############################
##### External components ##### ##### External components #####
external_components: external_components:
@@ -103,7 +108,7 @@ wifi:
password: ${wifi_password} password: ${wifi_password}
ap: ap:
ssid: "${device_name}" ssid: "${device_name}"
password: ${wifi_password} password: ${ap_password}
on_connect: on_connect:
then: then:
- script.execute: watchdog - script.execute: watchdog
@@ -114,7 +119,7 @@ wifi:
##### OTA PASSWORD ##### ##### OTA PASSWORD #####
ota: ota:
id: ota_std id: ota_std
password: ${wifi_password} password: ${ota_password}
safe_mode: true safe_mode: true
reboot_timeout: 3min reboot_timeout: 3min
num_attempts: 3 num_attempts: 3