Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity statistics not available #30

Open
andrzej-r opened this issue Apr 18, 2023 · 0 comments
Open

Entity statistics not available #30

andrzej-r opened this issue Apr 18, 2023 · 0 comments

Comments

@andrzej-r
Copy link

Entity statistics are needed for long-term data recording in Home Assistant and for processing in a statistics card or for plotting data in an aggregated format (e.g. plots averaged over 5 minute or 1 hour periods).

Only power measurements can be processed this way, all other entities have no statistical data available on them. My guess is, it is this line that enables statistics for power entities (but not for others):
HA_Discovery.py:140 tempObj['state_class']="measurement"

Guidelines from HA:
https://www.home-assistant.io/more-info/statistics/
https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

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

No branches or pull requests

1 participant