-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaio.yaml
149 lines (133 loc) · 3.11 KB
/
aio.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
esphome:
name: aio
platform: ESP32
# pinout is the same as the dev kit C, specs are the same as the hornbill32dev
board: hornbill32dev
wifi:
ssid: "iot"
domain: ".lan.0x20.be"
password: !secret wifipassword
# disabled to reduce noise on the broker
logger:
# since GPIO{3,1} are being used for pms_uart
baud_rate: 0
ota:
api:
mqtt:
broker: mqtt.lan.0x20.be
topic_prefix: "hsg/aio"
### DS18B20
dallas:
- pin: GPIO14
update_interval: 0.8s
### PMSA003-A
uart:
- id: "pms_uart"
baud_rate: 9600
rx_pin: GPIO3
tx_pin: GPIO1
### MH-Z19
- id: "co2_uart"
baud_rate: 9600
rx_pin: GPIO12
tx_pin: GPIO13
### BME680
i2c:
sda: GPIO21
scl: GPIO22
frequency: 1MHz
bme680_bsec:
address: 0x76
temperature_offset: 3
state_save_interval: 1h
sensor:
### BME680
## this works
# - platform: bme680
# temperature:
# name: "BME680 Temperature"
# pressure:
# name: "BME680 Pressure"
# humidity:
# name: "BME680 Humidity"
# gas_resistance:
# name: "BME680 Gas Resistance"
# address: 0x76
# update_interval: 60s
- platform: bme680_bsec
temperature:
name: "BME680 Temperature"
id: bme680_temperature
accuracy_decimals: 5
retain: false
pressure:
name: "BME680 Pressure"
id: bme680_pressure
accuracy_decimals: 5
retain: false
humidity:
name: "BME680 Humidity"
id: bme680_humidity
accuracy_decimals: 5
retain: false
gas_resistance:
name: "BME680 Gas Resistance"
retain: false
iaq:
name: "BME680 IAQ"
accuracy_decimals: 1
retain: false
iaq_accuracy:
name: "BME680 Numeric IAQ Accuracy"
co2_equivalent:
name: "BME680 CO2 Equivalent"
accuracy_decimals: 1
retain: false
breath_voc_equivalent:
name: "BME680 Breath VOC Equivalent"
accuracy_decimals: 2
retain: false
- platform: template
name: "BME680 Dew Point"
lambda: |-
return (243.5*(log(id(bme680_humidity).state/100)+((17.67*id(bme680_temperature).state)/
(243.5+id(bme680_temperature).state)))/(17.67-log(id(bme680_humidity).state/100)-
((17.67*id(bme680_temperature).state)/(243.5+id(bme680_temperature).state))));
unit_of_measurement: °C
icon: 'mdi:thermometer-alert'
update_interval: 1s
retain: false
### PMSA003-A
- platform: pmsx003
type: PMSX003
uart_id: "pms_uart"
pm_1_0:
name: "Particulate Matter <1.0µm Concentration"
retain: false
pm_2_5:
name: "Particulate Matter <2.5µm Concentration"
retain: false
pm_10_0:
name: "Particulate Matter <10.0µm Concentration"
retain: false
### MH-Z19
- platform: mhz19
uart_id: "co2_uart"
co2:
name: "MH-Z19 CO2 Value"
retain: false
temperature:
name: "MH-Z19 Temperature"
retain: false
update_interval: 10s
automatic_baseline_calibration: true
### DS18B20
- platform: dallas
name: "DS18B20"
address: 0x8a01144f5e17aa28
accuracy_decimals: 4
retain: false
text_sensor:
- platform: bme680_bsec
iaq_accuracy:
name: "BME680 IAQ Accuracy"