Skip to content

Commit d46bdee

Browse files
committed
openwb: add smartmeter template, add more topics (#160)
1 parent 35b4618 commit d46bdee

15 files changed

Lines changed: 69 additions & 24 deletions

data/misc/openwb.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,38 @@
33
"version": "1.9",
44
"topics": [
55
{ "setpvw": "openWB/set/pv/#InverterID#/W" },
6+
{ "setpvwh": "openWB/set/pv/#InverterID#/WhCounter"},
7+
{ "setcoexp": "openWB/set/houseMeter/WhExported" },
8+
{ "setcocur": "openWB/set/houseMeter/Currents" },
9+
{ "setcofre": "openWB/set/houseMeter/Frequency" },
10+
{ "setcovol": "openWB/set/houseMeter/Voltages" },
11+
{ "setcopow": "openWB/set/houseMeter/Powers" },
12+
{ "setcopowf": "openWB/set/houseMeter/PowerFactors" },
13+
{ "setcoimp": "openWB/set/houseMeter/WhImported" },
14+
{ "setcow": "openWB/set/houseMeter/W" },
615
{ "setbatw": "openWB/set/houseBattery/W"},
716
{ "setbatsoc": "openWB/set/houseBattery/%Soc"},
817
{ "setbatexpwh": "openWB/set/houseBattery/WhExported"},
9-
{ "setbatimpwh": "openWB/set/houseBattery/WhImported"},
10-
{ "setcounterwh": "openWB/set/pv/#InverterID#/WhCounter"}
18+
{ "setbatimpwh": "openWB/set/houseBattery/WhImported"}
1119
]
1220
},
1321
{
1422
"version": "2.0",
1523
"topics": [
1624
{ "setpvw": "openWB/set/pv/#InverterID#/get/power" },
17-
{ "setbatw": "openWB/set/bat/#BatteryID#/get/power"},
18-
{ "setbatsoc": "openWB/set/bat/#BatteryID#/get/soc"},
19-
{ "setbatexpwh": "openWB/set/bat/#BatteryID#/get/exported"},
20-
{ "setbatimpwh": "openWB/set/bat/#BatteryID#/get/imported"},
21-
{ "setcounterwh": " openWB/set/pv/#InverterID#/get/exported"}
22-
25+
{ "setpvwh": "openWB/set/pv/#InverterID#/get/exported" },
26+
{ "setbatw": "openWB/set/bat/#BatteryID#/get/power" },
27+
{ "setbatsoc": "openWB/set/bat/#BatteryID#/get/soc" },
28+
{ "setbatexpwh": "openWB/set/bat/#BatteryID#/get/exported" },
29+
{ "setbatimpwh": "openWB/set/bat/#BatteryID#/get/imported" },
30+
{ "setcoexp": "openWB/set/counter/#SmartMeterID#/get/exported" },
31+
{ "setcocur": "openWB/set/counter/#SmartMeterID#/get/currents" },
32+
{ "setcofre": "openWB/set/counter/#SmartMeterID#/get/frequency" },
33+
{ "setcovol": "openWB/set/counter/#SmartMeterID#/get/voltages" },
34+
{ "setcopow": "openWB/set/counter/#SmartMeterID#/get/powers" },
35+
{ "setcopowf": "openWB/set/counter/#SmartMeterID#/get/power_factors" },
36+
{ "setcoimp": "openWB/set/counter/#SmartMeterID#/get/imported" },
37+
{ "setcow": "openWB/set/counter/#SmartMeterID#/get/power" }
2338
]
2439
}
2540
]

data/regs/Deye_SUN_SG04LP3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
"realname": "Total PV Power in Wh",
337337
"datatype": "float",
338338
"factor": 100,
339-
"openwbtopic": "setcounterwh",
339+
"openwbtopic": "setpvwh",
340340
"unit": "KWh"
341341
},
342342
{

data/regs/Growatt-MOD.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
"name": "TotalEnergyGeneratedWh",
332332
"realname": "Erzeugte Energie Gesamt in Wh",
333333
"datatype": "integer",
334-
"openwbtopic": "setcounterwh",
334+
"openwbtopic": "setpvwh",
335335
"factor": 100,
336336
"unit": "KWh"
337337
},

