Hi All,
I am migrating my last rule over to hubitat from ST.
Here's what i'm trying to do
TRIGGER:
If motion sensor A turns to Active
ACTION:
if Motion sensor B did not change in last 5 minutes
Turn on button x
wait 10 seconds
turn off button x
END IF
The reason for last 5 mins is because motion sensor B could go inactive for a bit between movement. I don't want button x to turn on unless it's been 5 minutes of inactive for Motion sensor b.
hope this makes sense. I think my only option is to ensure i leave motion sensor B active for 5 minutes itself. (it's virtual so I can). but the only trigger is an endpoint from a camera.
right now i have the motion sensor x rule (sep the one above) setup as follows
trigger:
Local endpoint
action:
On: Motion sensor x
Off: Motion sensor x --> delayed: 0:00:30
END-IF
I'd have to have off cancel is the endpoint re triggers but not sure how to do that
thanks