# Did she arrive or did she leave?

Hey all,

As you can see, my wife came home yesterday about 2:50pm, left this morning at 5:33am (Life360 presence)

Now for the weird part, when she left this morning, my arrival rule ran and I can't figure out why

Pretty simple rule actually.

The garage door switch confirms it was turned on by another rule at 5:30 when she opened the house door to leave (which is correct) then the rule ran at 5:33am

(I just noticed the delay (cancel) is not being respected b/c it's not coded correctly, which I will fix.)

Thoughts on why this rule ran when she left?
Rick

Because you have your trigger as changed and because your IF..THEN will always be true if one of you are home, I would suggest this:

Trigger:
any arrive

Action:
On Garage door
Notify
Delay 5:00
Off Garage door

Thanks bjcowles

While I am not doubting you, I'm sure I'm over thinking it and in fact the edit was simple

In virtually every example, "changed" is the default answer for a trigger b/c the IF-THEN tells the story. And in my case, she left, my state didn't change.

As Bruce has said more than once, "words matter". In this case, my IF-THEN says If... "arrives" which is an activity that happened, me being home is not a new activity but a current state.

To my "non-developer" mind, this makes zero sense to me, I'm just trying to learn the logic, sorry for the dumb questions.

Thanks for your help
Rick

I am right there with you. 4.0 has been a challenge for me, and yes, the wording can be confusing in certain places. An If..Then is checking a condition at the exact moment . That is the present, which basically makes it a state. I've even resorted to writing rules down on paper in a language I can understand.

My interpretation of your rule:
" At the moment Tammy or Rick arrive or leave (trigger), if either Tammy or Rick are here(if..then), then open the door and notify. If either Tammy or Rick are not here(else), then delay and turn off."

My simple rule reads:
"When either Tammy or Rick arrive, open the garage, notify, and then close it five minutes later."

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.