Home-assistant_v2 configuration to make it small as possible

Hi Guys,

This is my config, my goal is to keep the Database size small as possible,

i would appreciate to receive any ideas to improve my config,

configuration.yaml :

history:

View all events in a logbook

logbook:
exclude:
entities:
- sensor.last_boot
- sensor.date
domains:
- sun
- weblink

recorder:
purge_keep_days: 1
purge_interval: 1
exclude:
domains:
- automation
- weblink
- updater
entities:
- sun.sun
- sensor.last_boot
- sensor.date

Thanks ,

You can exclude every single entity that you don’t need, and with an automation for the purge, you can do it every hour if you like, but keep in mind that the purge is also a write operation on the SD card.

Not all installations are on SD Cards. Some use various disc drives. :wink:

Can you please help with how to write under service data:

1
2

is part one ok ?

about the purge :slight_smile:
recorder:
purge_keep_days: 1 - This line to remove?
purge_interval: 0 - that’s ok ?

Thanks,

In configuration.yaml

recorder:
  purge_interval: 0

Service data (not sure, don’t use Editor)

{"keep_days": 1, "repack": true }

How to add purge data for some entities or domains after 5 days.
Is it possible?

will try and update

No, the days to keep setting applies against all entities being tracked by the recorder component.