Skip to content

Commit

Permalink
Keep information about production values
Browse files Browse the repository at this point in the history
Information like:
- Lifetime energy Production
- This week energy Production
- Todays Energy Production
- Yesterdays Energy Production
- Production itself
  • Loading branch information
mnederlof authored Nov 25, 2024
1 parent 643c1c3 commit 6c3ae72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/enphase_envoy/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ def native_value(self):
return datetime.datetime.fromtimestamp(
int(value), tz=datetime.timezone.utc
)
if self.entity_description.name.endswith("Production"):
return value
if serial.get("gone", True):
return None
return value
Expand Down

0 comments on commit 6c3ae72

Please sign in to comment.