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. #####
#####################################################################################################
---
substitutions:
##### Do not change this here. #####
##### Set your substitutions on #####
##### your base yaml file. #####
web_password: ${wifi_password}
#####################################
button:
##### EXIT REPARSE TFT DISPLAY #####
- name: ${device_name} Exit reparse
@@ -89,4 +96,4 @@ web_server:
port: 80
auth:
username: admin
password: ${wifi_password}
password: ${web_password}

View File

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