Hello
I’m trying to improve my bleuprint,
but for somehow repeat is not working on trigger
I use this input.
input:
switches:
name: switches
description: switches
selector:
entity:
domain:
- switch
- light
multiple: true
And then want to create a trigger like this
trigger_variables:
switches: !input switches
trigger:
- repeat:
for_each: "{{ switches }}"
sequence:
- platform: state
entity_id: "{{ repeat.item.entity }}"
to:
- "on"
- "off"
but for somehow it’s not working.
I think the syntax is different then for action but I cannot find what it is.
With kind regards
Bart