Skip to content
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

Incorrect location reported #2729

Open
llamafilm opened this issue Apr 20, 2024 · 0 comments
Open

Incorrect location reported #2729

llamafilm opened this issue Apr 20, 2024 · 0 comments

Comments

@llamafilm
Copy link

iOS device model, version and app version
Model Name: iPhone 14 Pro
Software Version: iOS 17.4.1
App version: 2024.4 (2024.624)

Home Assistant Core Version
core-2024.3.3

Describe the bug
Sometimes HA shows the incorrect location for my iPhone

To Reproduce
I've been running this setup with no problems for over a year, and today this issue happened twice, it seems random.

Additional context
Here is a log snippet, during which my phone was sitting at home the whole time.
In this log snippet, the first line shows an incorrect location with very low accuracy (+/- 1414m). The second line shows the correct location with good accuracy (+/- 4.57m) just 10 milliseconds later. Then it shows some error, and sends the location to HA as not_home.

2024-04-20 13:38:41.720 [Info] [main] [ZoneManager.swift:87] log(state:) > didReceive(ZoneManagerEvent(locationChange([<+34.13619236,-116.04645543> +/- 1414.00m (speed -1.00 mps / course -1.00) @ 4/20/24, 13:38:41 Pacific Daylight Time])))
2024-04-20 13:38:41.730 [Verbose] [main] [CLLocationManager+OneShotLocation.swift:256] locationManager(_:didUpdateLocations:) > got raw locations [<+34.12659657,-116.03412911> +/- 4.57m (speed 0.00 mps / course -1.00) @ 4/20/24, 13:30:09 Pacific Daylight Time] and turned into potential: [coordinate CLLocationCoordinate2D(latitude: 34.126596566948905, longitude: -116.03412911411651) accuracy 4.566057209040164 from 2024-04-20 20:30:09 +0000 quality meh]
2024-04-20 13:38:41.748 [Error] [main] [CLLocationManager+OneShotLocation.swift:273] locationManager(_:didFailWithError:) > Received CLError: related decl 'e' for CLError(_nsError: Error Domain=kCLErrorDomain Code=0 "(null)")
2024-04-20 13:38:41.748 [Info] [main] [CLLocationManager+OneShotLocation.swift:239] checkPotentialLocations(outOfTime:) > Out of time with a meh location
2024-04-20 13:38:41.767 [Info] [main] [HAAPI.swift:528] SubmitLocation(updateType:location:zone:) > Location update payload: ["battery": 50, "location_name": "not_home"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant