Nested Conditions/Rule Building

I’m brand new to SmartThings and having fun with simple automation so far. I’m lost as how to accomplish the following, I can accomplish my goal of lighting up the stairs with a motion detector but I’m trying to learn. Any help would be appreciated. Thanks in advance.

If the garage Schlage door lock changes to unlocked
And it’s after dusk but before dawn
And my iPhone has become present in the last 5 minutes
And the garage door sensor has changed to open in the last 5 minutes
Then turn on the lights over the stairs.


((my iPhone leaves || my girlfriend’s iPhone leaves) && the other iPhone isn’t present && the door from the house to the garage has changed from open to closed in the last 5 minutes && the garage door has changed from open to closed in the last 5 minutes) then lock the Schlage lock

Super simple, I’m sure. I have tools at work with rule builders that can do stuff like this for network security events. I can’t seem to find the proper tool within SmartTools, IFTTT or SmartRules, I’m sure I’m just missing something simple.

For rules of that complexity, your best bet is CORE, a community-created rules engine that is very powerful:


I will check it out. Thank you.

1 Like