Two new sensors
This commit is contained in:
parent
5fd2d7a4a7
commit
b4f177e9b3
6
esphome/devices/670dbe.yaml
Normal file
6
esphome/devices/670dbe.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
substitutions:
|
||||
macsuffix: 670dbe
|
||||
|
||||
<<: !include ../includes/d1_mini.yaml
|
||||
<<: !include ../includes/only-bme280.yaml
|
||||
<<: !include ../includes/base.yaml
|
6
esphome/devices/670dcb.yaml
Normal file
6
esphome/devices/670dcb.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
substitutions:
|
||||
macsuffix: 670dcb
|
||||
|
||||
<<: !include ../includes/d1_mini.yaml
|
||||
<<: !include ../includes/only-bme280.yaml
|
||||
<<: !include ../includes/base.yaml
|
3
esphome/includes/only-bme280.yaml
Normal file
3
esphome/includes/only-bme280.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
sensor:
|
||||
- !include sensor/bme280-dewpoint.yaml
|
||||
- !include sensor/bme280.yaml
|
|
@ -2,11 +2,14 @@ platform: bme280
|
|||
temperature:
|
||||
name: ${macsuffix}_bme280_temperature
|
||||
id: bme280_temperature
|
||||
<<: !include timings.yaml
|
||||
pressure:
|
||||
name: ${macsuffix}_bme280_pressure
|
||||
id: bme280_pressure
|
||||
<<: !include timings.yaml
|
||||
humidity:
|
||||
name: ${macsuffix}_bme280_relative_humidity
|
||||
id: bme280_humidity
|
||||
<<: !include timings.yaml
|
||||
address: 0x76
|
||||
update_interval: 15s
|
||||
update_interval: 5s
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
platform: mhz19
|
||||
co2:
|
||||
name: ${macsuffix}_mhz19b_co2
|
||||
<<: !include timings.yaml
|
||||
temperature:
|
||||
name: ${macsuffix}_mhz19b_temperature
|
||||
update_interval: 60s
|
||||
<<: !include timings.yaml
|
||||
update_interval: 5s
|
||||
# Although recommended by the docs to disable abc indoors.
|
||||
# I think abc works fine if we let fresh air in at least once a day.
|
||||
# automatic_baseline_calibration: false
|
||||
|
|
8
esphome/includes/sensor/timings.yaml
Normal file
8
esphome/includes/sensor/timings.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
filters:
|
||||
- median:
|
||||
window_size: 13
|
||||
send_every: 1
|
||||
send_first_at: 1
|
||||
- sliding_window_moving_average:
|
||||
window_size: 13
|
||||
send_every: 3
|
Loading…
Reference in a new issue