Hi! 6 months have passed since I switched to Home Assistant and by now I feel at home with the system.
However, two things are still bothering me. Here I would like to talk about the “Recorder”. I’ve read a lot about “Recorder”, “Database” and how users try to keep their database lean. Unfortunately, there was nothing for me. Even if you set the “recorder” very individually, there are still too many compromises or unnecessary data in the end.
I know it’s always easy to make suggestions when you don’t know the technical background, and maybe it’s not even possible to implement with home assistant as it is. On the other hand, the team has already implemented other great things.
To the point:
Why not per domain, entity, entity_globs etc. individual “commit_interval” and “keep/expire times” ?
that would be so awesome!
recorder:
commit_interval: 60
db_url: sqlite:////home/homeassistant/.homeassistant/backups/db.tar/ha.db # exclude from backup ;)
expire: 365
rules:
entities: # , commit_interval, expire
- binary_sensor.workday_sensor, 1m , 30d
- sensor.benz , 1d , 1y
- sensor.consumption_2 , 5m , 180d
- sensor.l_main , 5s , 9M
- device_tracker.watch_becks , 10m , 6h
- switch.cam_terrase_detection, 1m , 3M
domains:
- binary_sensor , 5m , 30d
- sensor , 5m , 30d
entity_globs:
- binary_sensor.p_* , 5m , 30d
- sensor.p_*_battery , 2h , 30d
Would something like this fail due to lack of interest or the technical underpinnings of Home assistant?