Compare commits

..

2 Commits

2 changed files with 18 additions and 5 deletions

View File

@ -29,10 +29,10 @@ globals:
# Configure the brightness values for the LED indicator # Configure the brightness values for the LED indicator
- id: dim - id: dim
type: float type: float
initial_value: '0.5' initial_value: '0.35'
- id: bright - id: bright
type: float type: float
initial_value: '1.0' initial_value: '0.5'
esphome: esphome:
name: "d1-mini-scd40-${macsuffix}" name: "d1-mini-scd40-${macsuffix}"

View File

@ -227,11 +227,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