Android app location tracking

was that last update when you were at home or away? try checking the logs when you are away to see if there is a failure

the log ends while Iā€™m still at home so I canā€™t scroll to an hour when Iā€™m not home.

no the logs will show for a few minutes, they wont be historical. You can use an app like Logcat Reader to look at more historical data. Next time you are out for more than 10 minutes open the app and look at the logs to see if there is a failure.

try checking the actual device_tracker instead of person to rule out an issue there too

like this?

do you try with other phone?. this failures are strange.
I must try with other phone to discart problems with your phone

I only have this phone to test

No thatā€™s what the automation looks like I mean look at the actual entity updates to see if itā€™s changing.

Device tracker shows Away and Home.
Thatā€™s what I was hoping to see for person.gil

ok this device tracker looks to work properly, remove the other device tracker from the person entity

Settings > People > Select the person and remove the other device tracker from your person

okkkk that what I was after at the beginning. that was my original question :slight_smile:
I didnā€™t know how HA knows that a device tracker is associated with a person, and now this:

Settings > People > Select the person and remove the other device tracker from your person

Has revealed it to me :smiley:

Thanks!
Iā€™ll monitor it next time Iā€™m out and see if the automation turns off the BLE transmitter.

1 Like

anytime you login to a device its device tracker will get attached to that person. I can only help troubleshoot the device tracker from the mobile app integration so it was important to make sure its sending data as expected as thats usually the issue with mobile app location tracking.

1 Like

So Iā€™ve created these cards:
image

And now after I changed the device tracker for the person.gil then they should be in sync, right?

correct, the person integration derives its state from the attached device trackers. If you only have 1 attached to the person then yes itll be in sync. If you add another itll follow this process

@dshokouhi Just a quick question. Assuming you use location tracking for automation, what level of success do you achieve? 80% 90% 100%? Iā€™m wondering if I should always failures, or if I really dig into this, I can get to 100%. Right now, mine is probably 80%.

Iā€™m totally aware of the awesome docs you have on troubleshooting this. Iā€™m just wondering whatā€™s my best case scenario.

edit: Oh! Happy cake day to me!

1 Like

i try to check the logs here and there when I suspect issues like recently my wifes phone started reporting valid locations with a lot higher accuracy so I had to adjust the sensor setting for it to get more frequent updates. I had hers at 600 and noticed a few valid reports getting skipped at 1000, you can tell by the logs when that occurs.

I also dont rely solely on the device tracker to detect if im home, I find the wifi connection sensor to update faster in some cases so I use that too.

Apologies for chaining onto this threadā€¦

I have wifi in the car too (that doesnā€™t turn off immediately with the ignition). I assume that will exclude wifi detection for me? I donā€™t think wifi scanning runs very often, correct?

the wifi connection sensor updates as soon as it detects a state change

Mine stays connected to the car wifi until Iā€™ve gone into the house. I was referring the Android wifi scanning. I think thatā€™s still a thing anyway, right? Where it scans for other APs in the background.

yes but completely unrelated to the sensor I am referring to