From 9cafda2a291a4d5715c282046a049e597c7a5af2 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 11 Feb 2023 08:03:49 -0500 Subject: [PATCH 1/4] Update METER_TO_GRID Changed the class for Meter_to_grid from state_class_total_increasing to state_class_total to allow for negative values for when Net Metering is in use and Energy is being sold back to the grid --- custom_components/sunpower/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/sunpower/const.py b/custom_components/sunpower/const.py index e6d6e68..a46b559 100644 --- a/custom_components/sunpower/const.py +++ b/custom_components/sunpower/const.py @@ -78,7 +78,7 @@ "METER_L12_V": ["v12_v", "Supply Volts", ELECTRIC_POTENTIAL_VOLT, "mdi:flash", DEVICE_CLASS_VOLTAGE, STATE_CLASS_MEASUREMENT], "METER_TO_GRID": ["neg_ltea_3phsum_kwh", "KWH To Grid", ENERGY_KILO_WATT_HOUR, "mdi:flash", - DEVICE_CLASS_ENERGY, STATE_CLASS_TOTAL_INCREASING], + DEVICE_CLASS_ENERGY, STATE_CLASS_TOTAL], "METER_TO_HOME": ["pos_ltea_3phsum_kwh", "KWH To Home", ENERGY_KILO_WATT_HOUR, "mdi:flash", DEVICE_CLASS_ENERGY, STATE_CLASS_TOTAL_INCREASING] } From 18ee3ecc067092f23e807caa7d325f9f809fc3c7 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 11 Feb 2023 21:48:36 -0500 Subject: [PATCH 2/4] Update Meter-Net-KWH Updated METER_NET_KWH from STATE_CLASS_TOTAL_INCREASING to STATE_CLASS_TOTAL to allow for negative values for net metering instances --- custom_components/sunpower/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/sunpower/const.py b/custom_components/sunpower/const.py index a46b559..d939ed3 100644 --- a/custom_components/sunpower/const.py +++ b/custom_components/sunpower/const.py @@ -53,7 +53,7 @@ "Lifetime Power", ENERGY_KILO_WATT_HOUR, "mdi:flash", - DEVICE_CLASS_ENERGY, STATE_CLASS_TOTAL_INCREASING, + DEVICE_CLASS_ENERGY, STATE_CLASS_TOTAL, ], "METER_KW": ["p_3phsum_kw", "Power", POWER_KILO_WATT, "mdi:flash", DEVICE_CLASS_POWER, STATE_CLASS_MEASUREMENT], From bb4f848e034e6b966db9f8578f8883bd1219093e Mon Sep 17 00:00:00 2001 From: heyhewmike <75391794+heyhewmike@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:35:24 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 119296c..a2af6ef 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# This is a Fork for Personal Experimental Development of the Project +----------- # hass-sunpower Home Assistant SunPower Integration using the local installer ethernet interface. From 7b0bf49b9818ece8c7ba0f5878efce30ebc1485b Mon Sep 17 00:00:00 2001 From: heyhewmike <75391794+heyhewmike@users.noreply.github.com> Date: Mon, 6 Mar 2023 08:54:34 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index a2af6ef..119296c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -# This is a Fork for Personal Experimental Development of the Project ------------ # hass-sunpower Home Assistant SunPower Integration using the local installer ethernet interface.