When start Automagic service or reboot the phone, it trigged "Location Trigger" every time.
Is there a way to avoid these behavior?
How to avoid Location trigged when start Automagic service?
Moderator: Martin
How to avoid Location trigged when start Automagic service?
Last edited by natong on 31 Aug 2015 17:11, edited 3 times in total.
Re: How to avoid Location trigged when start Automagic servi
I tried to check the restart behavior by use some expression.
And use "Shutdown Trigger" but it no time to run and can't store the value into the global var.
And use "Shutdown Trigger" but it no time to run and can't store the value into the global var.
Last edited by natong on 31 Aug 2015 17:12, edited 1 time in total.
Re: How to avoid Location trigged when start Automagic servi
Very sorry I post in a wrong forum. Please move these topic to the User Help/Bug Reports.
-
- Posts: 8
- Joined: 26 Aug 2015 09:03
Re: How to avoid Location trigged when start Automagic servi
Hi.
Just set some global boolean flag when Automagic is about to start (wait a few seconds and set the flag to opposite value) and use the Expression in your home flow to check whether the flag is true or not.
Just set some global boolean flag when Automagic is about to start (wait a few seconds and set the flag to opposite value) and use the Expression in your home flow to check whether the flag is true or not.
Re: How to avoid Location trigged when start Automagic servi
Good trick! Thanks!ferda-mravenec wrote:Just set some global boolean flag when Automagic is about to start (wait a few seconds and set the flag to opposite value) and use the Expression in your home flow to check whether the flag is true or not.
I just move to AM and just known the truth of geofence. These are my investigations about location trigger:
1. Location triggering repeatedly
Since geofence can be report 3m - 3km (up to google and surrounding). Sometime Google use only cell tower. Sometime use wifi scanning. Sometime lost of internet. Sometime get GPS fixed.
Solution 1: We should set radius as width as we can accept. The best value is equal to cell tower's radius (~500m-1km). That why Llama use only cell tower method and stable.
Solution 2: Add an addition condition. If home/work WiFi connected then disable the location trigger flow. Maybe it will save a little power too. The WiFi connection make sure that you never goes outside or inside.
2. Location trigged when reboot or start AM service
It look like AM doesn't ignore the null value, compare and trigged as enter/exit. Many times trigged as a wrong direction.
Solution 1: Nothing to do and wait admin to investigation.
Solution 2: Since AM trigged location very fast (before the other flow can store the global var), Add some small delay and use expression to check the restart behavior (as ferda-mravenec mention).