Fix typos and bugs in config

This commit is contained in:
2025-06-22 00:45:41 -04:00
parent efd9fc8bfe
commit e4c1ab1ac2

View File

@ -438,7 +438,7 @@ voice_assistant:
brightness: 75% brightness: 75%
red: 0 red: 0
green: 1 green: 1
blue: 1 blue: 1
on_tts_start: on_tts_start:
- if: - if:
condition: condition:
@ -546,8 +546,8 @@ sensor:
cpu_frequency: cpu_frequency:
name: "CPU Frequency" name: "CPU Frequency"
- platform: sgp4x - platform: sgp4x
voc: voc:
name: "SGP41 VOC Index" name: "SGP41 VOC Index"
id: sgp41_voc_index id: sgp41_voc_index
accuracy_decimals: 0 accuracy_decimals: 0
@ -556,7 +556,7 @@ sensor:
- sliding_window_moving_average: # We take a reading every 15 seconds, but calculate the sliding - sliding_window_moving_average: # We take a reading every 15 seconds, but calculate the sliding
window_size: 12 # average over 12 readings i.e. 60 seconds/1 minute to normalize window_size: 12 # average over 12 readings i.e. 60 seconds/1 minute to normalize
send_every: 3 # brief spikes while still sending a value every 15 seconds. send_every: 3 # brief spikes while still sending a value every 15 seconds.
nox: nox:
name: "SGP41 NOx Index" name: "SGP41 NOx Index"
id: sgp41_nox_index id: sgp41_nox_index
accuracy_decimals: 0 accuracy_decimals: 0
@ -568,9 +568,9 @@ sensor:
compensation: compensation:
temperature_source: sht45_temperature temperature_source: sht45_temperature
humidity_source: sht45_humidity humidity_source: sht45_humidity
store_baseline: true store_baseline: true
update_interval: 5s update_interval: 5s
- platform: template - platform: template
name: "SGP41 TVOC (µg/m³)" name: "SGP41 TVOC (µg/m³)"
id: sgp41_tvoc_ugm3 id: sgp41_tvoc_ugm3
@ -582,7 +582,7 @@ sensor:
return tvoc; return tvoc;
unit_of_measurement: "µg/m³" unit_of_measurement: "µg/m³"
accuracy_decimals: 0 accuracy_decimals: 0
- platform: template - platform: template
name: "SGP41 TVOC (ppb)" name: "SGP41 TVOC (ppb)"
id: sgp41_tvoc_ppb id: sgp41_tvoc_ppb
@ -594,17 +594,17 @@ sensor:
unit_of_measurement: "ppb" unit_of_measurement: "ppb"
accuracy_decimals: 0 accuracy_decimals: 0
- platform: template - platform: template
name: "SGP41 eCO2 (appr.)" name: "SGP41 eCO2 (appr.)"
id: sgp41_eco2_appr id: sgp41_eco2_appr
icon: mdi:molecule-co2 icon: mdi:molecule-co2
lambda: |- lambda: |-
float tvoc_ppb = id(sgp41_tvoc_ppb).state; float tvoc_ppb = id(sgp41_tvoc_ppb).state;
float eco2_ppm = 400.0 + 1.5 * tvoc_ppb; float eco2_ppm = 400.0 + 1.5 * tvoc_ppb;
if (eco2_ppm > 2000) eco2_ppm = 2000; if (eco2_ppm > 2000) eco2_ppm = 2000;
return eco2_ppm; return eco2_ppm;
unit_of_measurement: "ppm" unit_of_measurement: "ppm"
accuracy_decimals: 0 accuracy_decimals: 0
- platform: sht4x - platform: sht4x
temperature: temperature:
@ -777,6 +777,8 @@ text_sensor:
mac_address: mac_address:
name: "LD2410C MAC Address" name: "LD2410C MAC Address"
button:
- platform: ld2410
restart: restart:
name: "LD2410C Restart" name: "LD2410C Restart"
icon: mdi:power-cycle icon: mdi:power-cycle