How can I create a virtual switch and can I use timers with that virtual switch?

I would like to do something that should be fairly simple. If the garage door has been open for X minutes, alert me, set a timer, and repeat the check every time the timer goes off. The only way I can see that may work would be to create a virtual switch that I can programatically reset. Is there a better way? I can’t seem to find the simulated switch functionality any more.

Do you have a SmartThings/Aeotec hub, and if so, which one? The options are different if you do have a hub. :thinking: