Need some advice on a piston


#1

1) Give a description of the problem
(PUT YOUR INFO HERE)
Using wife’s work phone, her personal phone and SmartThings presence sensor. (Both phones life 360) to sense presence. If one of devices is late Wife’s home routine runs again.

2) What is the expected behavior?
(PUT YOUR INFO HERE)
If any of the 3 presence sensors report home don’t run wife home routine.

3) What is happening/not happening?
(PUT YOUR INFO HERE)
Sometimes one of phone batteries are dead or one of phones WiFi is off or one phone didn’t get the update life 360 etc. etc. and it will report home 5-15 minutes later re open garage door and change thermostat setpoints.
4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)
THANKS IN ADVANCE.

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

You could use a boolean variable called wifehome.
IF
All of wife’s presence 1,2 and 3 are away.
THEN
Set variable wifehome equals false.
ELSE
IF
Any of wife’s presence 1,2 or 3 are present
THEN
Set variable wifehome equals true.
You can then use this as a condition in your piston.