-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.yoann-office-co2-sensor.yaml
51 lines (43 loc) · 1.13 KB
/
device.yoann-office-co2-sensor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Custom CO2 sensor with a Wemos D1 + MH-Z19B
#
substitutions:
device_id: yoann_office_co2_sensor
device_name: yoann-office-co2-sensor
friendly_name: CO2 Sensor @ Yoann Office
esphome:
name: "${device_name}"
comment: "${friendly_name}"
esp8266:
board: esp01_1m
<<: !include {
file: "common/networking.yaml",
vars: {
device_id: "${device_id}",
wifi_ssid: !secret wifi_ssid,
wifi_password: !secret wifi_password,
wifi_ap_password: !secret wifi_ap_password,
encryption_key: !secret yoann_office_co2_sensor_encryption_key,
ota_password: !secret yoann_office_co2_sensor_ota_password,
}
}
logger:
baud_rate: 0 # Disable UART logging
# Configure UART (i.e. where is RX and TX on the ESP)
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
sensor:
# Configure the MH-Z19 sensor
- platform: mhz19
co2:
name: "MH-Z19 CO2 Value"
temperature:
name: "MH-Z19 Temperature"
update_interval: 60s
automatic_baseline_calibration: false
- !include ./common/sensor.wifi_signal.yaml
- !include ./common/sensor.uptime.yaml
text_sensor:
- !include ./common/text_sensor.version.yaml