Recorder cannot exclude specific sensor(s)

Based on the documentation https://www.home-assistant.io/integrations/recorder:
" You can also use the include list to define the domains/entities to record, and exclude some of those within the exclude list."
I have made such entry in my configuration file:

recorder:
  purge_keep_days: 10
  include:
    domains:
      - air_quality
      - binary_sensor
      - sensor
      - switch
  exclude:
    entities:
      - sensor.hacs
      - switch.8ch_relay08

Unfortunately both “excluded” sensor and switch appears in my history view.
What I do wrong ? Where to look to fix it ?

Try excluding from History

Else wait 10 days for DB to purge those devices old data may work also but not sure. I expect history is showing data from before you exclude from recordr

1 Like

OK. I was not patient enough.
When I excluded everything except 2 sensors (only entities section in include: part ) the history showed only those 2 sensors. Then I did some changes in config expecting the same immediate response.
But at the end it works as it should. Until I have excluded sensor and switch they were recorded and I can see it in history if I move the date. Today those 2 entities do not show in history so things are working as they should ! :slight_smile: :slight_smile: :slight_smile:

Have another question related to this.
Is it possible to use wildcard when listing entity names ?
As an example I have several sensors example below

sensor.airly_zaborow_pm1
sensor.airly_zaborow_pressure
sensor.airly_zaborow_temperature

And I would like to exclude them using one line, somethink like: sensor.airly_zaborow.*
Can this be done ?