From afc42e105696378ae4148c348e92608a6696b52f Mon Sep 17 00:00:00 2001 From: Chris Straffon Date: Wed, 12 Apr 2023 20:48:05 +0100 Subject: [PATCH] #30 - Adding TOTAL_INCREASING for total energy today sensor --- custom_components/growatt_server_api/sensor_types/total.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/growatt_server_api/sensor_types/total.py b/custom_components/growatt_server_api/sensor_types/total.py index 2056443..bada191 100644 --- a/custom_components/growatt_server_api/sensor_types/total.py +++ b/custom_components/growatt_server_api/sensor_types/total.py @@ -25,6 +25,7 @@ api_key="todayEnergy", native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, + state_class=SensorStateClass.TOTAL_INCREASING, ), GrowattSensorEntityDescription( key="total_output_power",