New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High accuracy mode no longer disables when leaving zone #3445
Comments
Please make sure to get the companion app logs when the issue occurs so we can see what happened. |
Please also share the high accuracy mode settings you are using. We will need to get more data to troubleshoot and see where the issue is coming from. |
I have same issue on Samsung Galaxy S20FE. I will try to collect logs. |
I've got the same thing but with a bit more information: I've got my zone.home setup and setup the extended high accuracy zone around it, via the settings in the app. Normally, before the last update, the high accuracy mode would only be on in that extended zone. When I entered that zone, it would turn on and turn off when leaving. As of now, when I enter that extended zone, it does not turn on the high accuracy mode. But when I leave it does turn on the high accuracy mode and then does not turn off again. Only way to make it turn off again is go to the sensor settings in the app and make my extended zone a bit smaller/bigger and it turns the high accuracy mode off again. I'll try to grab the logs but since that log is only a few minutes old, most of the time when I'm done commuting the logs show nothing anymore. If my story generates more questions for me to answer, please feel free to ask me! |
So yesterday I removed and then added back
The phone had active Waze on the background thus location was precise, the display was on, at 13:11:34 I was 271m from When re-adding ham_zone, then the log looks like this:
|
So the way High Accuracy mode works when it comes to zone constraints is that we are only able to get zone entry/exit events from geofences reported by Google. If we never get a geofence report that a zone was entered or exited then even if a user is inside or outside a zone (according to HA) the app will not know this. When looking at your logs you need to pay attention to the geofence events that take place to see what the issue is. One thing you can do is listen for the zone entry/exit events and look at the event data to see which zone is or is not being reported by Google as this is the data that we go by. https://companion.home-assistant.io/docs/integrations/app-events From the sound of things it looks like we are not receiving the zone exit events from Google which will not be easy for us to fix as we are dependent on Google notifying the app about those events. If possible keep the app open while reproducing the issue so the logs can be complete with geofence data so we can see the full picture. |
With multi server support there was added reqestId to geofence registration. Cannot that cause this? |
I have the same symptoms but with a slightly different use case. Mine is related to bluetooth connections... I’ve enabled the High Accuracy mode ONLY when the phone is connected to bluetooth…And I’ve selected my car’s BT, a loud-speaker and headphones as the triggers for the high accuracy mode. So when the phone is connected to any of these, it will send (and does send) the high accuracy GPS location to HA. When the phone disconnects from BT, the high accuracy mode should automatically deactivate.
I’ve tried on the Beta and normal version of the HA app 2023.3.0-full on android 13. |
It looks an evaluation logic was somehow inverted, as when I leave the expanded zone, ham activates, and then deactivates when I enter the expanded zone. I have tried to add another zone and added it to trigger zones, now ham is always active as I'm always outside one of the expanded zones:
|
Same issue here, today I will try to check the log to investigate. |
I also have the same issue. I wanted to add that with previous version it was working quite well. But with this version (don't know exactly what versions) it's totally unreliable... |
Same issue here ... high accuracy mode not always activate in the expanded area and not always disable when i enter in zone. |
Same issue here with last update 2023.3.0. High Accurancy mode seems to start when leaving expanded zone not when entering it. I've tried to clean data and un/intall app but problem still here. Phone: huawei P30 with EMUI 12.0.0 |
I have similar issue. When high accuracy mode is enabled with a zone constraint it does not work. Location updates are received every 1-2-3 minutes only instead of 5 seconds. |
Hi 👋 I think I've found the issue but would appreciate it if someone here could confirm if the fix works as expected. You can download a test version of the app from here (login, click artifact.zip, unzip app-full-debug.apk), it'll install without modifying the original app if you give your device another name when logging in. Then, setup the location constraint for high accuracy mode and let me know if it works correctly again :) |
I can confirm it works.. Only tested when leaving home zone but it triggers correcrly high accuracy mode in conjunction with bluetooth specific connection... |
@jpelgrom Test version of the app appears to be working here. It didn't get stuck in high accuracy mode today. |
Test version works here. Get in high accouracy mode entering expanded home zone as setup in settings. |
Thank you!! When will the new version be released? |
The change hasn't been merged to the main code base yet and the app doesn't have a set release schedule, so it's hard to tell. It's been a while since a release so I'd expect relatively soon. When merging this issue will be closed. You can expect it to be included in the next weekly beta release after that (betas are pushed Sunday morning UTC). |
With the last two releases I've been having similar experiences. My high accuracy trigger range is 1 km If I leave Home zone, then high accuracy is turned on until I leave the trigger range. If I enter the trigger range high accuracy is not turned on, even tough the app has received several GPS location points INSIDE the trigger zone. When I enter my Home zone, it turns on, but by that time I'm at my house and in my driveway and my phone has connected to my WiFi. Something definitely is off and is not responding to entering the trigger zone when coming home. |
Home Assistant Android app version(s):Android 2023.3
Android version(s):13
Device model(s): Pixel 7
Home Assistant version:2023.3.6
Last working Home Assistant release (if known):2023.3.6
Description of problem, include YAML if issue is related to notifications: Location Sensors/Background Location/High accuracy mode only when entering zone no longer disables when outside of selected zone
Companion App Logs:
Screenshot or video of problem:
Additional information:This has been working fine in the previous versions of the companion app
The text was updated successfully, but these errors were encountered: