Issue with device tracking

I’m trying to use an old android phone as a vehicle tracker by leaving it plugged in and in my car. I was using a Nexus 5X and was having issues with the location not updating frequently or reliably. I assumed it was an issue with the phone being to old, so when I upgraded from my Pixel 4 to a Pixel 6 I put the Pixel 4 in my car and I’m having the same issue. I’m not sure what’s going on. I have no problems getting into HA from the car phone and the app is open, but it just doesn’t seem to refresh. The weird part is that when I was using the Pixel 4 as my main phone the device tracking was spot on.

Start with: Troubleshooting | Home Assistant Companion Docs

To understand how location updates work: Location | Home Assistant Companion Docs

If you want faster updates than what is mentioned then keep reading the second link about High Accuracy Mode.

I had consulted that document and verified those settings previously, they’re still all good. I also see that the default update interval is 1-3 minutes, but I’m seeing hours long delays in updates. To clarify I mean that the car has to be in a location for a couple hours before HA seems to notice, not that the location updates with a couple hour delay (ghosting).

the next step as part of the first link is to look at the logs, lets see if google is sending the app updates at all during that time.

Not seeing any LocBroadcastReceiver events in the companion app log.

what version of the app are you on?

2022.6.0-full on Android 12

I also noticed that the location seems to update for a little bit, but then stops, it’s almost list when I get outside a 1 mile radius of home location the app no longer sees a need to update.

I went for a short trip a few miles away and the location update stopped on the highway. I opened google maps on the phone and opened the companion app and both were working, so it’s not a data/device issue. But no further location updates.

we have some location fixes in the latest beta that is on github if you want to use that, would appreciate the feedback. We had reports of users encountering the same issue so we have added some methods to restart location services when we detect a gap.

Sure, more than happy to give that a shot. Installed the beta and will give that a go.

1 Like

thank you :slight_smile: you should see log lines informing you of the restart. But hopefully you won’t notice it as location tracking will just continue to work.

if you experience any issues with this beta build, please file an issue on github. We prioritize beta issues.

So here’s an interesting thing too. With the beta the app seems to update location a LOT faster, but the map is slow to update for the vehicle phone. If I click on attributes they both show the same GPS Lat, Lon, but the icon for the car is stuck a few miles from home.

if you see location updates being sent but the HA map is not updating then that points more to a HA frontend issue.

Yeah that’s what I’m thinking too.
I’ll run a few more test cases with driving the phone around and seeing if the location parity stays the same.

1 Like

make sure to inspect the logs when you suspect issues, you should definitely be seeing log lines from LocBroadcastReceiver

basically the fix keeps track of the time of each location update we receive, then when we do our normal sensor check we evaluate the time compared to when we expect updates and if too much time passes we restart things.

Ok, took a trip to the grocery store, was in there for an hour and no update until I unlocked the phone and opened went into the app again.

The logs show this:
--------- beginning of main
08-05 16:54:39.436 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
08-05 16:54:39.437 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
08-05 16:54:39.448 24377 24377 D ButtonWidget: Broadcast received:
08-05 16:54:39.448 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 16:54:39.448 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 16:54:39.471 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:39.472 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:39.473 24377 24436 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=52397000-08df-4e25-a63a-1574f1995d9c, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 16:54:39.474 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 16:54:39.474 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 16:54:39.474 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 16:54:39.482 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:39.493 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:39.881 24377 24408 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:39.910 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:42.359 24377 24377 D LocBroadcastReceiver: Received geofence update.
08-05 16:54:42.370 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:42.466 24377 24377 D LocBroadcastReceiver: Event sent to Home Assistant
08-05 16:54:42.469 24377 24377 D LocBroadcastReceiver: Last Location:
08-05 16:54:42.469 24377 24377 D LocBroadcastReceiver: Coords:(4X.XXXXXXX, -7X.XXXXXXX)
08-05 16:54:42.469 24377 24377 D LocBroadcastReceiver: Accuracy: 92.9
08-05 16:54:42.469 24377 24377 D LocBroadcastReceiver: Bearing: 0.0
08-05 16:54:42.470 24377 24377 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
08-05 16:54:42.470 24377 24377 D LocBroadcastReceiver: Received location that is 3175 milliseconds old, 1659732879295 compared to 1659732882470 with source fused
08-05 16:54:42.474 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:54:42.577 24377 24410 D LocBroadcastReceiver: Location update sent successfully
08-05 16:55:00.003 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 16:55:00.016 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:55:00.021 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:55:00.553 24377 24410 D SensorReceiver: Nothing to update
08-05 16:55:09.261 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_OFF
08-05 16:55:09.262 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_OFF is disabled, skipping sensors update
08-05 16:55:09.265 24377 24377 D ButtonWidget: Broadcast received:
08-05 16:55:09.265 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 16:55:09.265 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 16:55:09.270 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 16:55:09.270 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 16:55:09.270 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 16:55:09.305 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:55:09.307 24377 24436 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=817395ad-0cd6-480e-8679-316676f63404, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 16:58:12.453 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 16:58:12.491 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:12.511 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:13.657 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:17.534 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:17.536 24377 24405 D SensorWorker: Updating all Sensors.
08-05 16:58:17.545 24377 24437 I WM-Processor: Moving WorkSpec (456af50a-f38d-405f-83a5-7b98a25669cf) to the foreground
08-05 16:58:17.564 24377 24377 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
08-05 16:58:17.572 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:17.577 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 16:58:18.321 24377 24405 D SensorReceiver: Nothing to update
08-05 16:58:18.326 24377 24414 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=456af50a-f38d-405f-83a5-7b98a25669cf, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
08-05 16:58:18.335 24377 24377 I WM-SystemFgDispatcher: Stopping foreground service
08-05 17:00:00.008 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:00:00.026 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:00:00.031 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:00:01.285 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:01:50.540 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:01:50.548 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:01:50.555 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:01:51.082 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:03:16.821 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:03:16.833 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:03:16.839 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:03:17.557 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.895 24377 24377 D SensorReceiver: Received intent: android.intent.action.ACTION_POWER_DISCONNECTED
08-05 17:05:18.904 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.913 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.963 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:05:18.965 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:05:18.972 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.973 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.976 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:18.980 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.097 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
08-05 17:05:19.097 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
08-05 17:05:19.104 24377 24377 D ButtonWidget: Broadcast received:
08-05 17:05:19.104 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:05:19.104 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 17:05:19.118 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.132 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 17:05:19.132 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:05:19.132 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 17:05:19.138 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.158 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.217 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.221 24377 24402 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=7ba78f90-1b0a-494e-bfdf-8496adc3568a, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:05:19.682 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.758 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:19.762 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:21.586 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_OFF
08-05 17:05:21.587 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_OFF is disabled, skipping sensors update
08-05 17:05:21.591 24377 24377 D ButtonWidget: Broadcast received:
08-05 17:05:21.591 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 17:05:21.591 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 17:05:21.596 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 17:05:21.596 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 17:05:21.596 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 17:05:21.625 24377 31501 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:21.628 24377 24437 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=485fc37e-4b33-4dd0-ba59-20db93cec4a0, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:05:24.978 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:24.983 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:05:25.366 24377 30907 D SensorReceiver: Nothing to update
08-05 17:06:01.794 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:01.801 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.805 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.828 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.831 24377 24437 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=941cd647-12e2-43c1-add0-5de6bf008651, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:01.861 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:01.864 24377 31501 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.887 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:01.896 24377 31501 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.902 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.906 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.926 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:01.933 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.938 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: Work [ id=7e4e0db3-6a9b-4a7d-b4e6-6c9c187b9e0e, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ] was cancelled
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: java.util.concurrent.CancellationException: Task was cancelled.
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1184)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:514)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-05 17:06:01.968 24377 24414 I WM-WorkerWrapper: at java.lang.Thread.run(Thread.java:920)
08-05 17:06:01.985 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:01.987 24377 24436 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=ac22f486-d1df-4c08-9462-cf088ed258f5, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:02.034 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:02.043 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:02.049 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:02.078 24377 24377 D SensorReceiver: Received intent: android.net.wifi.STATE_CHANGE
08-05 17:06:02.095 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:02.100 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:02.155 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:02.157 24377 24437 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=0637130d-63ce-47ed-88c8-9595091428b8, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:03.030 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:06:03.033 24377 24404 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.036 24377 24404 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.208 24377 30907 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.243 24377 31502 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.301 24377 31501 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.310 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.325 24377 24407 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.338 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:03.447 24377 24409 D SensorReceiver: Nothing to update
08-05 17:06:10.932 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:06:10.939 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:10.944 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:11.053 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
08-05 17:06:11.073 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
08-05 17:06:11.079 24377 24377 D ButtonWidget: Broadcast received:
08-05 17:06:11.079 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:06:11.079 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 17:06:11.085 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:11.089 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 17:06:11.089 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:06:11.089 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 17:06:11.092 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:11.100 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:11.108 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:11.110 24377 24402 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=4571486c-775a-4bd8-a036-57abb7cf77aa, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:11.271 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:12.795 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_OFF
08-05 17:06:12.795 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_OFF is disabled, skipping sensors update
08-05 17:06:12.802 24377 24377 D ButtonWidget: Broadcast received:
08-05 17:06:12.802 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 17:06:12.802 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 17:06:12.808 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 17:06:12.808 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_OFF
08-05 17:06:12.808 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 17:06:12.851 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:12.853 24377 24414 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=3bb2c1d2-be5b-47aa-9a25-c79e2e693a76, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:12.951 24377 24377 D SensorReceiver: Received intent: android.intent.action.TIME_TICK
08-05 17:06:12.956 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:12.959 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:13.019 24377 24377 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
08-05 17:06:13.019 24377 24377 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
08-05 17:06:13.026 24377 24377 D ButtonWidget: Broadcast received:
08-05 17:06:13.026 24377 24377 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:06:13.026 24377 24377 D ButtonWidget: AppWidgetId: -1
08-05 17:06:13.037 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:13.039 24377 24377 D MediaPlayCtrlsWidget: Broadcast received:
08-05 17:06:13.039 24377 24377 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
08-05 17:06:13.039 24377 24377 D MediaPlayCtrlsWidget: AppWidgetId: -1
08-05 17:06:13.045 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:13.068 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:13.090 24377 24409 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:13.092 24377 24436 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=924924f5-fadf-484d-8b82-05ede0fa6526, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:13.220 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.007 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.007 24377 24377 D UrlRepository: Using external URL
08-05 17:06:21.008 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.024 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.031 24377 32007 I FA : Tag Manager is not found and thus will not be used
08-05 17:06:21.092 24377 24377 W mpanion.androi: Accessing hidden method Landroid/content/res/Resources$Theme;->getKey()Landroid/content/res/Resources$ThemeKey; (max-target-o, reflection, denied)
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: QUALCOMM build : 85da404, I46ff5fc46f
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Build Date : 11/30/20
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.31.04.01
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Local Branch : promo490_3_Google
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Remote Branch :
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Remote Branch :
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Reconstruct Branch :
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Build Config : S P 10.0.4 AArch64
08-05 17:06:21.145 24377 32000 I AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
08-05 17:06:21.146 24377 32000 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
08-05 17:06:21.158 24377 32000 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
08-05 17:06:21.161 24377 32000 W AdrenoUtils: <ReadGpuID_from_sysfs:197>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
08-05 17:06:21.161 24377 32000 W AdrenoUtils: ReadGpuID:221: Failed to read chip ID from gpu_model. Fallback to use the GSL path
08-05 17:06:21.170 24377 32000 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
08-05 17:06:21.409 24377 24377 E chromium: [ERROR:network_service_instance_impl.cc(179)] Failed to grant sandbox access to network context data for /data/user/0/io.homeassistant.companion.android/app_webview/Default with result 7: No such file or directory (2)
08-05 17:06:21.423 24377 24377 D CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10219; state: ENABLED
08-05 17:06:21.510 24377 24377 D RenderScript HIDL Adaptation: IRenderScriptDevice::getService()
08-05 17:06:21.512 24377 24377 D RenderScript HIDL Adaptation: IRenderScriptDevice::getService() returned 0x0
08-05 17:06:21.512 24377 24377 D RenderScript HIDL Adaptation: Using Fallback Path.
08-05 17:06:21.537 24377 24377 D mpanion.androi: Successfully queried cache dir: /data/user_de/0/io.homeassistant.companion.android/code_cache
08-05 17:06:21.537 24377 24377 D RenderScript: Setting cache dir: /data/user_de/0/io.homeassistant.companion.android/code_cache
08-05 17:06:21.549 24377 24377 I System.out: recordForce value 6
08-05 17:06:21.551 24377 24377 D WebviewActivity: Current webview package com.google.android.webview and version 95.0.4638.74
08-05 17:06:21.714 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.715 24377 24405 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.716 24377 24410 D SensorWorker: Updating all Sensors.
08-05 17:06:21.717 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.717 24377 24377 D UrlRepository: Using external URL
08-05 17:06:21.717 24377 24436 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=63676df4-2c54-4d27-b374-474be5ea80d2, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
08-05 17:06:21.815 24377 24436 I WM-Processor: Moving WorkSpec (9931b45c-e582-445b-b4c8-b57818f86a5e) to the foreground
08-05 17:06:21.825 24377 24377 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
08-05 17:06:21.839 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.843 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:21.942 24377 24385 I mpanion.androi: Background young concurrent copying GC freed 96371(5438KB) AllocSpace objects, 27(860KB) LOS objects, 66% free, 12MB/37MB, paused 218us,41us total 118.890ms
08-05 17:06:22.110 24377 24410 D SensorReceiver: Nothing to update
08-05 17:06:22.111 24377 24402 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=9931b45c-e582-445b-b4c8-b57818f86a5e, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
08-05 17:06:22.115 24377 24377 I WM-SystemFgDispatcher: Stopping foreground service
08-05 17:06:22.292 24377 32084 D WebviewActivity: External bus {“type”:“config/get”,“id”:1}
08-05 17:06:22.293 24377 24377 D WebviewActivity: externalBus({“id”:1,“type”:“result”,“success”:true,“result”:{“hasSettingsScreen”:true,“canWriteTag”:true,“hasExoPlayer”:true}});
08-05 17:06:22.312 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:22.312 24377 24377 D UrlRepository: Using external URL
08-05 17:06:22.338 24377 24377 D WebviewActivity: Callback null
08-05 17:06:22.339 24377 24377 E WebviewActivity: Cannot set status bar color 0. Skipping coloring…
08-05 17:06:22.339 24377 24377 E WebviewActivity: Cannot set navigation bar color 0. Skipping coloring…
08-05 17:06:22.629 24377 32084 D WebviewActivity: External bus {“type”:“connection-status”,“payload”:{“event”:“connected”},“id”:2}
08-05 17:06:22.632 24377 24377 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:22.707 24377 32084 D WebviewActivity: External bus {“type”:“theme-update”,“id”:3}
08-05 17:06:22.721 24377 24377 D WebviewActivity: Color from webview is “#03a9f4-SPACER- #fafafa
08-05 17:06:22.721 24377 24377 D WebviewActivity: Color from webview is “#03a9f4-SPACER- #fafafa
08-05 17:06:22.722 24377 31501 D WebViewPresenterImpl: Try getting color from webview color “#03a9f4”.
08-05 17:06:22.722 24377 31501 I WebViewPresenterImpl: Found color -16537100.
08-05 17:06:22.723 24377 24410 D WebViewPresenterImpl: Try getting color from webview color “#fafafa”.
08-05 17:06:22.723 24377 24410 I WebViewPresenterImpl: Found color -328966.
08-05 17:06:27.820 24377 32084 D WebviewActivity: External bus {“type”:“config_screen/show”,“id”:4}
08-05 17:06:27.874 24377 24377 D UrlRepository: Using external URL
08-05 17:06:27.874 24377 24377 D UrlRepository: Using external URL
08-05 17:06:27.875 24377 24377 D UrlRepository: Using external URL
08-05 17:06:27.875 24377 24377 D UrlRepository: Using external URL
08-05 17:06:28.060 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:28.062 24377 24410 D SensorWorker: Updating all Sensors.
08-05 17:06:28.065 24377 24437 I WM-Processor: Moving WorkSpec (b4161eff-ee86-4475-aa86-ba5564c2d9cf) to the foreground
08-05 17:06:28.073 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:28.074 24377 24410 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:28.076 24377 24377 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }
08-05 17:06:28.281 24377 31501 D UrlRepository: localUrl is: false and usesInternalSsid is: false
08-05 17:06:28.410 24377 24414 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=b4161eff-ee86-4475-aa86-ba5564c2d9cf, tags={ io.homeassistant.companion.android.sensors.SensorWorker } ]
08-05 17:06:28.413 24377 24377 I WM-SystemFgDispatcher: Stopping foreground service
08-05 17:06:36.726 24377 24377 E mpanion.androi: Invalid ID 0x00000000.
08-05 17:06:36.809 24377 24410 D LogcatReader: Read logcat for pid 24377
08-05 17:06:36.835 24377 24410 D LogcatReader: Done reading logcat for pid 24377
08-05 17:06:38.209 24377 24410 D LogcatReader: Read logcat for pid 24377

