Dear Forum,
I have 21 ESPHome devices in my house. I created the first ones some two years ago and the most recent yesterday. During this time I learned a lot of improvements that I would like to have in all of them. So I frequently update all cofigurations manually to incorporate the lessons learned. This is quite tedious and prown to errors. I would wish there is another way.
Actual example code (reduced to the minimal lines to show myquestion):
esphome:
name: mobil_hal9000
platform: ESP32
board: esp32dev
wifi:
networks:
- ssid: "SSID1"
password: "PW1"
- ssid: "SSID2"
password: "PW2"
ap:
ssid: "mobil_hal9000 Fallback Hotspot"
password: "PW5"
captive_portal:
text_sensor:
- platform: wifi_info
ip_address:
name: "mobil_hal9000_BMS_IP Adress"
So the first thing I would like to have is a way of reusing the esphome name in the config. Something like this:
esphome:
name: mobil_hal9000
platform: ESP32
board: esp32dev
[...]
ap:
ssid: "$espname Fallback Hotspot"
password: "PW5"
captive_portal:
If this works, I can hopefully use the include mechanisms to have the common parts of the config in just one file, using ā$espnameā as a variable. Then I would just edit one file, do an āupdate allā and be ready to goā¦ Also this would highly increase the readability of the configurations.
Is there a way to do this?