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

@@ -1,7 +1,6 @@
substitutions:
device: nspanel-patio
name: Patio NSPanel
name_short: Patio
area: Living Room / Kitchen
comment: "${area}, Patio | NSPanel"
panel_recv_topic: "tele/${device}/RESULT"
@@ -10,6 +9,7 @@ substitutions:
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
on_boot:
@@ -184,7 +184,7 @@ time:
binary_sensor:
- platform: gpio
name: ${name} Left Button
name: Left Button
pin:
number: 14
inverted: true
@@ -196,7 +196,7 @@ binary_sensor:
root["CustomRecv"] = "event,buttonPress2,navigate.cardGrid_main,button";
- platform: gpio
name: ${name} Right Button
name: Right Button
pin:
number: 27
inverted: true
@@ -208,7 +208,7 @@ binary_sensor:
- homeassistant.service:
service: light.toggle
data:
entity_id: light.patio_light
entity_id: light.patio_lights
- mqtt.publish_json:
topic: $panel_recv_topic
payload: |-
@@ -230,7 +230,7 @@ switch:
number: 22
- platform: gpio
name: ${name_short} Light MAIN
name: Light MAIN
id: relay_2
restore_mode: always_on
entity_category: config
@@ -238,7 +238,7 @@ switch:
number: 19
- platform: gpio
name: ${name} Screen Power
name: Screen Power
id: screen_power
entity_category: config
pin:
@@ -270,7 +270,7 @@ sensor:
b_constant: 3950
reference_temperature: 25°C
reference_resistance: 10kOhm
name: "Living Room Temperature"
name: Living Room Temperature
- platform: template
id: room_temperature_id