can you double check the app has proper permissions to work in the background? The locaiton update was a geofence update so not a background update which is where the issue is. I do see the sensor worker starting but it never restarted the servcies. Its tough to tell without seeing logs from 10 minutes before this as its possible you are just seeing skipped events due to accuracy so we need to confirm that. Unfortunately our logs dont go back too long as it depends on our PID. If you are able to install Logcat Reader and grant the special USB permissions that will allow you to see more historical logcat data so we can confirm what happened. As of now it looks like it did not think enough time to passed to restart the update.

Ok, I’ve installed Logcat.

This time I had to force close the app and relaunch to get it update it’s location.

what app version are you on now?

Edit: The code updates are in Beta 2578 which has yet to hit the play store, the APK is on github for now.

I’m also noticing long delays in the updating of a location on multiple phones.

Today I drove 15 minutes up the road to drop my daughter off at a friends house. When I got home HA still registered the phone 10 minutes down the road, so the last location update was sent on my way home. I was home for 10 minutes before my phone finally registered as home. During this time at home I had the HA app opened on my phone and was checking settings, but it still didn’t update. Finally it updated and registered the phone as home on it’s own.

Looking through the log on my phone I see the coordinates being updated roughly every 30 seconds but all of those updates are followed by this.

LocBroadcastReceiver: Skipping location update due to old timestamp xxxxxxxxxxxx compared to xxxxxxxxxxxxxx

This happened for a good 30 minutes until I finally found an entry were it sent an update to HA.

LocBroadcastReceiver: Location update sent successfully

I’ve checked my phone and Background Location, Location Zone, and Single Accurate Location are all enabled. I do not have High Accuracy enabled but I thought the app would send updates to HA every 1 to 3 minutes, but that isn’t happening.

To be honest, until a week ago I was running HA 2022.2 and didn’t notice any issues. A week ago I upgraded to 2022.7.7 and that is when I noticed problems. What tipped me off to the problem was location based automations for coming home weren’t happening when members of the family entered the home zone. None of the phones or settings on them has changed.

The phone is running app version 2022.6.

What else can I check to do so that tracking starts to work again?

Thanks for any help you can provide.