Template: how to filter out based on 'solaredge' being in the entity_id

Is it possible to configure it to simply return true if there is a match?

I understand that then you can simply write a function, but maybe there is a ready-made filter?

no, there is no ready made filter

Many thanks for the help

this might work

{% set items = ['abc', 'bcd', 'cde'] %}
{{ items | select("search", 'b') | map('bool', True) | first | default(False)}}

you’d need to test things though.

please tell me is it possible to somehow get a list of sensors without using for? Something like this:
{% set items = states.binary_sensor %}
without using this method:
{% for items in states.binary_sensor...

to then find the desired sensor by name

states.binary_sensor | map(attribute='entity_id')

Please look, did I write correctly?
{{ states.binary_sensor | map(attribute='entity_id') | select("search", 'name_sensor') | map('bool', True) | first | default(False)}}