diff --git a/nodes/d1-mini-scd40-fee158/firmware.yaml b/nodes/d1-mini-scd40-fee158/firmware.yaml index 1cf0b8d..4928f4d 100644 --- a/nodes/d1-mini-scd40-fee158/firmware.yaml +++ b/nodes/d1-mini-scd40-fee158/firmware.yaml @@ -227,11 +227,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