Hi,
I’d like to store a list of matching switches in variable/sensor which can be used in automations and scripts. I tried to set up a template sensor, but I get an error of exceeding 255 characters and the sensor state turns to ‘unavailable’.
What’s the correct way to store a list over 255 characters based on a template?
Example template:
{{ states.switch
| map(attribute='entity_id')
| select("search","switch.id")
| list }}