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?
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:
...
Thank You!
It worked. (I had to put a colon after ‘seconds’)