Exclude_Entities

Hello to everyone:
I need some help, i use this integration https://www.home-assistant.io/integrations/homekit/ and i want to exclude a series of entity that are called binary_sensor.<some number/letter>_update_available. so there is something like that:
exclude_entity:

  • binary_sensor.*_update_availabe?

Thanks a lot
Stefano

Unfortunately, globbing is not possible in the configuration.

EDIT: You can use the template editor to write your configuration for you.

{% for s in states.binary_sensor if s.object_id.endswith('_update_available') %}
  - {{ s.entity_id }}
{% endfor %}

Realy thanks a lot Petro for your reply.!! :smiley:
I’m trying to add the string but i have thi error now:

missed comma between flow collection entries at line 154, column 8:
          {% for s in states.binary_sensor  ... 
           ^

My configuration.yaml:

homekit:
  filter:
    exclude_domains:
      - automation
      - group
      - input_boolean
      - script
    exclude_entities:
      {% for s in states.binary_sensor if s.object_id.endswith('_update_available') %}
      - {{ s.entity_id }}
      {% endfor %}

Thanks a lot for your help.
Stefano

No, place the code inside the template editor. Then copy the created text into your configuration.

Wooooowwww you are a Geniusssss!!! :slight_smile: thansk sorry for my really stupid question… :frowning:
Regards
Stefano :slight_smile: