History exclude not working [resolved]

Hi - just ran into a small inconsistency and would like to clarify if this is a misunderstanding from my side or a bug which i should report
I have the following section in my configuation.yaml

##    History 
history:
  exclude:
    domains:
      - automation
      - media_player
      - timer
    entities:
      - automation.anybody_device_tracker
      
## Logbook
logbook:
  exclude:
    entities:
      - automation.it_active_pingtimer_247
      - automation.max_reset_startup
      - automation.max_reset_retrigger
    domains:
      - timer

The understanding from the documentation mentioned here is, that everything in the automation, media_player and time domain should not be displayed anymore on the page http://homeassistant.local:8085/history

The same syntax for the Logbook seems to work.

I started with a new database and emptied the browser cache - no success. All element from the domains above are still displayed.

Is this a bug?

This is my system config:
System Health

version: core-2022.5.2
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.9
os_name: Linux
os_version: 5.15.32-v8+
arch: aarch64
timezone: Europe/Berlin

I have played with it in the past and I recall having issues with it too.
Mine was partly my fault for not purging the database correctly, which can be checked when looking at the entries in the history. If they are older than what they should be, then the purge is a problem.
The other part seemed like it was HA, since the order of the list looked like it affected the it.
It looked like entities hard to be first, then entity_globs and lastly domains. Any other mix seemed to not take effect.

Hi WallyR,
thanks for your answer - I experimented a bit more … to no success.

the following entry did not yield any result either:

history:
  exclude:
    entries:
      - automation.anybody_device_tracker

(db was deleted, reload of browser)

I actually have no entry called history.
I have logbook, logger and recorder.
Try to use recorder instead.

My bad!

I had two history sections defined in my config. Of course the last one never changed and was used!.
The following works:

##    History 
history:
  exclude:
    domains:
      - automation
      - media_player
      - timer
    entities: 
      - switch.next_news
      - binary_sensor.fritz_box_7582_firmware_update
      - update.fritz_box_7582_fritz_os
    entity_globs: []

perfect!
Nice catch :slight_smile: