limouzin
(Denis Limouzin)
August 1, 2022, 1:13pm
1
Hi,
Is it possible to configure the data that are saved and for how long it is saved to prevent dayabase to explose in size ?
Is it possible to purge database for old datas ?
Thanks from France (Bordeaux)
Welcome to the forum!
The integration that is responsible for your DB is recorder
. Take a look here to get familiar with it:
You might want to read up some articles as well:
Note: This guide was written for an earlier version of Home Assistant (around 2021). Since then, changes have happened, but this guide hasn’t been updated (yet). Please be aware your Home Assistant version can be slightly different, and thus you need to adapt yourself the instructions from this guide.
Introduction
This is yet another guide on:
How to view the size of your database.
How to figure out which entities are using too much space.
And how to filter them out.
I’m running Home Assi…
Preamble: @tom_l is the original author of this community guide. He proposed an analytical approach to decide for each entity_id whether to include or exclude it from the underlying database. @mbuscher suggested to go after the entities most often updated in the database, and exclude only those. Both approaches are now included in this community guide.
Target audience: anyone who uses an installation on flash memory like a Raspberry Pi with an SD card or an SSD drive, or anyone who wishes to re…
1 Like