Long-term statistics
Hourly summaries of sensor values, like the mean, minimum, and maximum, or a running total, that the recorder keeps for good, for graphs over long periods and the energy dashboard.
- In code
statisticsstate_class- Also
- statistics, LTS
Home Assistant keeps statistics for every sensor with a state class. Unlike the history, they are not cleaned up after ten days. Five-minute summaries are kept too, but only as long as the history.