Recorder enhancements

Would be be feasible to have an individual override for each entity with something like the following?

recorder:
  purge_keep_days: 30
  include:
    domains:
      - alarm_control_panel
        purge_keep_days: 14
      - light
        purge_keep_days: 2
    entity_globs:
      - binary_sensor.*_occupancy
        purge_keep_days: 7
      - zwave.zooz_double_plug_*
        purge_keep_days: 2

I have some entities I want to keep a longer history of while others I want shorter history of. Some of my zwave plugs (Zooz) have MASSIVE amounts of entries in the database. My zwave.zooz_double_plug_01 has over 244,000 and my current keep days are only 14.

No this is not possible. It has been suggested before. You’ll probably find a WTH or Feature Request post you can vote on if you use the forum search.

Hi
I was looking exaclty for this feature but I cannot find anything in Fetaure Request to vote.
To have different retain period basing on domains or entity configuration. Can you spot me please?

Thank you
Bye

Closest one I found after a quick squizz.