Add friendly_name to make HA folks happy

This commit is contained in:
2025-05-09 21:01:58 +02:00
parent f552ea0f97
commit 9cc69d7ad2
70 changed files with 516 additions and 266 deletions

View File

@@ -6,6 +6,7 @@ substitutions:
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
@@ -36,7 +37,7 @@ binary_sensor:
number: 0
mode: INPUT_PULLUP
inverted: True
name: ${name} Light Switch
name: Light Switch
device_class: light
on_click:
- min_length: 50ms
@@ -45,7 +46,7 @@ binary_sensor:
- homeassistant.service:
service: light.toggle
data:
entity_id: light.basement_light
entity_id: light.mcu_basement_2_light
- min_length: 351ms
max_length: 1000ms
then:
@@ -73,7 +74,7 @@ binary_sensor:
number: 10
mode: INPUT_PULLUP
inverted: true
name: ${name} Socket 1 Switch
name: Socket 1 Switch
on_press:
- switch.toggle: relay_2
- platform: gpio
@@ -81,7 +82,7 @@ binary_sensor:
number: 9
mode: INPUT_PULLUP
inverted: true
name: ${name} Door
name: Door
device_class: door
filters:
invert:
@@ -89,11 +90,11 @@ binary_sensor:
- homeassistant.service:
service: light.turn_on
data:
entity_id: light.basement_light
entity_id: light.mcu_basement_2_light
select:
- platform: template
name: "Sewage Treatment Blower"
name: Sewage Treatment Blower
icon: mdi:hair-dryer-outline
optimistic: true
options:
@@ -125,13 +126,13 @@ status_led:
switch:
- platform: gpio
name: "Sewage Treatment Blower"
name: Sewage Treatment Blower
icon: mdi:hair-dryer-outline
pin: 12
id: relay_1
restore_mode: ALWAYS_ON
- platform: gpio
name: ${name} Socket 1
name: Socket 1
icon: mdi:power-socket-fr
pin: 5
id: relay_2