Skip to content

Commit

Permalink
Added 'measurement' state class to room temperature to be able to tra…
Browse files Browse the repository at this point in the history
…ck 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
  • Loading branch information
ndeunk authored Aug 9, 2024
1 parent 4414bdd commit 5fa8402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/luxtronik/sensor_entities_predefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5fa8402

Please sign in to comment.