From 6c3ae7290c49de84fcb4d172ac412dec309d3512 Mon Sep 17 00:00:00 2001 From: Michel Nederlof Date: Mon, 25 Nov 2024 18:02:35 +0100 Subject: [PATCH] Keep information about production values Information like: - Lifetime energy Production - This week energy Production - Todays Energy Production - Yesterdays Energy Production - Production itself --- custom_components/enphase_envoy/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/enphase_envoy/sensor.py b/custom_components/enphase_envoy/sensor.py index c939ba8..6dbc0f4 100644 --- a/custom_components/enphase_envoy/sensor.py +++ b/custom_components/enphase_envoy/sensor.py @@ -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