Use "if location mode changed" in the last x seconds instead of "presence changed"


#1

1) Give a description of the problem
I’m obviously missing the obvious but I’m stumped. I have a bunch of pistons that react and send notifications or announce status when doors open or motion is detected. I would like to silence them if location mode has just changed as this means I just pulled into the driveway and I already know there is (or will be) motion in the driveway, the garage door was opened, there is motion in the garage, the garage door was closed, etc.

I see how to use if presence changed in the last x seconds to determine whether or not to generate notifications. The problem is that presence changed only works when I come home. When I leave, my presence hasn’t changed so I get all of the notifications when I go into the garage, open the garage door, etc. What I would like to do is manually change the location to Away before I leave the house and use if location mode changed in the last x seconds to determine if notifications should be generated or not.

Can anyone explain what I’m missing here?

2) What is the expected behavior?
Use a recent change is location mode to determine if notifications should be generated.

3) What is happening/not happening?
I can’t figure out how to query location mode and determine if it changed in the last few minutes.

**4) Post a Green Snapshot of the piston![image|45x37]

I started with garage door notifications but immediately realized this wouldn’t work when I leave as my presence won’t actually change until I’m gone.

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

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


#2

What is happening is that your presence did change in the last 90 seconds. You arrived home. Try ‘was not present’