Now I want to apply a filter to the list, so that the list only includes cover entities. I would to that with a string comparison and a select filter, but don’t know how or if I need to go another direction (loop?).
The result should be something like:
service: cover.open_cover
target:
entity_id: <my template with list of cover entities>
P.s.: I am aware that I can use the list unfiltered, but I’d like to do it in a clean way.
I had assumed it was a copy-paste error so that’s why I removed the states() function. However now I understand why you were using it. Is sensor.letzter_echo a Template Sensor or is it based on some other integration?
So you want us to recreate the 100+ page jinja documentation every new release of jinja because you can’t be bothered to look in the link that we point to from the HA templating documentation?