fix apparent vs active power

This commit is contained in:
Franzi 2024-07-30 16:55:30 +02:00
parent ad255e73c9
commit 7c1ea8b2a7
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 9 additions and 5 deletions

View file

@ -27,7 +27,7 @@ TABLE_LAYOUT = {
}, },
}, },
"row2": { "row2": {
"apparent-power": { "active-power": {
"name": "Apparent Power", "name": "Apparent Power",
"suffix": "W", "suffix": "W",
}, },

View file

@ -57,10 +57,14 @@ class SDM630_MQTT:
self.modbus.open() self.modbus.open()
for idx, (readable, address) in enumerate( for idx, (readable, address) in enumerate(
{ {
"apparent-power/L1": 0x000C, "active-power/L1": 0x000C,
"apparent-power/L2": 0x000E, "active-power/L2": 0x000E,
"apparent-power/L3": 0x0010, "active-power/L3": 0x0010,
"apparent-power/total": 0x0034, "active-power/total": 0x0034,
"apparent-power/L1": 0x0012,
"apparent-power/L2": 0x0014,
"apparent-power/L3": 0x0016,
"apparent-power/total": 0x0038,
"current-demand/L1": 0x0102, "current-demand/L1": 0x0102,
"current-demand/L2": 0x0104, "current-demand/L2": 0x0104,
"current-demand/L3": 0x0106, "current-demand/L3": 0x0106,