Statistics_short_term - retention policy and access?


I have learned that table statistics will be never purged (old values) - what is fine.
Here stored the min/max/man values per hour.

Table states (with all values) will save the data for 10 days (per default) - this is configurable.

What about the table statistics_short_term?
Here are inside the values per 10 minutes inside. How long it will be stored?

How can be done the access via API to these the statistics databases?


Hi Michael,
After some digging I believe this is correct: home-assistant-setup/ at main · slittorin/home-assistant-setup (

Yes, right, in the meantime I have it found out with experiments with my database :wink:

Thanks for reply!