Wes93
(Stefano)
May 25, 2020, 10:53am
1
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
petro
(Petro)
May 25, 2020, 11:16am
2
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 %}
Wes93
(Stefano)
May 26, 2020, 8:05am
3
Realy thanks a lot Petro for your reply.!!
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
petro
(Petro)
May 26, 2020, 9:43am
4
No, place the code inside the template editor. Then copy the created text into your configuration.
Wes93
(Stefano)
May 26, 2020, 10:06am
5