From 5fa840294b78bb97e6125c393314def48f639838 Mon Sep 17 00:00:00 2001 From: ndeunk Date: Fri, 9 Aug 2024 22:26:55 +0200 Subject: [PATCH] Added 'measurement' state class to room temperature to be able to track history If state class is set to 'measurement', history can be tracked with recorder. https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics --- custom_components/luxtronik/sensor_entities_predefined.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/luxtronik/sensor_entities_predefined.py b/custom_components/luxtronik/sensor_entities_predefined.py index f06e669..e40bc29 100644 --- a/custom_components/luxtronik/sensor_entities_predefined.py +++ b/custom_components/luxtronik/sensor_entities_predefined.py @@ -543,6 +543,7 @@ device_key=DeviceKey.heating, entity_category=None, icon="mdi:thermometer", + state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.TEMPERATURE, native_unit_of_measurement=UnitOfTemperature.CELSIUS, visibility=LV.V0122_ROOM_THERMOSTAT,