Switch to scd41
This commit is contained in:
parent
76c76e9e7c
commit
8e448a3122
4 changed files with 25 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
sensor:
|
sensor:
|
||||||
- !include sensor/bme280-dewpoint.yaml
|
- !include sensor/scd41-dewpoint.yaml
|
||||||
- !include sensor/bme280.yaml
|
- !include sensor/scd41.yaml
|
||||||
- !include sensor/mhz19b.yaml
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ button:
|
||||||
|
|
||||||
# https://esphome.io/components/logger.html
|
# https://esphome.io/components/logger.html
|
||||||
logger:
|
logger:
|
||||||
baud_rate: 0
|
|
||||||
|
|
||||||
# https://esphome.io/components/api.html
|
# https://esphome.io/components/api.html
|
||||||
api:
|
api:
|
||||||
|
|
8
esphome/includes/sensor/scd41-dewpoint.yaml
Normal file
8
esphome/includes/sensor/scd41-dewpoint.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
platform: template
|
||||||
|
name: ${macsuffix}_scd41_dew_point
|
||||||
|
lambda: |-
|
||||||
|
return (243.5*(log(id(scd41_humidity).state/100)+((17.67*id(scd41_temperature).state)/
|
||||||
|
(243.5+id(scd41_temperature).state)))/(17.67-log(id(scd41_humidity).state/100)-
|
||||||
|
((17.67*id(scd41_temperature).state)/(243.5+id(scd41_temperature).state))));
|
||||||
|
unit_of_measurement: °C
|
||||||
|
icon: 'mdi:thermometer-alert'
|
15
esphome/includes/sensor/scd41.yaml
Normal file
15
esphome/includes/sensor/scd41.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
platform: scd4x
|
||||||
|
temperature:
|
||||||
|
name: ${macsuffix}_scd41_temperature
|
||||||
|
id: scd41_temperature
|
||||||
|
<<: !include timings.yaml
|
||||||
|
co2:
|
||||||
|
name: ${macsuffix}_scd41_co2
|
||||||
|
id: scd41_co2
|
||||||
|
<<: !include timings.yaml
|
||||||
|
humidity:
|
||||||
|
name: ${macsuffix}_scd41_humidity
|
||||||
|
id: scd41_humidity
|
||||||
|
<<: !include timings.yaml
|
||||||
|
address: 0x62
|
||||||
|
update_interval: 5s
|
Loading…
Reference in a new issue