Skip to content

Commit

Permalink
Merge pull request #74 from philipbrennan/patch-1
Browse files Browse the repository at this point in the history
add all time total generation from kpi
  • Loading branch information
TimSoethout authored Aug 17, 2022
2 parents 04bb9b8 + 2302fd9 commit 97e91f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/sems/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ async def async_update_data():

powerflow["sn"] = result["homKit"]["sn"]
#_LOGGER.debug("homeKit sn: %s", result["homKit"]["sn"])
# This seems more accurate than the Chart_sum
powerflow["all_time_generation"] = result["kpi"]["total_power"]

data["homeKit"] = powerflow

#_LOGGER.debug("Resulting data: %s", data)
Expand Down

0 comments on commit 97e91f4

Please sign in to comment.