#Use trigger.entity_id as an entity_id in a state condition

1 messages · Page 1 of 1 (latest)

woeful zephyr
#

I like to use the entity_is that triggered my automation later on in my autotation to check for it's value. Like so:

repeat:
  while:
    - condition: state
      entity_id: "{{ trigger.entity_id }}"
      state: "on"
  sequence: []

However this seems not to be possible. How can I make this work?

karmic vale
#

that's a pretty weird sequence

#

what's your goal there?

#

seems like you just want a wait_template

woeful zephyr
#

The sequince is obviously larger, but not relevant to the question so I didn't include it. But I basically want to flash a light while a helper is on

karmic vale
#

then use a template condition