Help with where to and how to make a "wait"


#1

1) Give a description of the problem
I don’t know how or where to put the “wait” to get my piston to trigger after 30 min delay

2) What is the expected behavior?
I want my light to blink 5 times and send me an sms to warn me is one of the kids left the garage door open

3) What is happening/not happening?
I am too dumb to know how to make it happen lol

**4) Post a Green Snapshot of the piston!
I don’t know why the green snapshot looks this way, I pressed the button to take a green snapshot and this is how it looks every time.


#2

Also, I have a smartthings multi sensor on the garage door that is not using the contact but tilt to know if it is open or closed so I don’t know if this will work how I have it. I am working on this at work and can not test it for a few hours.


#3

I think you’re looking for something like this:

When the switch changes to on (in my example - you’d replace this with the contact sensor is open), then the with statement will start. As long as the switch stays on (er, contact stays open) for 30 minutes, the light will be flashed and the text will be sent. But if the switch/contact turns off / closes before the 30 minute wait completes, then the entire with statement will be canceled and, hence, the light will not flash and the text will not be sent.


#4

Thank you so much! I that makes things so much clearer.