In my script the wait isn’t working. I get the first text, but I do not get the second text. What’s going on?
Wait isn't working
Okay so here is what I’m seeing. If I leave the door open longer than the wait time, the 2nd SMS fires. If I close the door before the wait time is up, it doesn’t fire. Its like Webcore gets another message saying the door is closed and forgets about it’s duty to continue the original piston.
The condition state has changed (within the time frame of your “WAIT 10 seconds”), so by default the task is cancelled. You need to change the Task Cancellation Policy (TCP) of the “WITH Location” block (that’s enclosing your SEND, WAIT, and SEND SMS statements) to “Never cancel tasks”:
Also, if you want to get an SMS if the door has stayed open for 10 seconds, try the “stays” trigger instead of using a Wait.
Basement Door’s contact STAYS open for 10 seconds then send SMS…