You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
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
The text was updated successfully, but these errors were encountered: