#Location change not triggering zone change

1 messages · Page 1 of 1 (latest)

frozen void
#

Hey team, I'm trying make an automation that's triggered when I leave home, I have the companion app with location updates enabled in background and an external and internal url configured. I can even see the logcation updates in the Location history on the app, but my automation which is "When my iphone leaves the home zone", still does not trigger. Any advise on what else I could look into?

obsidian radish
#

I assume you are checking if “person.yourname” leaves home, right? Can you check if person.yourname is updated at some point?

frozen void
# obsidian radish

Sorry, discord didn't notify me.
I'm using device instead of person - would person be better to use?
I just did another quick test with the config in the below scsreenshots

obsidian radish
#

What you are doing should work, have you checked the automation traces? So we can see if it has been triggered or not.

On the app side looks there is nothing wrong since you can see the correct events.

#

You can also replace the automation trigger by “state”, it happened to me in the past that state was working better

frozen void
#

Ah! I had it trigger once just now
I think in the last test I did, I had another step in the way of triggering the automation
Is there a easier way to simulate location changes? Kind of a pain to go for a quick walk after each change haha

obsidian radish
#

Not really :/ Unless you use one of those python scripts to "set state" directly

frozen void
#

Just been testing this out a bit more and it doesn't appear to be reliable?
I've only got it to fire that one time from the other day
And today i've tested it several more times in a "real world" scenario - leaving home but without my phone open
And I can see there's log entries detecting that I'm home or not but the automation doesn't run

I also figured that I can set the state via developer-tools/state but still no notifications

#

Any advise on where to debug why these state changes aren't triggering the automation?

#

hmmmmm
Ok so when I update the gps coordinates via the developer looks I can get it to trigger
But when I set the state via the same method then it wont trigger
Does that mean that my gps coordinates aren't being sent via the phone updates?

#

Wait this is so confusing, here are some logbook entries from earlier today that clearly show the enter/leave home zone
But then looking at History, there's nothing?

obsidian radish
#

One is “Fabian’s phone” the other is “Fabian”, you are looking at 2 different entities right?

frozen void
#

You can see the little blip right near the end, that's when I was able to manually trigger it by setting the gps coordinates via the debug console

obsidian radish
#

Then I don’t know what’s happening, if you see the events in logbook it should trigger your automation. Please open an issue on GitHub for “core”