If This... Then Wait...Then If


#1

I have a “security” system piston, it’s setup to watch contact sensors and alert me if they change and the system doesn’t disarm. The problem is, I can’t figure out how to get the piston to WAIT for 60 seconds, and check again to see if the system is disarmed, thus not alerting me.

More basically, I’m trying to do an “If this happens, wait, and if this didn’t change, alert”

Here’s a screenshot sample of what I’m generally after. Thanks in advance!


#2

Try this in the then part:

With Away mode status switch
Wait 60 sec
Send PUSH


#3

Thanks for the reply! I should have clarified, I want to wait 60 seconds and then see if the Away Mode Switch has not changed (that’s what I use to disarm), if it has changed - send the PUSH else do nothing.


#4

Try the “followed by” operator: move the first two conditions into a group (click if then click Convert to new group button), then add the stays on below that group in the if. Choose Followed by for the operator between the group and the stays on so that you end up with something like this:

if 
    (
        Any of Back Door's or Front Door's contact changes to open
        and
        Away Mode Status Switch's switch is on
    )
    followed by
    Away Mode Status Switch's switch stays on for 60 seconds
then

I think that should work the way you’re looking for.


#5

Thanks so much! This is exactly what I was looking for, didn’t realize “Followed by” could be used as an operator between groups.