iOS
iOS copied to clipboard
Incorrect location reported
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"]