I would like to get statistics about some sensors more even over years… I.e. I would like to see how many time the heater has been working (last month, last year, this year, etc…)…
I know you have https://www.home-assistant.io/components/sensor.history_stats/
to do this, but I dont know if this sensor can work with database
recorder set to standard 10 days.
Obviously, I dont want to have a database with 5 years for all sensors, because of space disk ,startup time, etc. (i am runnig in a rpi3). Today I have purge_keep_days=10 days and a 300MB of database size.
I have about 200 entities from wich I would like to have record for a few (less than 10) for more than 1 year, a few 30-40 to have tipical record 10-30 days, and the rest of devices not recorded at all. This seems that cant be configured in “recoder” because you have whitelist and blacklist, but only a “purge_keep_days” global for all entities…
I have seen that HA design has poorly support for save permanent (or long live) state of things… I have seen
restore_state @ https://www.home-assistant.io/components/recorder/ but it is suported by only a few components…
I would like to know If anyone has though something similar. At least for get a cummulative sensor that get the time activated from where you want, independent of your “purge_keep_days” database.