Skip to content

Commit

Permalink
Merge pull request #115 from IsaacInsoll/power-meter
Browse files Browse the repository at this point in the history
Support Goodwe Power Meter (Issue #92)
  • Loading branch information
TimSoethout authored Oct 9, 2024
2 parents 031905c + 8b6dae5 commit ede56d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/sems/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ async def async_update_data():
powerflow = result["powerflow"]

powerflow["sn"] = result["homKit"]["sn"]

# Goodwe 'Power Meter' (not HomeKit) doesn't have a sn
# Let's put something in, otherwise we can't see the data.
if powerflow["sn"] is None:
powerflow["sn"] = "GW-HOMEKIT-NO-SERIAL"

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

0 comments on commit ede56d6

Please sign in to comment.