Need help with piston


#1

So when I used to use CoRE I made this piston and it worked great. With WebCoRE I’m having a terrible time figuring out how to get it to work. Basically if neither my wife or I are home, then it should execute Goodbye, but if one of us comes home it executes I’m back. However, if one of us is already home it still executes.

I’m sure im just missing a check box but cant get it to work. I tried changing it to execute on condition state change only but then it doesnt work at all. Please help!!

execute
if
Any of Nicholas’s iPhone’s or Rocio’s presence is present
then
Execute routine “I’m Back”;
else
Execute routine “Goodbye”;
end if;
end execut


#2

I think you want “presence changes to present”, use the trigger.


#3

But wont that trigger everytime one of us comes home since its an or statement?


#4

Change the “any of” to all:

And be sure to make a else if for the goodbye part.
Here is my presence routine:


#5

Thank you both for your help.

I added both suggestions, hopefully it will work now! Adding the condition for the house to be in away mode was a great idea also. Then if I am still home and my wife leaves it wont trigger on me.