nodes/d1-mini-scd40-27afc1: Align config to nodes/d1-mini-scd40-fee158

This commit is contained in:
clerie 2024-09-28 23:11:21 +02:00
parent 422d266c7f
commit b7cb0af876

View File

@ -73,6 +73,8 @@ time:
- platform: sntp - platform: sntp
id: time_source id: time_source
timezone: "Europe/Berlin" timezone: "Europe/Berlin"
servers:
- 10.152.0.1
# Disable LED indicator during nighttime # Disable LED indicator during nighttime
# https://esphome.io/components/time/index.html#on-time-trigger # https://esphome.io/components/time/index.html#on-time-trigger
on_time: on_time:
@ -227,11 +229,24 @@ button:
on_press: on_press:
then: then:
- scd4x.perform_forced_calibration: - scd4x.perform_forced_calibration:
# Average outdoor value for March 2023 value: !lambda |-
# https://www.co2.earth/daily-co2 return id(co2_sensor_calibration_normal).state;
value: 421
id: scd40 id: scd40
number:
- platform: template
id: co2_sensor_calibration_normal
name: "${macsuffix} C02 Sensor Calibration Normal"
mode: "box"
optimistic: true
unit_of_measurement: "ppm"
# Average outdoor value for March 2023
# https://www.co2.earth/daily-co2
initial_value: 421
min_value: 0
max_value: 1000000
step: 1
light: light:
- platform: neopixelbus - platform: neopixelbus
id: indicator id: indicator