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

Device tracking does not work anymore #2583

Open
markusspa opened this issue Feb 16, 2024 · 8 comments
Open

Device tracking does not work anymore #2583

markusspa opened this issue Feb 16, 2024 · 8 comments
Assignees

Comments

@markusspa
Copy link

markusspa commented Feb 16, 2024

Model Name:
iPhone 14 Pro & iPhone 12 Pro

Software Version:
iOS 17.3.1

App version:
Home Assistant Companion App 2024.1 (2024.535)

Home Assistant Core Version:
2024.2.1

Description of the bug:
The location of my device is not updating anymore. That is why I am always home although I left the home zone. I checked all preferences in iOS settings as well as the settings of the HA App (Location, Background activities, ...). VPN works well. My girlfriend has exactly the same problem.

The activity protocol in the app shows a lot of errors. Perhaps it helps to solve the problem. The errors are always the same:

  • Webhook failed with status code 503
  • Didn't update [...] (Schared.BackgroundTaskError-Fehler 0.)

Expected behaviour:
When I am leaving the home zone, Home Assistant changes my status into "away".

@bgoncal
Copy link
Member

bgoncal commented Feb 16, 2024

Was this working at some point with the same VPN setup? When do you connect to the VPN?
As a possible quick fix can you reboot your iphone?

@bgoncal bgoncal self-assigned this Feb 16, 2024
@markusspa
Copy link
Author

Yes, it was. The VPN setup did not change and it works. When I am away, I have access to Home Assistant, dashboards and I am able to control everything. But the location is not updating. A restart of my phone was not successful. I know from others who have the same problem, too (Android and iOS).

@NielsAutomation
Copy link

Same problem here (also IOS). My setup is without a VPN.

@bgoncal
Copy link
Member

bgoncal commented Feb 19, 2024

Checkout location history and share what you see there please. Also you can enable notifications for when you enter and exite zones, if you do that, let me know how it goes.
https://github.com/home-assistant/iOS/assets/5808343/d78c2056-0b40-45bc-abb1-3be6914f26c3

@NielsAutomation
Copy link

NielsAutomation commented Feb 19, 2024

It looks like I solved it on one of the iPhones. After some digging, I saw an error in the companion app (Webhook failed with status code 503). After deleting the server from the app and reconnecting it it worked again.

For the people who don't know where you can find the logs from the companion app:

  • scroll down in the app and click on debugging;
  • click on event log.

@markusspa
Copy link
Author

Thanks @NielsAutomation! It seems to work for me, too.

@alexwhittemore
Copy link

alexwhittemore commented Feb 19, 2024

This happened to me after the latest update. Only if I delete my server and try to re-add it, I see this:

image

Edit: it turns out my problem was that something about my current setup is causing HA to come back up very slowly and haphazardly, and a couple of integrations weren’t properly loaded yet, including mobile devices which wasn’t clear to me at first.

A couple full system restarts later and there’s no specific issue with mobile devices.

@the-misterlas
Copy link

Also seeing an issue with multiple iOS device locations not updating.

iOS 17.3.1
HA 2024.2.2

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

5 participants