-
Notifications
You must be signed in to change notification settings - Fork 1
/
abb_ev3.yaml
522 lines (508 loc) · 12.5 KB
/
abb_ev3.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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
esphome:
name: esp32
friendly_name: esp32
platformio_options:
board_build.extra_flags:
# https://github.com/esphome/issues/issues/3988
- "-DARDUINO_USB_CDC_ON_BOOT=0"
esp32:
board: lolin_s2_mini
variant: ESP32S2
framework:
type: arduino
# Disable logging over serial
logger:
level: DEBUG
baud_rate: 0
# Enable Home Assistant API
api:
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
parity: EVEN
modbus:
id: modbus0
flow_control_pin: GPIO4
send_wait_time: 500ms
modbus_controller:
- id: abb_ev
address: 0x1
modbus_id: modbus0
setup_priority: -10
update_interval: 1min
## INFO FROM: https://search.abb.com/library/Download.aspx?DocumentID=9AKK107991A9529&DocumentPartId=
sensor:
## 1 Total Energy (kWh)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Import energy total"
address: 0x5000
register_type: holding
value_type: U_QWORD
device_class: "energy"
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Export energy total"
address: 0x5004
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Net energy total"
address: 0x5008
register_type: holding
value_type: S_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: total
filters:
- multiply: 0.0001
## 2 Total energy per phase
## Active import energy (kWh)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Import energy L1"
address: 0x5460
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Import energy L2"
address: 0x5464
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Import energy L3"
address: 0x5468
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
## Active export energy (kWh)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Export energy L1"
address: 0x546C
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Export energy L2"
address: 0x5470
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Export energy L3"
address: 0x5474
register_type: holding
value_type: U_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total_increasing"
filters:
- multiply: 0.0001
## Active net energy (kWh)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Net energy L1"
address: 0x5478
register_type: holding
value_type: S_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Net energy L2"
address: 0x547C
register_type: holding
value_type: S_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total"
filters:
- multiply: 0.0001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Net energy L3"
address: 0x5480
register_type: holding
value_type: S_QWORD
device_class: energy
unit_of_measurement: "kWh"
accuracy_decimals: 4
state_class: "total"
filters:
- multiply: 0.0001
## 3 Instantaneous values
## 3.1 Voltage (V)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Voltage L1-N"
address: 0x5B00
register_type: holding
value_type: U_DWORD
accuracy_decimals: 1
device_class: voltage
unit_of_measurement: "V"
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Voltage L2-N"
address: 0x5B02
register_type: holding
value_type: U_DWORD
accuracy_decimals: 1
device_class: voltage
unit_of_measurement: "V"
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Voltage L3-N"
address: 0x5B04
register_type: holding
value_type: U_DWORD
accuracy_decimals: 1
device_class: voltage
unit_of_measurement: "V"
filters:
- multiply: 0.1
## 3.2 Current (A)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Current L1"
address: 0x5B0C
register_type: holding
value_type: U_DWORD
accuracy_decimals: 2
device_class: current
unit_of_measurement: "A"
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Current L2"
address: 0x5B0E
register_type: holding
value_type: U_DWORD
accuracy_decimals: 2
device_class: current
unit_of_measurement: "A"
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Current L3"
address: 0x5B10
register_type: holding
value_type: U_DWORD
accuracy_decimals: 2
device_class: current
unit_of_measurement: "A"
filters:
- multiply: 0.01
## 3.3 Active Power (Watt)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power total"
address: 0x5B14
register_type: holding
value_type: S_DWORD
accuracy_decimals: 2
device_class: power
unit_of_measurement: "W"
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power L1"
address: 0x5B16
register_type: holding
value_type: S_DWORD
accuracy_decimals: 2
device_class: power
unit_of_measurement: "W"
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power L2"
address: 0x5B18
register_type: holding
value_type: S_DWORD
accuracy_decimals: 2
device_class: power
unit_of_measurement: "W"
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power L3"
address: 0x5B1A
register_type: holding
value_type: S_DWORD
accuracy_decimals: 2
device_class: power
unit_of_measurement: "W"
filters:
- multiply: 0.01
## 3.4 Frequency (Hz)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Frequency"
address: 0x5B2C
register_type: holding
value_type: U_WORD
accuracy_decimals: 2
device_class: frequency
unit_of_measurement: "Hz"
filters:
- multiply: 0.01
## 3.5 Power factor (-)
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power factor total"
address: 0x5B3A
register_type: holding
value_type: U_WORD
accuracy_decimals: 3
device_class: power_factor
filters:
- multiply: 0.001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power factor L1"
address: 0x5B3B
register_type: holding
value_type: U_WORD
accuracy_decimals: 3
device_class: power_factor
filters:
- multiply: 0.001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power factor L2"
address: 0x5B3C
register_type: holding
value_type: U_WORD
accuracy_decimals: 3
device_class: power_factor
filters:
- multiply: 0.001
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Power factor L3"
address: 0x5B3D
register_type: holding
value_type: U_WORD
accuracy_decimals: 3
device_class: power_factor
filters:
- multiply: 0.001
# 7 Info Rate
- platform: modbus_controller
modbus_controller_id: abb_ev
id: rated_voltage
name: "Rated Voltage"
address: 0x040C
register_type: holding
value_type: U_DWORD
entity_category: diagnostic
device_class: voltage
unit_of_measurement: "V"
skip_updates: 60
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: abb_ev
id: rated_current
name: "Rated Current"
address: 0x040E
register_type: holding
value_type: U_DWORD
entity_category: diagnostic
device_class: current
unit_of_measurement: "A"
skip_updates: 60
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
id: maximum_current
name: "Maximum Current"
address: 0x0411
register_type: holding
value_type: U_DWORD
entity_category: diagnostic
device_class: current
unit_of_measurement: "A"
skip_updates: 60
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
id: rated_frequency
name: "Rated Frequency"
address: 0x0410
register_type: holding
value_type: U_WORD
entity_category: diagnostic
device_class: frequency
unit_of_measurement: "Hz"
skip_updates: 60
filters:
- multiply: 0.01
- platform: modbus_controller
modbus_controller_id: abb_ev
id: active_pulse_constant
name: "Active pulse constant"
address: 0x0413
register_type: holding
value_type: U_WORD
entity_category: diagnostic
unit_of_measurement: "imp/kWh"
skip_updates: 60
## 4 Production data and identification
text_sensor:
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Serial Number"
address: 0x0402
register_type: holding
response_size: 6
entity_category: diagnostic
raw_encode: HEXBYTES
skip_updates: 60
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Meter firmware version"
address: 0x8908
register_type: holding
response_size: 16
entity_category: diagnostic
skip_updates: 60
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Type designation"
address: 0x8960
register_type: holding
response_size: 8
entity_category: diagnostic
skip_updates: 60
number:
## 6 Display
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Auto Mode Duration"
register_type: holding
address: 0x1000
value_type: U_WORD
min_value: 4
max_value: 20
step: 1
unit_of_measurement: "sec"
icon: mdi:timer
entity_category: config
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Auto Mode Exiting Duration"
address: 0x1003
value_type: U_WORD
min_value: 4
max_value: 20
step: 1
register_type: holding
unit_of_measurement: "sec"
icon: mdi:timer
entity_category: config
- platform: modbus_controller
modbus_controller_id: abb_ev
id: backlight_on
name: "Backlight On"
register_type: holding
address: 0x1005
value_type: U_WORD
min_value: 5
max_value: 60
step: 1
unit_of_measurement: "sec"
entity_category: config
icon: mdi:timer
# 7 Info Rate
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Communication Address"
entity_category: config
register_type: holding
address: 0x8900
value_type: U_WORD
icon: mdi:label
select:
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Baud rate"
entity_category: config
address: 0x040B
optionsmap:
"9600bps (default)": 5
"19200bps": 6
"38400bps": 7
- platform: modbus_controller
modbus_controller_id: abb_ev
name: "Communication Parity"
entity_category: config
address: 0x0414
optionsmap:
"8N1": 1
"8E1 (default)": 2
"8O1": 3