How to exclude sensors (correctly) from history?

Hi,

I have a question which is probably a very basic one - how can I exclude correctly sensors from history? For example I have this sensor in my configuration:

sensor:
  - platform: zamg
    monitored_conditions:
      - temperature

So it’s entity name is sensor.zamg_temperature

I thought I can exclude the sensor from history (and later recorder too) like that:

history:
  exclude:
    entities:
      - sensor.zamg_temperature

But it does not exclude this sensor from history? I have also tried other sensors, but it seems that nothing changes in the history view.

For example the sun tracking:

history:
  exclude:
    entities:
      - sun.sun

[EDIT] Solved: it just took a while, maybe 30 minutes, and the history is updated without its excluded entities. Interesting is that starting and stopping did not help.

1 Like