-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
sofar_lsw3.yaml
568 lines (529 loc) · 14.7 KB
/
sofar_lsw3.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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
#
# Sofar
#
# Reference: ???
#
default:
update_interval: 5
digits: 6
parameters:
- group: PV
items:
- name: "PV1 Power"
class: "power"
mppt: 1
state_class: "measurement"
uom: "W"
scale: 10
rule: 1
registers: [0x000A]
icon: "mdi:solar-power"
- name: "PV2 Power"
class: "power"
mppt: 2
state_class: "measurement"
uom: "W"
scale: 10
rule: 1
registers: [0x000B]
icon: "mdi:solar-power"
- name: "PV1 Voltage"
class: "voltage"
mppt: 1
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0006]
icon: "mdi:solar-power"
- name: "PV2 Voltage"
class: "voltage"
mppt: 2
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0008]
icon: "mdi:solar-power"
- name: "PV1 Current"
class: "current"
mppt: 1
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 1
registers: [0x0007]
icon: "mdi:solar-power"
- name: "PV2 Current"
class: "current"
mppt: 2
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 1
registers: [0x0009]
icon: "mdi:solar-power"
- name: Today Production
friendly_name: Today's Production
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.01
rule: 1
registers: [0x0019]
icon: "mdi:solar-power"
- name: "Total Production"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
rule: 3
registers: [0x0016, 0x0015]
icon: "mdi:solar-power"
validation:
min: 0.1
- name: "Total Production time"
state_class: "measurement"
uom: "h"
rule: 3
registers: [0x0018, 0x0017]
icon: "mdi:clock-outline"
- name: "Today Production time"
state_class: "measurement"
uom: "min"
rule: 1
registers: [0x001A]
icon: "mdi:clock-outline"
- group: Output
items:
- name: "Output active power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 10
rule: 1
registers: [0x000C]
icon: "mdi:home-lightning-bolt"
- name: "Output reactive power"
state_class: "measurement"
uom: "kVar"
scale: 0.01
rule: 1
registers: [0x000D]
icon: "mdi:home-lightning-bolt"
- name: "Grid frequency"
class: "frequency"
state_class: "measurement"
uom: "Hz"
scale: 0.01
rule: 1
registers: [0x000E]
icon: "mdi:home-lightning-bolt"
- name: "L1 Voltage"
l: 1
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x000F]
icon: "mdi:home-lightning-bolt"
- name: "L1 Current"
l: 1
class: "current"
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 1
registers: [0x0010]
icon: "mdi:home-lightning-bolt"
- name: "L2 Voltage"
l: 2
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0011]
icon: "mdi:home-lightning-bolt"
- name: "L2 Current"
l: 2
class: "current"
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 1
registers: [0x0012]
icon: "mdi:home-lightning-bolt"
- name: "L3 Voltage"
l: 3
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0013]
icon: "mdi:home-lightning-bolt"
- name: "L3 Current"
l: 3
class: "current"
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 1
registers: [0x0014]
icon: "mdi:home-lightning-bolt"
- group: Device
items:
- name: "Device State"
class: "enum"
rule: 1
registers: [0x0000]
icon: "mdi:state-machine"
lookup:
- key: 0x0000
value: "Standby"
- key: 0x0001
value: "Self-test"
- key: 0x0002
value: "Normal"
- key: 0x0003
value: "Alarm"
- key: 0x0004
value: "Fault"
- name: "Inverter module temperature"
class: "temperature"
uom: "°C"
rule: 1
registers: [0x001B]
icon: "mdi:thermometer"
- name: "Inverter inner temperature"
class: "temperature"
state_class: "measurement"
uom: "°C"
rule: 1
registers: [0x001C]
icon: "mdi:thermometer"
- name: "Inverter bus voltage"
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x001D]
icon: "mdi:home-lightning-bolt"
- name: "PV1 voltage sample by slave CPU"
class: "voltage"
mppt: 1
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x001E]
icon: "mdi:home-lightning-bolt"
- name: "PV1 current sample by slave CPU"
class: "current"
mppt: 1
state_class: "measurement"
uom: "A"
scale: 0.1
rule: 1
registers: [0x001F]
icon: "mdi:home-lightning-bolt"
- name: "Countdown time"
state_class: "measurement"
uom: "s"
rule: 1
registers: [0x0020]
icon: ""
- name: "Inverter alert message"
rule: 1
registers: [0x0021]
icon: ""
- name: "Input mode"
rule: 1
registers: [0x0022]
icon: ""
- name: "Communication Board inner message"
rule: 1
registers: [0x0023]
icon: ""
- name: "Insulation of PV1+ to ground"
state_class: "measurement"
mppt: 1
rule: 1
registers: [0x0024]
icon: ""
- name: "Insulation of PV2+ to ground"
state_class: "measurement"
mppt: 2
rule: 1
registers: [0x0025]
icon: ""
- name: "Insulation of PV- to ground"
state_class: "measurement"
mppt: 1
rule: 1
registers: [0x0026]
icon: ""
- name: "Country"
rule: 1
registers: [0x0027]
lookup:
- key: 0
value: "Germany"
- key: 1
value: "CEI0-21 Internal"
- key: 2
value: "Australia"
- key: 3
value: "Spain RD1699"
- key: 4
value: "Turkey"
- key: 5
value: "Denmark"
- key: 6
value: "Greece"
- key: 7
value: "Netherland"
- key: 8
value: "Belgium"
- key: 9
value: "UK-G59"
- key: 10
value: "China"
- key: 11
value: "France"
- key: 12
value: "Poland"
- key: 13
value: "Germany BDEW"
- key: 14
value: "Germany VDE0126"
- key: 15
value: "Italy CEI0-16"
- key: 16
value: "UK-G83"
- key: 17
value: "Greece Islands"
- key: 18
value: "EU EN50438"
- key: 19
value: "EU EN61727"
- key: 20
value: "Korea"
- key: 21
value: "Sweden"
- key: 22
value: "Europe General"
- key: 23
value: "CEI0-21 External"
- key: 24
value: "Cyprus"
- key: 25
value: "India"
- key: 26
value: "Philippines"
- key: 27
value: "New Zeland"
- key: 28
value: "Reserve"
- key: 29
value: "Reserve"
icon: ""
- group: Alert
items:
- name: "Fault 1"
rule: 1
registers: [0x0001]
lookup:
- key: 0
value: "No error"
- key: 1
value: "ID01 Grid Over Voltage Protection"
- key: 2
value: "ID02 Grid Under Voltage Protection"
- key: 4
value: "ID03 Grid Over Frequency Protection"
- key: 8
value: "ID04 Grid Under Frequency Protection"
- key: 16
value: "ID05 PV Under Voltage Protection"
- key: 32
value: "ID06 Grid Low Voltage Ride through"
- key: 64
value: "ID07"
- key: 128
value: "ID08"
- key: 256
value: "ID09 PV Over Voltage Protection"
- key: 512
value: "ID10 PV Input Current Unbalanced"
- key: 1024
value: "ID11 PV Input Mode wrong configuration"
- key: 2048
value: "ID12 Ground-Fault circuit interrupters fault"
- key: 4096
value: "ID13 Phase sequence fault"
- key: 8192
value: "ID14 Hardware boost over current protection"
- key: 16384
value: "ID15 Hardware AC over current protection"
- key: 32768
value: "ID16 Grid current is too high"
icon: "mdi:wrench"
- name: "Fault 2"
rule: 1
registers: [0x0002]
lookup:
- key: 0
value: "No error"
- key: 1
value: "ID17 Grid current sampling error"
- key: 2
value: "ID18 DCI sampling error"
- key: 4
value: "ID19 Grid voltage sampling error"
- key: 8
value: "ID20 GFCI device sampling error"
- key: 16
value: "ID21 Main chip fault"
- key: 32
value: "ID22 Hardware auxiliary power fault"
- key: 64
value: "ID23 Bus voltage zero fault"
- key: 128
value: "ID24 Output current not balanced"
- key: 256
value: "ID25 Bus under voltage protection"
- key: 512
value: "ID26 Bus over voltage protection"
- key: 1024
value: "ID27 Bus voltage unbalanced"
- key: 2048
value: "ID28 DCI is too high"
- key: 4096
value: "ID29 Grid current is too high"
- key: 8192
value: "ID30 Input current is too high"
- key: 16384
value: "ID31"
- key: 32768
value: "ID32"
icon: "mdi:wrench"
- name: "Fault 3"
rule: 1
registers: [0x0003]
lookup:
- key: 0
value: "No error"
- key: 1
value: "ID33 Reserved"
- key: 2
value: "ID34 Reserved"
- key: 4
value: "ID35 Reserved"
- key: 8
value: "ID36 Reserved"
- key: 16
value: "ID37 Reserved"
- key: 32
value: "ID38 Reserved"
- key: 64
value: "ID39 Reserved"
- key: 128
value: "ID40 Reserved"
- key: 256
value: "ID41 Reserved"
- key: 512
value: "ID42 Reserved"
- key: 1024
value: "ID43 Reserved"
- key: 2048
value: "ID44 Reserved"
- key: 4096
value: "ID45 Reserved"
- key: 8192
value: "ID46 Reserved"
- key: 16384
value: "ID47 Reserved"
- key: 32768
value: "ID48 Reserved"
icon: "mdi:wrench"
- name: "Fault 4"
rule: 1
registers: [0x0004]
lookup:
- key: 0
value: "No error"
- key: 1
value: "ID49 Grid voltage sampling value between master and slave DSP vary widely"
- key: 2
value: "ID50 Grid frequency sampling value between master and slave DSP vary widely"
- key: 4
value: "ID51 DCI sampling value between master and slave DSP vary widely"
- key: 8
value: "ID52 GFCI sampling value between master and slave DSP vary widely"
- key: 16
value: "ID53 Communication failure between master and slave DSP failure"
- key: 32
value: "ID53 Communication failure between slave and communication board"
- key: 64
value: "ID55 Relay fault"
- key: 128
value: "ID56 Insulation resistance between PV array and the earth is too low"
- key: 256
value: "ID57 Inverter temp is too high"
- key: 512
value: "ID58 Boost temp is too high"
- key: 1024
value: "ID59 Environment temp is too high"
- key: 2048
value: "ID60 Brak podłączenie falownika do kabla PE"
- key: 4096
value: "ID61 Reserved"
- key: 8192
value: "ID62 Reserved"
- key: 16384
value: "ID63 Reserved"
- key: 32768
value: "ID64 Reserved"
icon: "mdi:wrench"
- name: "Fault 5"
rule: 1
registers: [0x0005]
lookup:
- key: 0
value: "No error"
- key: 1
value: "ID65 Grid current is too high and causes unrecoverable fault"
- key: 2
value: "ID66 Bus voltage is too high and causes unrecoverable fault"
- key: 4
value: "ID67 Grid current is unbalanced and causes unrecoverable fault"
- key: 8
value: "ID68 Input current is unbalanced and causes unrecoverable fault"
- key: 16
value: "ID69 Bus voltage is unbalanced and causes unrecoverable fault"
- key: 32
value: "ID70 Grid current is too high and causes unrecoverable fault"
- key: 64
value: "ID65 PV Input Mode Configuration is wrong and causes unrecoverable fault"
- key: 128
value: "ID72 Reserved"
- key: 256
value: "ID73 Reserved"
- key: 512
value: "ID74 Input current is too high and causes unrecoverable fault"
- key: 1024
value: "ID75 Error reading from EEPROM"
- key: 2048
value: "ID76 Error writing to EEPROM"
- key: 4096
value: "ID77 Relay fauilure causes unrecoverable fault"
- key: 8192
value: "ID78 Reserved"
- key: 16384
value: "ID79 Reserved"
- key: 32768
value: "ID80 Reserved"
icon: "mdi:wrench"