data/regs/Growatt-SPH-V124.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"position": [5, 6, 7, 8],
5656
"name": "Power_PV_Input_W",
5757
"realname": "Power of PV input",
58+
"openwbtopic": "setpvw",
5859
"datatype": "float",
5960
"factor": 0.1,
6061
"unit": "W"
@@ -119,6 +120,7 @@
119120
"position": [77, 78],
120121
"name": "AC_GridFrequency_Hz",
121122
"realname": "Grid Frequency",
123+
"openwbtopic": "setcofre",
122124
"datatype": "float",
123125
"factor": 0.01,
124126
"unit": "Hz"
@@ -127,6 +129,7 @@
127129
"position": [109, 110, 111, 112],
128130
"name": "Energy_Generated_today_kWh",
129131
"realname": "generated Energy today",
132+
"openwbtopic": "setpvwh",
130133
"datatype": "float",
131134
"factor": 0.1,
132135
"unit": "kWh"
@@ -287,6 +290,7 @@
287290
"position": [246, 247, 248, 249],
288291
"name": "Power_Battery_Discharge_W",
289292
"realname": "Discharge Power",
293+
"openwbtopic": "setbatexpwh",
290294
"datatype": "float",
291295
"factor": 0.1,
292296
"unit": "W"
@@ -295,6 +299,7 @@
295299
"position": [250, 251, 252, 253],
296300
"name": "Power_Battery_Charge_W",
297301
"realname": "Charge Power",
302+
"openwbtopic": "setbatimpwh",
298303
"datatype": "float",
299304
"factor": 0.1,
300305
"unit": "W"
@@ -311,6 +316,7 @@
311316
"position": [256, 257],
312317
"name": "Battery_SOC_Percent",
313318
"realname": "Battery State Of Charge",
319+
"openwbtopic": "setbatsoc",
314320
"datatype": "float",
315321
"factor": 1.0,
316322
"unit": "%"
@@ -319,6 +325,7 @@
319325
"position": [270, 271, 272, 273],
320326
"name": "Power_AC_GridToUser_W",
321327
"realname": "SmartMeter: AC Power Grid to User",
328+
"openwbtopic": "setbatimpwh",
322329
"datatype": "float",
323330
"factor": 0.1,
324331
"unit": "W"
@@ -327,6 +334,7 @@
327334
"position": [286, 287, 288, 289],
328335
"name": "Power_AC_UserToGrid_W",
329336
"realname": "SmartMeter: AC Power User to Grid",
337+
"openwbtopic": "setcoexp",
330338
"datatype": "float",
331339
"factor": 0.1,
332340
"unit": "W"

data/regs/Growatt-SPH.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
],
7777
"name": "TotalEnergyPV",
7878
"realname": "Erzeugte Energie PV",
79-
"openwbtopic": "setcounterwh",
79+
"openwbtopic": "setpvwh",
8080
"datatype": "integer",
8181
"factor": 100,
8282
"unit": "Wh"

data/regs/QVolt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
"name": "EnergyTotalToGridWh",
448448
"realname": "Total Energy to Grid in Wh",
449449
"datatype": "integer",
450-
"openwbtopic": "setcounterwh",
450+
"openwbtopic": "setpvwh",
451451
"factor": 100,
452452
"unit": "Wh"
453453
},

data/regs/Solax-MIC-Pro.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
],
304304
"name": "EnergyTotalToGridWh",
305305
"realname": "Total Energy to Grid in Wh",
306-
"openwbtopic": "setcounterwh",
306+
"openwbtopic": "setpvwh",
307307
"datatype": "integer",
308308
"factor": 100,
309309
"unit": "Wh"

data/regs/Solax-MIC.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"position": [75, 76, 73, 74],
198198
"name": "EnergyTotalToGridWh",
199199
"realname": "Total Energy to Grid in Wh",
200-
"openwbtopic": "setcounterwh",
200+
"openwbtopic": "setpvwh",
201201
"datatype": "integer",
202202
"factor": 100,
203203
"unit": "Wh"

data/regs/Solax-X1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
],
406406
"name": "EnergyTotalToGridWh",
407407
"realname": "Total Energy to Grid in Wh",
408-
"openwbtopic": "setcounterwh",
408+
"openwbtopic": "setpvwh",
409409
"datatype": "integer",
410410
"factor": 100,
411411
"unit": "Wh"

data/regs/Solax-X3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@
650650
"name": "EnergyTotalToGridWh",
651651
"realname": "Total Energy to Grid in Wh",
652652
"datatype": "float",
653-
"openwbtopic": "setcounterwh",
653+
"openwbtopic": "setpvwh",
654654
"factor": 100,
655655
"unit": "Wh"
656656
},

0 commit comments

Comments
 (0)