Closed karwosts closed 1 year ago
please get us the companion app logs as we print to the logs the decision making process and it will tell us what happened. You will need to make sure to reproduce the issue so the logs can capture it. Based on what you describe yes it should work that way where high accuracy mode only comes on when you are in the zone and connected to the device. However while you may physically be in that zone it does not mean the app received that update in that precise moment. The logs will show that.
Thanks, I'll gather something and get back to you.
Ok the app seems to claim that I am not in zone.test_expanded, though I can't figure how it thinks that. It has my accurate location right there in the log, and I am 129m from the center of zone.test, well within the 300m trigger range. I've been at the same spot for hours also.
So zones work with geofencing from Google and those updates are part of the Location Zone sensor. We strictly rely on Google to tell us when zone events happen and that does not occur from background updates. Its possible that the geofence event may have been skipped but you need to look at the logs when that happens. You can try to adjust accuracy in the Location Zone setting to see if that helps out. Your logs are also really short so you may want to keep the app open for the test so there is more data to go by.
Another thing you can do for troubleshooting is listen to the zone enter/exit events that we fire to see if you are actually getting those events. This may be easier than trying to rely on the logs. This will also show data for the expanded zones that the app creates.
https://companion.home-assistant.io/docs/integrations/app-events
Thanks for the tips. I'll close this for now, since based on debug it clearly seems not to be an issue with BT connection which I thought. Thank you for your assistance!
if it was me I would setup automations to listen to those 2 zone events and have it send you a notification or something so you can do a few drive by tests to see how well it works with that detection. The events should have all the data including if its an expanded zone as well as location data such as accuracy etc...
Home Assistant Android app version(s): 2023.1.1-full
Android version(s): 9
Device model(s): Moto X4
Home Assistant version: 2023.3.3
Last working Home Assistant release (if known):
Description of problem, include YAML if issue is related to notifications:
I set the following settings for high accuracy mode:
I am right now sitting outside
zone.test
, 150 meters away from the zone (outsidezone.test
, but insidezone.test_expanded
). I thought that if I connect my BT device, it should enable high accuracy mode, but it does not.Is the connection of a BT device enough to trigger entering high accuracy mode if the zone conditions are met, or can it only be triggered by the crossing of a zone boundary?
This would be helpful to me as I am trying to catch myself leaving my house passing through a zone right outside my home zone. So when I am at home, and I connect BT to my car, I would like this to engage high accuracy mode immediately, since my home is in the expanded zone of the test zone. But it doesn't seem possible currently.
I can add logs if requested, but just want to get confirmation if this behavior is by design or not.
Companion App Logs:
Screenshot or video of problem:
Additional information: