diff --git a/pymyenergi/eddi.py b/pymyenergi/eddi.py index d493f7c..181ec27 100644 --- a/pymyenergi/eddi.py +++ b/pymyenergi/eddi.py @@ -27,6 +27,11 @@ def l1_phase(self): """What phase L1 is connected to""" return self._data.get("pha", 0) + @property + def diverted_session(self): + """Energy diverted this session kWh""" + return self._data.get("che") + @property def power_grid(self): """Grid power in W""" diff --git a/pymyenergi/zappi.py b/pymyenergi/zappi.py index 63a71aa..016dbdd 100644 --- a/pymyenergi/zappi.py +++ b/pymyenergi/zappi.py @@ -41,7 +41,7 @@ def charge_mode(self): @property def charge_added(self): - """Charge added in kWh""" + """Charge added this session in kWh""" return self._data.get("che") @property diff --git a/setup.py b/setup.py index f413368..53300bf 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name="pymyenergi", - version="0.0.5", + version="0.0.6", author="Johan Isaksson", author_email="johan@generatorhallen.se", description="Python library and CLI for communicating with myenergi API.",