Unified device setup / descriptors / variables. Purely cosmetic ;-)

This commit is contained in:
Marcus Scholz 2023-05-27 16:52:05 +02:00
parent 40e18e493b
commit abef860f2e
8 changed files with 87 additions and 21 deletions

View File

@ -1,12 +1,25 @@
substitutions:
name: "aussensensor"
friendly_name: "Außensensor"
esphome: esphome:
name: aussensensor name: ${name}
platform: ESP32 friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: sensor.outdoor
version: "0.8"
min_version: 2022.1.0
esp32:
board: nodemcu-32s board: nodemcu-32s
framework:
type: arduino
wifi: wifi:
ssid: "Voltage-legacy" ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: aussensensor.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on

View File

@ -1,7 +1,16 @@
esphome: substitutions:
name: epaperframe name: epaperframe
platform: ESP32 friendly_name: "Info-Dashboard"
board: nodemcu-32s
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: dashboard.epaper
version: "1.0"
min_version: 2022.4.0
on_boot: on_boot:
priority: -10 priority: -10
then: then:
@ -9,6 +18,11 @@ esphome:
- display.page.show: power # temporary for power page dev - display.page.show: power # temporary for power page dev
- component.update: epaper - component.update: epaper
esp32:
board: nodemcu-32s
framework:
type: arduino
wifi: wifi:
ssid: "Voltage-legacy" ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk

View File

@ -1,12 +1,25 @@
substitutions:
name: "geigercounter"
friendly_name: "Geigerzähler"
esphome: esphome:
name: geigercounter name: ${name}
platform: ESP32 friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: sensor.radiation
version: "1.0"
min_version: 2022.11.0
esp32:
board: nodemcu-32s board: nodemcu-32s
framework:
type: arduino
wifi: wifi:
ssid: "Voltage-legacy" ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: geigercounter.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on

View File

@ -1,7 +1,15 @@
substitutions:
name: "livingroom"
friendly_name: "Luftqualität Wohnzimmer"
esphome: esphome:
name: livingroom name: ${name}
platform: ESP32 friendly_name: ${friendly_name}
board: nodemcu-32s name_add_mac_suffix: false
project:
name: sensor.${name}
version: "1.1"
min_version: 2021.9.0
on_boot: on_boot:
then: then:
@ -41,10 +49,15 @@ esphome:
id: pm25_warn id: pm25_warn
state: "grün" state: "grün"
esp32:
board: nodemcu-32s
framework:
type: arduino
wifi: wifi:
ssid: "Voltage-legacy" ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: livingroom.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on

View File

@ -26,7 +26,7 @@ ota:
wifi: wifi:
ssid: Voltage-legacy ssid: Voltage-legacy
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: m5stack-atom-echo.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on
# Enable fallback hotspot (captive portal) in case wifi connection fails # Enable fallback hotspot (captive portal) in case wifi connection fails

View File

@ -12,7 +12,7 @@ ota:
wifi: wifi:
ssid: Voltage-legacy ssid: Voltage-legacy
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: raspiaudio-muse-luxe.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on
# Enable fallback hotspot (captive portal) in case wifi connection fails # Enable fallback hotspot (captive portal) in case wifi connection fails

View File

@ -1,5 +1,6 @@
esphome: esphome:
name: serverroom name: serverroom
friendly_name: "Serverraum Luft"
platform: ESP32 platform: ESP32
board: nodemcu-32s board: nodemcu-32s

View File

@ -1,8 +1,15 @@
esphome: substitutions:
name: sleepingroom name: "sleepingroom"
platform: ESP32 friendly_name: "Luftqualität Schlafzimmer"
board: nodemcu-32s
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: sensor.${name}
version: "1.0"
min_version: 2021.9.0
on_boot: on_boot:
then: then:
- light.turn_on: - light.turn_on:
@ -41,10 +48,15 @@ esphome:
id: pm25_warn id: pm25_warn
state: "grün" state: "grün"
esp32:
board: nodemcu-32s
framework:
type: arduino
wifi: wifi:
ssid: "Voltage-legacy" ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk password: !secret voltage_legacy_psk
use_address: sleepingroom.home use_address: ${name}.home
power_save_mode: high power_save_mode: high
fast_connect: on fast_connect: on