Auto-entities exclude not working?

hi,
i use auto-entities to filter entites by room, what is working great.
but with my temperatures devices i don´t want to be listed all of them and i want to exclude all with “Heiz” in name, but it does not work?
what do i make wrong?

thanx
br
Frank

Have you tried filtering the name instead of the entity_id?

type: custom:auto-entities
show_empty: false
card:
  type: entities
  title: temperature sorted
  state_color: true
filter:
  include:
    - entity_id: sensor.*[Tt]emperature
      area: wc
  exclude:
    - name: /[Hh]eiz/
sort:
  method: state
  reverse: false
  numeric: true

hi @Didgeridrew

no, i don´t use names, but your hint showed me what´s wrong… i don´t have this info in the entity ids? but where does it come from? it is display in cards and every where.
i had created this device names with zigbee2mqtt and renamed devices (once with entity ID and once again without changing entity ID to give it a sepaking name) it is called friendly name in zigbe2mqtt… but in device info it is not name?


thanx @Didgeridrew , exlcude via name solved it! :+1: