Is there a delay function in routines?

I have a fairly complex system with a V2 Hub and 85 devices. I am trying to replicate a routine/automation that I had running in Webcore and want to add a delay or timer to a contact closure like this:
“When door contact transitions from open to closed wait 5 seconds and turn off the light”

Is there a way of doing this using the SmartThings App?

In the action to turn off the light there’s a “Delay this action” option at the very end.

Edit: But it’s better Peter’s answer a couple comments below

Alternatively, you can also put a hold time onto the condition, like “if sensor stays closed for five seconds”.

3 Likes

This is actually the best solution.

Delays can have collateral damages… for instance, you close the door, the countdown starts, you realize you forgot something, open it, turn on the light and then, surprise, you are in the dark because the light turns off due to the past countdown. With “closed for 5 seconds” that won’t happen.

2 Likes

Got it! Thanks everyone. This works now!

Paul

2 Likes