Recorder exclusion list isn't excluding anything

Put this in Developer Tools → Template

{%- for d in states | groupby('domain') %}
{{ d[0] }}: {{ states[d[0]] | count  }}
{%- endfor %}

It’ll give you something like this:

alarm_control_panel: 1
automation: 287
binary_sensor: 219
button: 114
calendar: 5
camera: 17
climate: 3
device_tracker: 3
group: 10
image: 5
input_boolean: 55
input_datetime: 21
input_number: 35
input_select: 10
light: 87
lock: 2
media_player: 12
number: 22
remote: 2
scene: 35
schedule: 2
script: 166
select: 29
sensor: 791
stt: 1
sun: 1
switch: 123
tts: 1
update: 25
vacuum: 2
weather: 3
zone: 6

I’m not sure about huge but this is getting a bit silly, sensor: 791

Okay, maybe I don’t need mariadb, or even to exclude stuff.

alarm_control_panel: 1
automation: 48
binary_sensor: 68
button: 14
camera: 6
device_tracker: 18
fan: 1
group: 3
input_boolean: 23
input_number: 3
input_text: 6
light: 5
media_player: 20
number: 11
remote: 1
script: 17
select: 16
sensor: 122
stt: 1
sun: 1
switch: 57
tts: 1
update: 24
vacuum: 1
weather: 1
zone: 1

It depends on a couple of things,

  1. How chatty are your sensors?
  2. How powerful is your hardware?

Either way excludes still should work and I am at a loss to explain why yours are not working.

Not that I’ve been having performance issues, just trying not to log useless data to the DB.

My HassOS has 2 vcpus and 2GB of memory.

I also just tried omitting entity_globs, but that didn’t do it, the entities listed are still logged.

It’s a worthwhile pursuit. Your backups will be smaller. Restore will take less time. Less wear on storage.

I’m just not sure why it is not working for you, sorry. Maybe someone else may have an idea.

1 Like

Hey, just wanted to let you know that this resolved itself.

After some time the sensors stopped recording.

1 Like

I started to exclude domains and entities and so far they are still be logged in the recorder, hopefully this will be fixed in some hours or days. But it is weird no doubt.