Add support to friendly names

Solves #1719
This commit is contained in:
Edward Firmo
2024-01-25 11:01:46 +01:00
parent da3e1d57d1
commit e5329338df
5 changed files with 129 additions and 116 deletions

View File

@@ -16,7 +16,7 @@ substitutions:
button:
##### EXIT REPARSE TFT DISPLAY #####
- name: ${name} Exit reparse
- name: Exit reparse
platform: template
icon: mdi:file-sync
id: tft_reparse_off
@@ -31,12 +31,12 @@ captive_portal:
sensor:
##### Uptime Sensors #####
- name: ${name} Uptime seconds
- name: Uptime seconds
id: uptime_sec
platform: uptime
internal: true
- name: ${name} API uptime
- name: API uptime
id: api_timestamp
platform: template
lambda: 'return id(time_provider).now().timestamp;'
@@ -46,7 +46,7 @@ sensor:
accuracy_decimals: 0
update_interval: never
- name: ${name} Device uptime
- name: Device uptime
id: device_timestamp
platform: template
lambda: 'return (id(time_provider).now().timestamp - id(uptime_sec).state);'
@@ -58,7 +58,7 @@ sensor:
text_sensor:
##### ESPhome version used to compile the app #####
- name: ${name} ESPhome Version
- name: ESPhome Version
platform: version
disabled_by_default: false
internal: false
@@ -66,14 +66,14 @@ text_sensor:
- platform: wifi_info
ip_address:
name: ${name} IP
name: IP
disabled_by_default: true
id: ip_address
ssid:
name: ${name} SSID
name: SSID
disabled_by_default: true
bssid:
name: ${name} BSSID
name: BSSID
disabled_by_default: true
time: