So here is what I want to happen…
I may have to put this in 2 pistons?
When our presence sensors (using ady624’s presence sensor app), leave the, “house”, check to see if the contact sensor on the garage is open. If it is, turn on the momentary switch (switch 1). I wait 15 seconds, then send a message to the user that the garage is closed (closed is really reading the contact sensor again so that if it reads, “open,” I know the garage is really still open).
I had this all working except when we both leave… What happens in reality, is that my presence sensor (9 times out of 10), will trigger the piston. This is causing 2 issues:
-
Only I get a message that the garage is closed. If we are not in the same car, it would be nice if we both got messages on our phones.
-
The location status is not updating correctly. Since it picks my current place change first, it typically says she is home, when in reality, she left at the same time which should result in, “both away”.
Attached is another version I had tried. I have have tried case statements around who is actually home etc.
Where I don’t know if I need a separate piston is on arrival, I want to check the status of the entryway light and turn it on if my outside lux sensor is below a value say 1500 lux. I would also like to send a message to the user(s) that arrive to tell them the temp in the house (variable upstairs).
Obviously the same logic on arrival would apply to the location statuses as well.
Both Away
GF home
Me home
Both home
Old piston: