Hi,
My phone seems to be sending loads of location updates and i am not sure why. I have the following config enabled in the mobile companion app:
- Background Location
** High Accuracy is OFF
** Min Accuracy = 300
** Location Send = Exact - Location Zone
** Min Accuracy = 300 - Other location related sensors are off
- Other enabled sensors are Bluetooth Connections, Battery state, Battery is charging, WiFi BSSID, WiFi Link Speed
I have a few zones that i use for a few automation to turn lights on and not turn off AC etc:
- home
- nearly home (240m radius around home)
- Dog walking area (850m radius around home)
I have Sensor update frequency set to 15 minutes (i did have 1 / 15 when not but it doesn’t seem to make a difference).
However as you can see HA seems to be sending location updates every minute or so:
The Android Device Location Privacy Dashboard confirms this:
The HA App logs also show regular location updates (GPS coordinates obfuscated):
--------- beginning of main
11-03 19:56:53.690 13391 13391 D SensorReceiver: Received intent: android.intent.action.SCREEN_ON
11-03 19:56:53.692 13391 13391 D SensorReceiver: Sensor is_interactive corresponding to received event android.intent.action.SCREEN_ON is disabled, skipping sensors update
11-03 19:56:53.695 13391 13391 D ButtonWidget: Broadcast received:
11-03 19:56:53.695 13391 13391 D ButtonWidget: Broadcast action: android.intent.action.SCREEN_ON
11-03 19:56:53.695 13391 13391 D ButtonWidget: AppWidgetId: -1
11-03 19:56:53.720 13391 13391 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-03 19:56:53.722 13391 13391 D MediaPlayCtrlsWidget: Broadcast received:
11-03 19:56:53.722 13391 13391 D MediaPlayCtrlsWidget: Broadcast action: android.intent.action.SCREEN_ON
11-03 19:56:53.722 13391 13391 D MediaPlayCtrlsWidget: AppWidgetId: -1
11-03 19:56:53.734 13391 13391 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-03 19:56:53.740 13391 13391 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-03 19:56:53.747 13391 13391 D LocBroadcastReceiver: Received location update.
11-03 19:56:53.760 13391 13391 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
11-03 19:56:53.761 13391 13448 D LocBroadcastReceiver: Last Location:
11-03 19:56:53.761 13391 13448 D LocBroadcastReceiver: Coords:(####, ####)
11-03 19:56:53.761 13391 13448 D LocBroadcastReceiver: Accuracy: 100.0
11-03 19:56:53.761 13391 13448 D LocBroadcastReceiver: Bearing: 0.0
11-03 19:56:53.772 13391 13448 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
11-03 19:56:53.772 13391 13448 D LocBroadcastReceiver: Received location that is 151 milliseconds old, 1699001813621 compared to 1699001813772 with source fused
11-03 19:56:53.773 13391 13448 D LocBroadcastReceiver: Duplicate location received, not sending to HA
11-03 19:56:53.779 13391 13391 D LocationTrackingViewMod: Returning PagingSource for history filter: ALL
11-03 19:56:53.862 13391 13449 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-03 19:56:53.864 13391 13451 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=1ee63258-4c1c-41ad-ae20-c2f060d0bcbd, tags={ io.homeassistant.companion.android.websocket.WebsocketManager } ]
11-03 19:58:24.634 13391 13391 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1699001522063, currentMillis: 1699001904634)
11-03 19:58:24.737 13391 13391 D LocBroadcastReceiver: Received location update.
11-03 19:58:24.739 13391 13391 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
11-03 19:58:24.739 13391 13449 D LocBroadcastReceiver: Last Location:
11-03 19:58:24.739 13391 13449 D LocBroadcastReceiver: Coords:(####, ####)
11-03 19:58:24.739 13391 13449 D LocBroadcastReceiver: Accuracy: 100.0
11-03 19:58:24.739 13391 13449 D LocBroadcastReceiver: Bearing: 0.0
11-03 19:58:24.740 13391 13449 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
11-03 19:58:24.740 13391 13449 D LocBroadcastReceiver: Received location that is 111 milliseconds old, 1699001904629 compared to 1699001904740 with source fused
11-03 19:58:24.744 13391 13449 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: true, usesWifi is: true
11-03 19:58:24.747 13391 13391 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1699001522063, currentMillis: 1699001904747)
11-03 19:58:24.747 13391 13391 D IntegrationRepository: setAppActive(): true
11-03 19:58:24.837 13391 19653 D TrafficStats: tagSocket(140) with statsTag=0xffffffff, statsUid=-1
11-03 19:58:24.860 13391 13449 D LocBroadcastReceiver: Location update sent successfully for 2 as exact
11-03 19:58:24.863 13391 13391 D LocationTrackingViewMod: Returning PagingSource for history filter: ALL
11-03 19:58:26.797 13391 13391 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api33Impl$$ExternalSyntheticLambda0@e41931
11-03 19:59:13.316 13391 13391 D LocationTrackingViewMod: Returning PagingSource for history filter: ALL
11-03 19:59:24.690 13391 13391 D LocBroadcastReceiver: Received location update.
11-03 19:59:24.695 13391 13391 D ForegrndServiceLauncher: Check if service HighAccuracyLocationService is running. Service running = false
11-03 19:59:24.697 13391 13449 D LocBroadcastReceiver: Last Location:
11-03 19:59:24.697 13391 13449 D LocBroadcastReceiver: Coords:(####, ####)
11-03 19:59:24.697 13391 13449 D LocBroadcastReceiver: Accuracy: 100.0
11-03 19:59:24.697 13391 13449 D LocBroadcastReceiver: Bearing: 0.0
11-03 19:59:24.698 13391 13449 D LocBroadcastReceiver: Begin evaluating if location update should be skipped
11-03 19:59:24.698 13391 13449 D LocBroadcastReceiver: Received location that is 67 milliseconds old, 1699001964631 compared to 1699001964698 with source fused
11-03 19:59:24.698 13391 13449 D LocBroadcastReceiver: Duplicate location received, not sending to HA
11-03 19:59:24.704 13391 13391 D LocationTrackingViewMod: Returning PagingSource for history filter: ALL
11-03 19:59:50.101 13391 13449 D LogcatReader: Read logcat for pid 1339
Is this an app defect or something that i have setup incorrectly? Does anyone know why HA might not be sticking to the 15 minute location update rule?
Any other data that would help work out if this is a config issue or defect?