Multiple Inputs


(Daniel Seward) #1

Hey guys,

I was wondering if it is possible to have multiple preferences for one outcome. I am looking for my app to see my girlfriends presence sensor arrive and then wait until she opens the door before playing a message on my sonos. I’ve looked into timed responses but it’s not always accurate.

I’m new to coding so i may be missing something easy.

Thanks


(Jason "The Enabler" as deemed so by @Smart) #2

Have you take a look at rule machine?


(Joe) #3

Rule machine is by far the best app for smartThings.


#4

I use Rule Machine to create two rules, one turns on a virtual switch as well as unlock the doors, turn on lights, etc. when I arrive. The second rule is tripped by a motion sensor or contact but it first checks to see if the virtual switch is on before saying “Welcome home!”. It also turns off the virtual switch so that it’s ready for next time. There are probably better ways to do it but this works for me and I can set up rules for different people.


(Daniel Seward) #5

Just found the ‘and/or’ function. Cheers