Open DracoC77 opened 1 month ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
recorder documentation recorder source (message by IssueLinks)
The problem
My sqlite DB file was getting un-expectedly large so I did some deep diving into why the file size was so large and found something unusual... state_attributes was taking up a huge amount of the total filesize for some reason:
Looking at the actual database file a bit more closely, I noticed that I had a TON of entries for my lights:![state_attributes](https://github.com/home-assistant/core/assets/69522449/e8487867-31a1-4c56-9b8b-98dd20e20690)
It looks like whenever an attribute on my smart light was being changed, it created a NEW entry in the sqlite database under state_attributes for that specific combination of settings. Because I'm running the Adaptive Lighting custom integration, all of my lights get a lot of different light color and brightness commands throughout the day, which seems to be blowing up the size of my sqlite db file.
Is there a way to exclude just specific attribute changes in recorder or make it such that recorder is not writing a whole new state_attributes for each combination of attributes on lights?
What version of Home Assistant Core has the issue?
core-2024.5.3
What was the last working version of Home Assistant Core?
core-2024.5.3
What type of installation are you running?
Home Assistant Container
Integration causing the issue
recorder + any smartlight with different attributes
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response