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
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
| switch:
#Multiplus Limit discharge power
- unique_id: multiplus_switch_discharge_power
name: Multiplus Limit discharge power
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/MaxDischargePower"
payload_on: '{"value": 1000}'
payload_off: '{"value": -1}'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/MaxDischargePower"
value_template: >
{% if value_json.value | int == -1 %}
{% set state_limit = 'OFF' %}
{% else %}
{% set state_limit = 'ON' %}
{% endif %}
{{ state_limit }}
state_on: 'ON'
state_off: 'OFF'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Allow AC feed in
- unique_id: multiplus_allow_ac_feed_in
name: Multiplus Allow AC feed in
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/PreventFeedback"
payload_on: '{"value": 0}'
payload_off: '{"value": 1}'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/PreventFeedback"
value_template: "{{ value_json.value | int }}"
state_on: '0'
state_off: '1'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Allow DC feed in
- unique_id: multiplus_allow_dc_feed_in
name: Multiplus Allow DC feed in
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/OvervoltageFeedIn"
payload_on: '{"value": 1}'
payload_off: '{"value": 0}'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/OvervoltageFeedIn"
value_template: "{{ value_json.value | int }}"
state_on: '1'
state_off: '0'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
number:
#Multiplus grid setpoint
- unique_id: multiplus_grid_setpoint
name: Multiplus grid setpoint
min: -4000
max: 4000
step: 10
mode: box
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/AcPowerSetPoint"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/AcPowerSetPoint"
value_template: "{{value_json.value | round(0) }}"
device_class: power
unit_of_measurement: W
icon: mdi:meter-electric-outline
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus AC current limit
- unique_id: multiplus_ac_current_limit
name: Multiplus AC current limit
min: 0
max: 50
step: 1
mode: box
command_topic: "victron/W/your-id-here/vebus/276/Ac/ActiveIn/CurrentLimit"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/vebus/276/Ac/ActiveIn/CurrentLimit"
value_template: "{{ value_json.value }}"
device_class: current
unit_of_measurement: A
icon: mdi:current-ac
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Minimum SOC
- unique_id: multiplus_min_soc
name: Battery Minimum SOC
min: 20
max: 100
step: 5
mode: box
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/BatteryLife/MinimumSocLimit"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/BatteryLife/MinimumSocLimit"
value_template: "{{value_json.value | round(0) }}"
device_class: battery
icon: mdi:battery-20
unit_of_measurement: '%'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Maximum SOC
- unique_id: multiplus_max_soc
name: Battery Max SOC
min: 0
max: 100
step: 5
mode: box
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/MaxChargePercentage"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/MaxChargePercentage"
value_template: "{{value_json.value | round(0) }}"
device_class: battery
icon: mdi:battery-90
unit_of_measurement: '%'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Active SOC limit
- unique_id: multiplus_soc_limit
name: Battery SOC limit
min: 0
max: 100
step: 5
mode: box
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/BatteryLife/SocLimit"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/BatteryLife/SocLimit"
value_template: "{{value_json.value | round(0) }}"
device_class: battery
icon: mdi:battery-60
unit_of_measurement: '%'
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
#Multiplus Maximal discharge power
- unique_id: multiplus_discharge_power
name: Multiplus maximal discharge power
min: 0
max: 10000
step: 50
mode: box
command_topic: "victron/W/your-id-here/settings/0/Settings/CGwacs/MaxDischargePower"
command_template: '{"value": {{ value }} }'
state_topic: "victron/N/your-id-here/settings/0/Settings/CGwacs/MaxDischargePower"
value_template: >
{% if value_json.value == -1 %}
10000
{% else %}
{{value_json.value | round(0) }}
{% endif %}
device_class: power
icon: mdi:battery-arrow-down-outline
unit_of_measurement: W
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
binary_sensor:
# Victron MQTT Sensoren
#Cerbo General Alarm
- unique_id: victron_buzzer
name: System status
state_topic: "victron/N/your-id-here/system/0/Buzzer/State"
value_template: "{{ value_json.value }}"
payload_on: "1"
payload_off: "0"
icon: mdi:information-outline
device_class: problem
device: {
identifiers: [
"Victron Cerbo GX"
],
manufacturer: "Victron Energy",
model: "Cerbo GX",
name: "Cerbo GX"}
sensor:
#Victron MPPT state
- unique_id: victron_solar_charger_state
name: MPPT state
state_topic: "victron/N/your-id-here/solarcharger/278/State"
value_template: >
{% if value_json.value == 0 %}
Off
{% elif value_json.value == 252 %}
Charging
{% elif value_json.value == 2 %}
Fault
{% elif value_json.value == 3 %}
Bulk
{% elif value_json.value == 4 %}
Absorption
{% elif value_json.value == 5 %}
Float
{% elif value_json.value == 6 %}
Storage
{% elif value_json.value == 7 %}
Equalize
{% else %}
Error - No Data
{% endif %}
icon: mdi:sun-angle-outline
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT current - battery side
- unique_id: victron_solar_charger_current
name: MPPT current - battery side
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/solarcharger/278/Dc/0/Current"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:current-dc
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT voltage - battery side
- unique_id: victron_solar_charger_voltage_battery
name: MPPT voltage - battery side
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/solarcharger/278/Dc/0/Voltage"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:alpha-v-box
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT voltage - PV side
- unique_id: victron_solar_charger_voltage
name: MPPT voltage - PV side
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/solarcharger/278/Pv/V"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:alpha-v-box
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT power
- unique_id: victron_solar_charger_power
name: MPPT power
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/solarcharger/278/Yield/Power"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:solar-power
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT yield today
- unique_id: victron_solar_charger_yield_today
name: MPPT yield today
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/solarcharger/278/History/Daily/0/Yield"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:solar-power-variant-outline
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT yield yesterday
- unique_id: victron_solar_charger_yield_yesterday
name: MPPT yield yesterday
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/solarcharger/278/History/Daily/1/Yield"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:solar-power-variant-outline
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Victron MPPT total yield
- unique_id: victron_solar_charger_yield_overall
name: MPPT total yield
state_class: total_increasing
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/solarcharger/278/Yield/System"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:solar-power-variant-outline
device: {
identifiers: [
"Victron MPPT 100/20"
],
manufacturer: "Victron Energy",
model: "MPPT 100/20",
name: "MPPT schuurdak"}
#Battery
#Victron Battery State of charge
- unique_id: battery_SOC
name: Battery State of Charge
unit_of_measurement: '%'
state_topic: "victron/N/your-id-here/battery/512/Soc"
value_template: "{{ value_json.value | round (1)}}"
icon: mdi:battery-medium
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery Remaining battery capacity
- unique_id: battery_actual_capacity
name: Remaining battery capacity
unit_of_measurement: Ah
state_topic: "victron/N/your-id-here/battery/512/Capacity"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:battery-medium
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery charge current
- unique_id: Battery_current
name: Battery current
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/battery/512/Dc/0/Current"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:battery-arrow-up-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery voltage
- unique_id: Battery_voltage
name: Battery voltage
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/battery/512/Dc/0/Voltage"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:battery-arrow-up-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery power
- unique_id: Battery_power
name: Battery power
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/battery/512/Dc/0/Power"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:battery-arrow-up-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery temperature
- unique_id: Battery_temperature
name: Battery temperature
state_class: measurement
device_class: temperature
unit_of_measurement: '°C'
state_topic: "victron/N/your-id-here/battery/512/Dc/0/Temperature"
value_template: "{{ value_json.value | round (2)}}"
icon: mdi:battery-arrow-up-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery highest cell temperature
- unique_id: cerbo_battery_max_temperature
name: Battery highest cell temperature
state_class: measurement
device_class: temperature
unit_of_measurement: '°C'
state_topic: "victron/N/your-id-here/battery/512/System/MaxCellTemperature"
value_template: "{{value_json.value | round(2) }}"
icon: mdi:thermometer-chevron-up
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery lowest cell temperature
- unique_id: cerbo_battery_min_temperature
name: Battery lowest cell temperature
state_class: measurement
device_class: temperature
unit_of_measurement: '°C'
state_topic: "victron/N/your-id-here/battery/512/System/MinCellTemperature"
value_template: "{{value_json.value | round(2) }}"
icon: mdi:thermometer-chevron-down
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery highest cell voltage
- unique_id: cerbo_battery_max_cellvoltage
name: Battery highest cell voltage
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/battery/512/System/MaxCellVoltage"
value_template: "{{value_json.value | round(3) }}"
icon: mdi:alpha-v-box-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery highest voltage cell number
- unique_id: cerbo_battery_max_cellvoltage_number
name: Battery highest voltage cell number
state_topic: "victron/N/your-id-here/battery/512/System/MaxVoltageCellId"
value_template: "{{value_json.value }}"
icon: mdi:counter
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery lowest voltage cell number
- unique_id: battery_min_cellvoltage_number
name: Battery lowest voltage cell number
state_topic: "victron/N/your-id-here/battery/512/System/MinVoltageCellId"
value_template: "{{value_json.value }}"
icon: mdi:counter
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery lowest cell voltage
- unique_id: cerbo_battery_min_cellvoltage
name: Battery lowest cell voltage
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/battery/512/System/MinCellVoltage"
value_template: "{{value_json.value | round(3) }}"
icon: mdi:alpha-v-box-outline
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery total discharged energy
- unique_id: battery_total_discharged_energy
name: Battery total discharged energy
device_class: energy
unit_of_measurement: kWh
state_class: total_increasing
state_topic: "victron/N/your-id-here/battery/512/History/DischargedEnergy"
value_template: "{{value_json.value | round(2) }}"
icon: mdi:transmission-tower-import
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#Victron Battery total charged energy
- unique_id: battery_total_charged_energy
name: Battery total charged energy
device_class: energy
unit_of_measurement: kWh
state_class: total_increasing
state_topic: "victron/N/your-id-here/battery/512/History/ChargedEnergy"
value_template: "{{value_json.value | round(2) }}"
icon: mdi:transmission-tower-export
device: {
identifiers: [
"EEL battery"
],
manufacturer: "EEL",
model: "JK inverter BMS v15",
name: "EEL battery"}
#EM540 Power / Current / Voltage / Import / Export
#Total energy from grid
- unique_id: energy_from_grid
name: Total energy from grid
state_class: total_increasing
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/grid/30/Ac/Energy/Forward"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:transmission-tower-export
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540"}
#Total energy to grid
- unique_id: grid_reversed
name: Total energy to grid
state_class: total_increasing
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/grid/30/Ac/Energy/Reverse"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:transmission-tower-import
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#Grid frequency
- unique_id: grid_frequency
name: Grid frequency
state_class: measurement
device_class: frequency
unit_of_measurement: Hz
state_topic: "victron/N/your-id-here/grid/30/Ac/Frequency"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:cosine-wave
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#Grid total power
- unique_id: grid_total_power
name: Grid total power
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/grid/30/Ac/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#Grid power L1
- unique_id: grid_l1_power
name: Grid power L1
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/grid/30/Ac/L1/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid voltage L1
- unique_id: grid_l1_voltage
name: Grid voltage L1
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/grid/30/Ac/L1/Voltage"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid current L1
- unique_id: grid_l1_current
name: Grid current L1
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/grid/30/Ac/L1/Current"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#Grid power L2
- unique_id: grid_l2_power
name: Grid power L2
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/grid/30/Ac/L2/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid voltage L2
- unique_id: grid_l2_voltage
name: Grid voltage L2
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/grid/30/Ac/L2/Voltage"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid current L2
- unique_id: grid_l2_current
name: Grid current L2
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/grid/30/Ac/L2/Current"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#Grid power L3
- unique_id: grid_l3_power
name: Grid power L3
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/grid/30/Ac/L3/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid voltage L3
- unique_id: grid_l3_voltage
name: Grid voltage L3
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/grid/30/Ac/L3/Voltage"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
# Grid current L3
- unique_id: grid_l3_current
name: Grid current L3
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/grid/30/Ac/L3/Current"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-grid"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-grid"}
#EM540 Power / Current / Voltage / PV
# PV Total energy
- unique_id: energy_from_PV
name: Total energy from PV
state_class: total_increasing
device_class: energy
unit_of_measurement: kWh
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/Energy/Forward"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:transmission-tower-export
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV total power
- unique_id: PV_total_power
name: PV total power
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV power L1
- unique_id: PV_l1_power
name: PV power L1
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L1/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV voltage L1
- unique_id: PV_l1_voltage
name: PV voltage L1
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L1/Voltage"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV current L1
- unique_id: PV_l1_current
name: PV current L1
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L1/Current"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV power L2
- unique_id: PV_l2_power
name: PV power L2
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L2/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV voltage L2
- unique_id: PV_l2_voltage
name: PV voltage L2
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L2/Voltage"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV current L2
- unique_id: PV_l2_current
name: PV current L2
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L2/Current"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV power L3
- unique_id: PV_l3_power
name: PV power L3
state_class: measurement
device_class: power
unit_of_measurement: W
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L3/Power"
value_template: "{{ value_json.value | round(2)}}"
icon: mdi:lightning-bolt
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV voltage L3
- unique_id: PV_l3_voltage
name: PV voltage L3
state_class: measurement
device_class: voltage
unit_of_measurement: V
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L3/Voltage"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:sine-wave
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"}
# PV current L3
- unique_id: PV_l3_current
name: PV current L3
state_class: measurement
device_class: current
unit_of_measurement: A
state_topic: "victron/N/your-id-here/pvinverter/31/Ac/L3/Current"
value_template: "{{ value_json.value | round(2) }}"
icon: mdi:current-ac
device: {
identifiers: [
"EM540-PV"
],
manufacturer: "Carlo Gavazzi",
model: "EM540",
name: "EM540-PV"} |