Skip to content

Commit

Permalink
Added diverted_session to eddi
Browse files Browse the repository at this point in the history
  • Loading branch information
CJNE committed Sep 2, 2021
1 parent 374b933 commit bd77dab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pymyenergi/eddi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
2 changes: 1 addition & 1 deletion pymyenergi/zappi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit bd77dab

Please sign in to comment.