nodes/d1-mini-scd40-fee158: Set custom CO2 sensor calibration normal
This commit is contained in:
parent
ca4aa0cf86
commit
fdc292525f
@ -227,10 +227,23 @@ button:
|
|||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- scd4x.perform_forced_calibration:
|
- scd4x.perform_forced_calibration:
|
||||||
|
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
|
# Average outdoor value for March 2023
|
||||||
# https://www.co2.earth/daily-co2
|
# https://www.co2.earth/daily-co2
|
||||||
value: 421
|
initial_value: 421
|
||||||
id: scd40
|
min_value: 0
|
||||||
|
max_value: 1000000
|
||||||
|
step: 1
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: neopixelbus
|
- platform: neopixelbus
|
||||||
|
Loading…
Reference in New Issue
Block a user