From b7cb0af87631d7b05d27624ee5c7dcc53610b3f3 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 28 Sep 2024 23:11:21 +0200 Subject: [PATCH] nodes/d1-mini-scd40-27afc1: Align config to nodes/d1-mini-scd40-fee158 --- nodes/d1-mini-scd40-27afc1/firmware.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/nodes/d1-mini-scd40-27afc1/firmware.yaml b/nodes/d1-mini-scd40-27afc1/firmware.yaml index 06992f2..178c9aa 100644 --- a/nodes/d1-mini-scd40-27afc1/firmware.yaml +++ b/nodes/d1-mini-scd40-27afc1/firmware.yaml @@ -73,6 +73,8 @@ time: - platform: sntp id: time_source timezone: "Europe/Berlin" + servers: + - 10.152.0.1 # Disable LED indicator during nighttime # https://esphome.io/components/time/index.html#on-time-trigger on_time: @@ -227,11 +229,24 @@ button: on_press: then: - scd4x.perform_forced_calibration: - # Average outdoor value for March 2023 - # https://www.co2.earth/daily-co2 - value: 421 + value: !lambda |- + return id(co2_sensor_calibration_normal).state; 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: - platform: neopixelbus id: indicator