123
(Taras)
December 1, 2020, 5:01am
21
I can’t imagine it’s the bulbs that contribute a significant part of the history.
FWIW, this post expands on mryckman’s suggestion:
How to reduce your database size and extend the life of your SD card - Community Guides - Home Assistant Community (home-assistant.io)
Here’s me giving someone the same advice mryckman gave you (my production server stores to disk but my test server stores to memory). I also included a sample of how I configured recorder
so that it only records history for what interests me.
Here’s one way to reduce wear and tear on a microSD card (or SSD or ‘spinning rust’) but it assumes you don’t care if you lose History every time you reboot the RPi.
The important point here is you instruct Home Assistant to maintain its History log in memory and not on the SD card.
db_url: 'sqlite:///:memory:'
I have more than one instance of Home Assistant running and the one that resides on an RPi3 uses this technique. In addition, you can also specify what you do and don’t want to be reco…