Automation start delay

I want to start an action if a sensor value is below a threshold value during 30 sec. If the value returns above the threshold value before the 30 sec are expired, the action may not start.

any ideas?

trigger:
  platform: numeric_state
  entity_id: sensor.your_sensor
  below: 666 # your threshold here
  for: 
    seconds 30
action:
  ...
2 Likes

Thank You!

It worked. (I had to put a colon after ‘seconds’)

1 Like