-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp32ble2.yml
265 lines (235 loc) · 6.43 KB
/
esp32ble2.yml
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
substitutions:
domain: !secret domain
ap_ssid: !secret ap_ssid
hostname: esp32ble2
esphome:
name: ${hostname}
platform: ESP32
# board: nodemcu-32s
# board: az-delivery-devkit-v4
board: esp32dev
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
use_address: ${hostname}.${domain}
manual_ip:
static_ip: !secret esp32ble2_ip
gateway: !secret ip_gateway
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ${ap_ssid}.{hostname}
password: !secret ap_password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
#api:
# password: !secret api_password
ota:
password: !secret ota_password
esp32_ble_tracker:
#exposure_notifications:
# on_exposure_notification:
# then:
# - lambda: |
# ESP_LOGD("main", "Got notification:");
# ESP_LOGD("main", " RPI: %s", hexencode(x.rolling_proximity_identifier).c_str());
# ESP_LOGD("main", " RSSI: %d", x.rssi);
sensor:
- platform: uptime
name: Uptime Sensor
id: uptime_sensor
- platform: ruuvitag
mac_address: ff:d3:e4:94:9a:c2
humidity:
name: "Balkon Humidity"
temperature:
name: "Balkon Temperature"
id: ruuvi_balkon_temp
pressure:
name: "Balkon Pressure"
# acceleration:
# name: "Balkon Acceleration"
# acceleration_x:
# name: "Balkon Acceleration X"
# acceleration_y:
# name: "Balkon Acceleration Y"
# acceleration_z:
# name: "Balkon Acceleration Z"
battery_voltage:
name: "Balkon Battery Voltage"
tx_power:
name: "Balkon TX Power"
# movement_counter:
# name: "Balkon Movement Counter"
# measurement_sequence_number:
# name: "Balkon Measurement Sequence Number"
- platform: ruuvitag
mac_address: f1:5f:fe:e0:a0:d0
humidity:
name: "Kuehlschrank Humidity"
temperature:
name: "Kuehlschrank Temperature"
pressure:
name: "Kuehlschrank Pressure"
# acceleration:
# name: "Kuehlschrank Acceleration"
# acceleration_x:
# name: "Kuehlschrank Acceleration X"
# acceleration_y:
# name: "Kuehlschrank Acceleration Y"
# acceleration_z:
# name: "Kuehlschrank Acceleration Z"
battery_voltage:
name: "Kuehlschrank Battery Voltage"
tx_power:
name: "Kuehlschrank TX Power"
# movement_counter:
# name: "Kuehlschrank Movement Counter"
# measurement_sequence_number:
# name: "Kuehlschrank Measurement Sequence Number"
- platform: ruuvitag
mac_address: f1:52:a4:8a:61:d0
humidity:
name: "Eingang Humidity"
temperature:
name: "Eingang Temperature"
pressure:
name: "Eingang Pressure"
# acceleration:
# name: "Eingang Acceleration"
# acceleration_x:
# name: "Eingang Acceleration X"
# acceleration_y:
# name: "Eingang Acceleration Y"
# acceleration_z:
# name: "Eingang Acceleration Z"
battery_voltage:
name: "Eingang Battery Voltage"
tx_power:
name: "Eingang TX Power"
# movement_counter:
# name: "Eingang Movement Counter"
# measurement_sequence_number:
# name: "Eingang Measurement Sequence Number"
- platform: xiaomi_hhccjcy01
mac_address: 'C4:7C:8D:6B:92:46'
temperature:
name: "XBPS1 Temperature"
moisture:
name: "XBPS1 Moisture"
illuminance:
name: "XBPS1 Illuminance"
conductivity:
name: "XBPS1 Soil Conductivity"
battery_level:
name: "XBPS1 Battery Level"
- platform: xiaomi_hhccjcy01
mac_address: 'C4:7C:8D:6B:98:62'
temperature:
name: "XBPS2 Temperature"
moisture:
name: "XBPS2 Moisture"
illuminance:
name: "XBPS2 Illuminance"
conductivity:
name: "XBPS2 Soil Conductivity"
battery_level:
name: "XBPS2 Battery Level"
- platform: xiaomi_hhccjcy01
mac_address: 'C4:7C:8D:6B:95:8C'
temperature:
name: "XBPS3 Temperature"
moisture:
name: "XBPS3 Moisture"
illuminance:
name: "XBPS3 Illuminance"
conductivity:
name: "XBPS3 Soil Conductivity"
battery_level:
name: "XBPS3 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:75:02"
temperature:
name: "XBCS1 Temperature"
humidity:
name: "XBCS1 Humidity"
battery_level:
name: "XBCS1 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:6F:77"
temperature:
name: "XBCS2 Temperature"
humidity:
name: "XBCS2 Humidity"
battery_level:
name: "XBCS2 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:75:3E"
temperature:
name: "XBCS3 Temperature"
humidity:
name: "XBCS3 Humidity"
battery_level:
name: "XBCS3 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:8D:59"
temperature:
name: "XBCS4 Temperature"
humidity:
name: "XBCS4 Humidity"
battery_level:
name: "XBCS4 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:8E:55"
temperature:
name: "XBCS5 Temperature"
humidity:
name: "XBCS5 Humidity"
battery_level:
name: "XBCS5 Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: "58:2D:34:3B:8B:17"
temperature:
name: "XBCS6 Temperature"
humidity:
name: "XBCS6 Humidity"
battery_level:
name: "XBCS6 Battery Level"
# - platform: mqtt_subscribe
# name: "netatmo outside"
# id: netatmo_outside
# topic: sathome/environment/aussenmodul/netatmo/temperature
# - platform: mqtt_subscribe
# name: "mobilealerts balkon"
# id: mobilealerts_balkon
# topic: sathome/environment/balkon/mobilealerts/temperature
# - platform: mqtt_subscribe
# name: "mobilealerts eingang"
# id: mobilealerts_eingang
# topic: sathome/environment/eingang/mobilealerts/temperature
mqtt:
broker: !secret mqtt_broker
topic_prefix: sathome/environment/${hostname}
#i2c:
# sda: 14
# scl: 13
#font:
# - file: 'slkscr.ttf'
# id: font1
# size: 12
# - file: 'SourceCodePro-Light.ttf'
# id: font2
# size: 12
# - file: 'Roboto-Regular.ttf'
# id: font3
# size: 13
#display:
# - platform: ssd1306_i2c
# model: "SSD1306 128x32"
# address: 0x3c
# brightness: 1%
# lambda: |-
# it.printf(0, 5, id(font3),"NA: %.1f MAB: %.1f",id(netatmo_outside).state,id(mobilealerts_balkon).state);
# it.printf(0, 18, id(font3),"MAE: %.1f RV: %.1f",id(mobilealerts_eingang).state,id(ruuvi_balkon_temp).state);