Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99003

Help need with automation : defining dynamic entity_id for the state condition

$
0
0

@chemelli wrote:

Hi,

I would like my automation to wait 2 minutes for a state change before processing.
This is the extract of the relevant code:

  trigger:
    platform: event
    event_type: state_changed
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: {{ trigger.event.data.entity_id }}
        for:
          minutes: 2

I tried several syntax for the entity_id , but unfortunately none works.
Any suggestion ?

Thank you,

Simone

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99003

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>