-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudy-multisensor.yaml
245 lines (184 loc) · 4.63 KB
/
study-multisensor.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
---
##########################
### STUDY-MULTISENSORS ###
##########################
################
#### PINOUT ####
################
### GPIO33 --> VINDRIKTNING BOARD ###
### GPIO32 --> AM312 MOTION SENSOR ###
### GPIO21 --> AHT10 SDA ###
### GPIO22 --> AHT10 SCL ###
#####################
### SUBSTITUTIONS ###
#####################
substitutions:
device_name: "Study Multisensor"
device_id: "study_multisensor"
###########################
### BOARD CONFIGURATION ###
###########################
esphome:
name: study-multisensor
platform: ESP32
board: wemos_d1_mini32
comment: TEMP HUM PM 2.5 MOTION SENSOR
#########################
### LOG CONFIGURATION ###
#########################
logger:
level: DEBUG
##########################
### WIFI CONFIGURATION ###
##########################
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
domain: !secret domain
ap:
ssid: "${device_name} Hotspot"
password: !secret hotspot_password
####################################
### CAPTIVE PORTAL CONFIGURATION ###
####################################
captive_portal:
#########################
### NTP CONFIGURATION ###
#########################
time:
- platform: sntp
id: sntp_time
servers:
- !secret ntp_server
#########################
### API CONFIGURATION ###
#########################
api:
encryption:
key: !secret api_key
#########################
### OTA CONFIGURATION ###
#########################
ota:
- platform: esphome
password: !secret ota_password
#################################
### TEXT SENSOR CONFIGURATION ###
#################################
text_sensor:
### FIRMWARE VERSION ###
- platform: version
name: "${device_name} Version"
id: "${device_id}_version"
icon: "mdi:all-inclusive-box"
### IP ADDRESS ###
- platform: wifi_info
ip_address:
name: "${device_name} IP"
id: "${device_id}_ip"
icon: mdi:ip-network
mac_address:
name: "${device_name} Wifi MAC Address"
id: "${device_id}_macaddress"
icon: mdi:expansion-card
################################
### WEB SERVER CONFIGURATION ###
################################
web_server:
port: !secret web_server_port
ota: true
local: true
version: 2
auth:
username: !secret web_server_username
password: !secret web_server_password
#########################
### I2C CONFIGURATION ###
#########################
i2c:
sda: GPIO21
scl: GPIO22
scan: true
##########################
### UART CONFIGURATION ###
##########################
uart:
rx_pin: GPIO33
id: "${device_id}_uart"
baud_rate: 9600
############################
### SENSOR CONFIGURATION ###
############################
sensor:
### WIFI SIGNAL ###
- platform: wifi_signal
name: "Study Powerstrip WiFi Signal"
update_interval: 60s
### BOARD TEMPERATURE ###
- platform: template
name: "${device_name} Board Temperature"
id: "${device_id}_temp"
lambda: return temperatureRead();
unit_of_measurement: "°C"
update_interval: 1800s
### BLE SIGNAL ###
- platform: ble_rssi
mac_address: !secret mac_amazfit_sandro
name: "${device_name} Amazfit Bip Sandro RSSI"
### AMBIENT TEMPERATURE AND HUMIDITY ###
- platform: aht10
temperature:
name: "${device_name} Temperature"
id: "${device_id}_temperature"
unit_of_measurement: "°C"
accuracy_decimals: 1
filters:
offset: -2
icon: "mdi:temperature-celsius"
humidity:
name: "${device_name} Humidity"
id: "${device_id}_humidity"
icon: "mdi:water-percent"
update_interval: 300s
### AMBIENT PM 2.5 ###
- platform: pm1006
pm_2_5:
name: "${device_name} PM2.5"
icon: "mdi:blur"
id: "${device_id}_pm25"
### UPTIME ###
- platform: uptime
type: seconds
name: Uptime Sensor
####################
### BLE TRACKING ###
####################
esp32_ble_tracker:
scan_parameters:
active: false
###################################
### BINARY SENSOR CONFIGURATION ###
###################################
binary_sensor:
### MOTION ###
- platform: gpio
pin: GPIO32
name: "${device_name} Motion"
device_class: motion
### BLE TRACKING ###
- platform: ble_presence
mac_address: !secret mac_amazfit_sandro
name: "${device_name} Amazfit Bip Sandro"
##############################
### SWITCHES CONFIGURATION ###
##############################
switch:
### RESTART ###
- platform: restart
name: "${device_name} Restart"
### RESTART SAFE MODE ###
- platform: safe_mode
name: "${device_name} Restart (Safe Mode OTA)"
...
### EOF ###