SmartThings Community

Limit garage opening to only once in a 10 minute time period?

I have my garage open auto open when I get close to the home using a proximity sensor on my phone. But some times I must open it using the app due to whatever. then I close it and get in the home. Then the garage reopens on its own thinking that I am now home. How do I set it up to only open once within a 10 min period so it does not reopen? if I do it manually thru the app or auto.

Thank you

Best bet would be webCoRE.

Yep. Predicate the garage door opening based upon the condition of a variable. When the door opens the first time, set the variable to something and a timer to reset it after 10 minutes.

1 Like

You might need to use a virtual device that includes the restriction instead of the actual garage door…

Create Virtual Garage Door in IDE

In webCoRE
Define Dynamic Variable “allow”

If actual garage door changes to open
Then with Virtual garage door
Open
With location
Set Variable “allow” = false

If actual garage door changes to close
Then with Virtual garage door
Close

If Actual garage door stays closed for 10 minutes
Then with location
Set Variable “allow” to true

If Virtual garage door changes to open
And
Variable “allow” is true
Then with actual garage door
Open

If Virtual garage door changes to open
And
Variable “allow” is false
Then with Location
Send notification “You have to wait” (you can get fancy here with an equation to say how long the wait will be)

If Variable “allow” changes to false
Then with location
Wait 10 minutes
Set Variable “allow” to true

The above should cover you if you are using the Virtual garage door to operate the actual garage door. You will still have the ability to use the actual garage door as normal without any time limits.

1 Like

Nice @rontalley, I had the short version… LOL.
You get the addaboy for the webCoRE piston overview.

1 Like