From dcb4a4d1ab48a533dc5025a6ec17b7e066b570be Mon Sep 17 00:00:00 2001 From: ronaldt80 <53364332+ronaldt80@users.noreply.github.com> Date: Tue, 2 Jan 2024 11:53:05 +0100 Subject: [PATCH] Update sensors.go State class total is not correct for power entities - changed to measurement --- app/sensors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sensors.go b/app/sensors.go index 1241e9b..2024283 100644 --- a/app/sensors.go +++ b/app/sensors.go @@ -80,7 +80,7 @@ func getEntities(w *wallbox.Wallbox) map[string]Entity { "name": "Charging power", "device_class": "power", "unit_of_measurement": "W", - "state_class": "total", + "state_class": "measurement", "suggested_display_precision": "1", }, },