-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathesp32.yaml
415 lines (400 loc) · 11.9 KB
/
esp32.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
substitutions:
device_name: slimmelezer
friendly_name: DSMR Reader
external_components:
- source: github://geduxas/esphome-dsmr-eso@main
refresh: 0s
esphome:
name: ${device_name}
platform: esp32
#esp8266_restore_from_flash: true
board: nodemcu-32s
name_add_mac_suffix: false
project:
name: geduxas.esodsmr
version: "2.0"
wifi:
# remove leading '#' and fill in your wifi details
# ssid: !secret wifi_ssid
# password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ${device_name}
captive_portal:
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
ota:
dashboard_import:
package_import_url: github://geduxas/esphome-dsmr-eso/slimmelezer.yaml@main
import_full_config: true
web_server:
port: 80
uart:
baud_rate: 115200
rx_pin:
number: GPIO18
inverted: true
rx_buffer_size: 3072
debug:
direction: RX
after:
delimiter: "\r\n"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
dsmr_eso:
id: dsmr_instance
max_telegram_length: 4096
# For Luxembourg users set here your decryption key
#decryption_key: !secret decryption_key // enable this when using decryption for Luxembourg; key like '00112233445566778899AABBCCDDEEFF'
sensor:
- platform: dsmr_eso
energy_delivered_tariff1:
name: ${friendly_name} Energy Delivered Tariff 1
state_class: total_increasing
# energy_delivered_tariff2:
# name: ${friendly_name} Energy Delivered Tariff 2
# state_class: total_increasing
energy_returned_tariff1:
name: ${friendly_name} Energy Returned Tariff 1
# energy_returned_tariff2:
# name: ${friendly_name} Energy Returned Tariff 2
reactive_energy_delivered_tariff1:
name: ${friendly_name} Reactiver Power Delivered 1
reactive_energy_returned_tariff1:
name: ${friendly_name} Reactiver Power Returned 1
# power_delivered:
# name: ${friendly_name} Power Consumed
# accuracy_decimals: 3
# power_returned:
# name: ${friendly_name} Power Returned
# accuracy_decimals: 3
electricity_failures:
name: ${friendly_name} Electricity Failures
icon: mdi:alert
voltage:
name: ${friendly_name} Voltage
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_l1:
name: ${friendly_name} Voltage L1
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_avg_l1:
name: ${friendly_name} Voltage average L1
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_l2:
name: ${friendly_name} Voltage L2
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_avg_l2:
name: ${friendly_name} Voltage average L2
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_l3:
name: ${friendly_name} Voltage L3
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
voltage_avg_l3:
name: ${friendly_name} Voltage average L3
# unit_of_measurement: "V"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_l1:
name: ${friendly_name} Current L1
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_fuse_l1:
name: ${friendly_name} Current Fuse L1
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_l2:
name: ${friendly_name} Current L2
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_fuse_l2:
name: ${friendly_name} Current Fuse L2
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_l3:
name: ${friendly_name} Current L3
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_fuse_l3:
name: ${friendly_name} Current Fuse L3
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current:
name: ${friendly_name} Current
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_n:
name: ${friendly_name} Current N
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
current_sum:
name: ${friendly_name} Current sum
# unit_of_measurement: "A"
# accuracy_decimals: 0
# filters:
# multiply: 1000
power_delivered_l1:
name: ${friendly_name} Power Delivered L1
power_delivered_l2:
name: ${friendly_name} Power Delivered L2
power_delivered_l3:
name: ${friendly_name} Power Delivered L3
power_returned_l1:
name: ${friendly_name} Power Returned L1
power_returned_l2:
name: ${friendly_name} Power Returned L2
power_returned_l3:
name: ${friendly_name} Power Returned L3
apparent_delivery_power:
name: ${friendly_name} Apparent Power Deliverd
accuracy_decimals: 0
filters:
multiply: 1000
apparent_delivery_power_l1:
name: ${friendly_name} Apparent Power Deliverd L1
accuracy_decimals: 0
filters:
multiply: 1000
apparent_delivery_power_l2:
name: ${friendly_name} Apparent Power Deliverd L2
accuracy_decimals: 0
filters:
multiply: 1000
apparent_delivery_power_l3:
name: ${friendly_name} Apparent Power Deliverd L3
accuracy_decimals: 0
filters:
multiply: 1000
apparent_return_power:
name: ${friendly_name} Apparent Power Returned
accuracy_decimals: 0
filters:
multiply: 1000
apparent_return_power_l1:
name: ${friendly_name} Apparent Power Returned L1
accuracy_decimals: 0
filters:
multiply: 1000
apparent_return_power_l2:
name: ${friendly_name} Apparent Power Returned L2
accuracy_decimals: 0
filters:
multiply: 1000
apparent_return_power_l3:
name: ${friendly_name} Apparent Power Returned L3
accuracy_decimals: 0
filters:
multiply: 1000
active_demand_power:
name: ${friendly_name} Active Demand Avg3
active_demand_net:
name: ${friendly_name} Active Demand Avg3 Net
active_demand_abs:
name: ${friendly_name} Active Demand Avg3 Absolute
reactive_power_delivered_l1:
name: ${friendly_name} Reactive Power Delivered L1
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_power_delivered_l2:
name: ${friendly_name} Reactive Power Delivered L2
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_power_delivered_l3:
name: ${friendly_name} Reactive Power Delivered L3
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_power_returned_l1:
name: ${friendly_name} Reactive Power Returned L1
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_power_returned_l2:
name: ${friendly_name} Reactive Power Returned L2
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_power_returned_l3:
name: ${friendly_name} Reactive Power Returned L3
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
active_energy_import_current_average_demand:
name: ${friendly_name} Active Average Recive Demand
active_energy_export_current_average_demand:
name: ${friendly_name} Active Average Export Demand
reactive_energy_import_current_average_demand:
name: ${friendly_name} Reactive Average Recive Demand
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_energy_export_current_average_demand:
name: ${friendly_name} Reactive Average Export Demand
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
apparent_energy_import_current_average_demand:
name: ${friendly_name} Apparent Average Recive Demand
accuracy_decimals: 0
filters:
multiply: 1000
apparent_energy_export_current_average_demand:
name: ${friendly_name} Apparent Average Export Demand
accuracy_decimals: 0
filters:
multiply: 1000
active_energy_import_last_completed_demand:
name: ${friendly_name} Active Last Recive Demand
active_energy_export_last_completed_demand:
name: ${friendly_name} Active Last Export Demand
reactive_energy_import_last_completed_demand:
name: ${friendly_name} Reactive Last Recive Demand
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
reactive_energy_export_last_completed_demand:
name: ${friendly_name} Reactive Last Export Demand
unit_of_measurement: "var"
accuracy_decimals: 0
filters:
multiply: 1000
apparent_energy_import_last_completed_demand:
name: ${friendly_name} Apparent Last Recive Demand
accuracy_decimals: 0
filters:
multiply: 1000
apparent_energy_export_last_completed_demand:
name: ${friendly_name} Apparent Last Export Demand
accuracy_decimals: 0
filters:
multiply: 1000
frequency:
name: ${friendly_name} Frequency
filters:
multiply: 1000
abs_power:
name: ${friendly_name} Active Power
power_factor:
name: ${friendly_name} Power Factor
filters:
multiply: 0.1
power_factor_l1:
name: ${friendly_name} Power Factor L1
filters:
multiply: 0.1
power_factor_l2:
name: ${friendly_name} Power Factor L2
filters:
multiply: 0.1
power_factor_l3:
name: ${friendly_name} Power Factor L3
filters:
multiply: 0.1
min_power_factor:
name: ${friendly_name} Min Power Factor
filters:
multiply: 0.1
voltage_sag_time_l1:
name: ${friendly_name} Voltage Sag duration L1
voltage_sag_time_l2:
name: ${friendly_name} Voltage Sag duration L2
voltage_sag_time_l3:
name: ${friendly_name} Voltage Sag duration L3
voltage_sag_l1:
name: ${friendly_name} Voltage Last Sag L1
voltage_sag_l2:
name: ${friendly_name} Voltage Last Sag L2
voltage_sag_l3:
name: ${friendly_name} Voltage Last Sag L3
voltage_swell_time_l1:
name: ${friendly_name} Voltage Swell duration L1
voltage_swell_time_l2:
name: ${friendly_name} Voltage Swell duration L2
voltage_swell_time_l3:
name: ${friendly_name} Voltage Swell duration L3
voltage_swell_l1:
name: ${friendly_name} Voltage Last Swell L1
voltage_swell_l2:
name: ${friendly_name} Voltage Last Swell L3
voltage_swell_l3:
name: ${friendly_name} Voltage Last Swell L3
fw_core_version:
name: ${friendly_name} Core version
fw_module_version:
name: ${friendly_name} Module version
- platform: uptime
name: "SlimmeLezer Uptime"
- platform: wifi_signal
name: "SlimmeLezer Wi-Fi Signal"
update_interval: 60s
button:
- platform: template
name: "Dump telemetry"
on_press:
- lambda: id(dsmr_instance).dump_telemetry();
text_sensor:
- platform: dsmr_eso
identification:
name: "DSMR Identification"
fw_core_checksum:
name: ${friendly_name} Core checskum
fw_module_checksum:
name: ${friendly_name} Module checskum
- platform: wifi_info
ip_address:
name: "SlimmeLezer IP Address"
ssid:
name: "SlimmeLezer Wi-Fi SSID"
bssid:
name: "SlimmeLezer Wi-Fi BSSID"
- platform: version
name: "ESPHome Version"
hide_timestamp: true