Skip to content

Conversation

tronikos
Copy link

Add https://www.home-assistant.io/integrations/sensor.mqtt/#state_class set to measurement see https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes to have historical data. Right now by default you only get up to 10 days https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes After this change you will get historical values (min, max, average) at 1h intervals.

@tronikos tronikos changed the title Add state_class: measurement to allow historical data Add state_class: measurement to have long term statistics Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant