Open dgtal1 opened 2 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (zone
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zone documentation zone source (message by IssueLinks)
Looks like (for better or worse?) the zone trigger uses the gps_accuracy in a way that I wouldn't have expected.
It takes your reported lat/long, draws a circle around with a radius of your gps_accuracy, and then if this circle intersects with the zone at all it considers that in the zone.
So that's why it's triggering, because you got a location report with a big value of gps_accuracy, and you're close enough to the zone that that amount of accuracy considers you possibly in the zone.
Not sure if that's intentional or not.
If nothing else you can minimize this by reducing your minimum accuracy in mobile app settings, 1600 seems pretty big to me.
The problem
I have one automation based on the zone trigger. When a person leaves the zone I should get a notification. The issue is that in most of the cases it's triggered incorrectly as the person didn't even enter the zone, so it couldn't leave it.
Trigger trace:
Map view - person did not enter the zone highlited on blue:
History for the person (device tracker)- never entered the zone, which triggered the automation:
It seems it's triggered when the person status changes to 'not home' when leaving another zone, but this status has nothing to do with the zone defined and highlighted on blue above and the automation trigger.
It never worked correctly. Sometimes it triggers rightfully, but in 80% of cases I have no idea why it's triggered by checking the person state history and the map.
What version of Home Assistant Core has the issue?
core-2024.8.1
What was the last working version of Home Assistant Core?
never
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Automation
Link to integration documentation on our website
https://www.home-assistant.io/docs/automation/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response