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

Location not changing anymore #2602

Open
domemshur opened this issue Feb 23, 2024 · 18 comments
Open

Location not changing anymore #2602

domemshur opened this issue Feb 23, 2024 · 18 comments
Assignees

Comments

@domemshur
Copy link

Recently my iPhone location stopped updating in the companion app. I checked the location trying to debug it and it is updating correctly, but it is not transfer that info to the integration/ app
IMG_5322
IMG_5323

@bgoncal
Copy link
Member

bgoncal commented Feb 25, 2024

Maybe a quick fix would be to delete and re-add you server to the companion app.
Meanwhile I'll investigate this

@bgoncal bgoncal self-assigned this Feb 25, 2024
@rs443
Copy link

rs443 commented Feb 27, 2024

Also experience that the household iPhone suddently stopped updating location a few days ago. The Androids still work. Did some very quick common troubleshooting but could not see any issues.

@KoMa1012
Copy link

KoMa1012 commented Mar 1, 2024

Debug output of the app, title: Didn't update: location update from the past
{
"start_ssid" : "Private LAN",
"error" : "locationUpdateTooOld",
"event" : "ZoneManagerEvent(locationChange([ +/- 32.00m (speed -1.00 mps / course -1.00) @ 01.03.24, 10:33:12 Mitteleuropäische Normalzeit]))"
}
Interestingly, it's (nearly) always sending this time, how to get rid of it (once) is to restart your phone. After that the time between when the action is triggered and the time stamp in the message starts to increase.

Time sent Timestamp in message Message
10:16:07 10:15:51 Updated location
10:21:14 10:20:52 Updated location
10:28:33 10:27:56 Didn’t update: Der Vorgang konnte nicht abgeschlossen werden. (Shared.BackgroundTaskError-Fehler 0.)
10:33:41 10:33:12 Updated location
10:34:08 none Didn’t update: Der Vorgang konnte nicht abgeschlossen werden. (Shared.BackgroundTaskError-Fehler 0.)
10:34:15 10:33:12 Didn’t update: location update from the past
... 10:33:12 Didn’t update: location update from the past
... 10:33:12 Didn’t update: location update from the past
... 10:33:12 Didn’t update: location update from the past
... 10:33:12 Didn’t update: location update from the past
etc

so, after some time it just stays at 10:33:12, but you can clearly see the time drift of the time in the message.

{EDIT] tried to somehow format it nicely, failed misserably, but I think you get it

@revan415
Copy link

revan415 commented Apr 5, 2024

I’ve got the same issue, and a few people on the forum do as well. Location as shown in the companion app is updating, but none of that data gets back to the server. I went so far as to delete zones, uninstall and reinstall the companion app, etc. nothing I’ve done so far has resolved the issue. The location update too old is also showing in my logs.

https://community.home-assistant.io/t/location-updating-zone-not-changing/710294

@revan415
Copy link

revan415 commented Apr 6, 2024

I removed the server then added it back. It did then update my location and zone. I am still seeing the same error in the logs though, so not sure how long the fix will last. It also isn’t a great fix since it requires new entities.

@KoMa1012
Copy link

KoMa1012 commented Apr 6, 2024

I removed the server then added it back. It did then update my location and zone. I am still seeing the same error in the logs though, so not sure how long the fix will last. It also isn’t a great fix since it requires new entities.

Check if it actually does update the location, I did exactly what you described, changed my location and it didn‘t update. Basically this fix lasted for a couple of minutes for me.

@revan415
Copy link

revan415 commented Apr 6, 2024

I removed the server then added it back. It did then update my location and zone. I am still seeing the same error in the logs though, so not sure how long the fix will last. It also isn’t a great fix since it requires new entities.

Check if it actually does update the location, I did exactly what you described, changed my location and it didn‘t update. Basically this fix lasted for a couple of minutes for me.

Mine updated automatically today when I left the house. But I’m still seeing errors in the logs. I am expecting it to start failing fully again at some point given the odd behavior, but the patch seems to be partially successful for now.

@ALaDoffe
Copy link

ALaDoffe commented Apr 9, 2024

Hi,

I have the same issue.
It seems to be related with #2691 and #2675.
Since installed beta version as proposed by @bgoncal everything work well again.

Still waiting for the last official release to update all my devices that present the issue.

@bgoncal
Copy link
Member

bgoncal commented Apr 12, 2024

Hi,

I have the same issue. It seems to be related with #2691 and #2675. Since installed beta version as proposed by @bgoncal everything work well again.

Still waiting for the last official release to update all my devices that present the issue.

It's in the AppStore now

@bgoncal
Copy link
Member

bgoncal commented Apr 12, 2024

I'm closing the issue, if you tested the latest 2024.4 and you cans till reproduce it, please feel free to reopen

@bgoncal bgoncal closed this as completed Apr 12, 2024
@KoMa1012
Copy link

Tested with App version 2024.4 (2024.624) and Core 2024.4.3.

still facing the same issue.

@revan415
Copy link

Same here. I removed the server and re-added it and have not had an issue since. But my wife's phone is up to date with the latest version and has not changed location since the update.

@revan415
Copy link

Issue hasn’t been reopened, but isn’t resolved. Just posting again to bump this.

@bgoncal bgoncal reopened this Apr 24, 2024
@tmarquespt
Copy link

I also have this issue with iOS devices. If I force the update on the app with 'update location' I see the update time on the person entity reset to 'now' but the location is not updated.
With a "Restart Home Assistant" the issue persists but with a "Reboot System" from the 'Restart Menu' it starts working again. After some time (can be days) the issue returns.
I noticed this behavior on a new instance created from scratch (without importing the backup) to replace my instance that was 6 years old. I have two other instances with a couple of years where the same phones are connected and have no location issues, so I would say the issue is not with the phone/app but something in this new HA instance.

@rverstappen
Copy link

rverstappen commented May 13, 2024

I have the same/similar issue as well but it is only a problem with one of my two HA servers (two homes). One server is receiving the location updates but not the other. This is true whether on my local network or away. The companion app location event log only shows the events being sent to the one server.

If it helps for troubleshooting here, I will leave everything as is for now. Please let me know if there's any information or tests I can provide.

[All latest app and server software. Two users, same problem with both phones - one is iOS and other is Android.]

@rverstappen
Copy link

rverstappen commented May 19, 2024

OK, so the problem still exists as originally reported above. I've reverted the report to near its original. That is to say that the problem is occurring on one of my two HA servers but not the other (two separate homes, same software versions).

@AlecRust
Copy link

@rverstappen do both your instances handle remote connection to Home Assistant in the same way?

@rverstappen
Copy link

rverstappen commented May 19, 2024 via email

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

9 participants