Skip to content

Commit

Permalink
Adds HMT Power to first level (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickGoettsch authored Nov 20, 2023
1 parent d4c6ab3 commit 81ad41b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbus_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,14 @@ def set_dbus_values(self):
self._dbusservice["/Ac/L3/Voltage"] = singlePhaseVoltage
self._dbusservice["/Ac/L3/Current"] = realCurrent
self._dbusservice["/Ac/L3/Power"] = powerthird
self._dbusservice["/Ac/Power"] = power

if power > 0:
self._dbusservice["/Ac/L1/Energy/Forward"] = pvyield / 3
self._dbusservice["/Ac/L2/Energy/Forward"] = pvyield / 3
self._dbusservice["/Ac/L3/Energy/Forward"] = pvyield / 3
self._dbusservice["/Ac/Energy/Forward"] = pvyield

else:
pre = "/Ac/" + self.pvinverterphase
self._dbusservice[pre + "/Voltage"] = voltage
Expand Down

0 comments on commit 81ad41b

Please sign in to comment.