Force certain entities to be VERY long term

Hey everyone!
Guess I have a two-part question here…

  1. How “long term” are the long term statistics? I mean, they must be truncated eventually, right? I was under the impression that HA made it safe to not auto-fill it’s own disk.

  2. If they are not indefinite, are we able to change retention periods for specific entities? It seems that simply changing the ‘purge_keep_days’ parameter for the recorder affects everything at once.

(Main reason: I want to track a custom sensor I created over, I don’t know, let’s say the next decade)

5 minute statistics are purged after your keep days interval.

Hourly and daily statistics are never purged.

The total disk requirement for this does not grow at an excessive rate.

That’s the doc I wish I had found :slight_smile:

For future googlers: “The long-term statistics table is never purged. Because it stores an hourly summary, only 24 entries are created per day.”