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

GPS jumps to „home“ every few minutes - car is not moving #331

Closed
moritzmaier84 opened this issue Apr 4, 2024 · 24 comments
Closed

GPS jumps to „home“ every few minutes - car is not moving #331

moritzmaier84 opened this issue Apr 4, 2024 · 24 comments
Labels
more info needed Further information is requested

Comments

@moritzmaier84
Copy link

Well, the picture says it all.
I‘m in my „Basketball“ zone, car is parked, not moving for hours.
GPS location jumps to „home“ again and again while everything is right in the audi app (never jumps around there).

What the heck? Can anybody imagine a reason? I use this sensor alot, would be great.
IMG_1889

@coreywillwhat
Copy link
Contributor

can you provide debug logs?

@coreywillwhat coreywillwhat added the more info needed Further information is requested label Apr 4, 2024
@moritzmaier84
Copy link
Author

moritzmaier84 commented Apr 4, 2024

can you provide debug logs?

I got only this. Or is there another way to get more data? How?
But I think this IS the problem, right?

And I think it started with the latest update - not 100% sure but I did an update and it's a new problem.

Logger: homeassistant.components.device_tracker
Quelle: helpers/entity_platform.py:735
Integration: Geräte-Tracker (Dokumentation, Probleme)
Erstmals aufgetreten: 19:39:51 (3 Vorkommnisse)
Zuletzt protokolliert: 22:51:41

Platform audiconnect does not generate unique IDs. ID Audi A4 Avant Position already exists - ignoring device_tracker.audi_a4_avant_position

@coreywillwhat
Copy link
Contributor

@Kolbi my device tracker has been solid since switching to your new device IDs. Could your PR be a fix for the tracker issues given the reference to unique IDs?

@Kolbi
Copy link
Contributor

Kolbi commented Apr 5, 2024

@coreywillwhat might be, my device tracker is also working properly.

Edit: We are still using the same unique_id even in my PR for example:

"unique_id":"Audi [...] Position"
But interesting why it tries to create it a second time....

Maybe my PR should also fix the unique_ids.... need to think about it.

@coreywillwhat
Copy link
Contributor

@moritzmaier84 it shouldn't be a recent update, nothing has changed for trackers recently, although the Audi servers have been acting strange the last few days for Audi connect even when the Audi app itself seems relatively stable. From my recent review, the endpoints appear to be slightly different.

Can you enable debug logging from the integration screen for Audi connect, let it run to get a few switches to different locations then turn off debug logging. You'll be prompted to download a file, which you can attach here for us to take a look if youd like us to.

Also, what is your polling interval set to? It looks like 5 minutes by the updates in your pic.

@coreywillwhat
Copy link
Contributor

@coreywillwhat might be, my device tracker is also working properly.

Edit: We are still using the same unique_id even in my PR for example:

"unique_id":"Audi [...] Position"
But interesting why it tries to create it a second time....

Maybe my PR should also fix the unique_ids.... need to think about it.

I thought I saw we use model name somewhere as an ID in current state, which seems to be what's coming through in the logs provided. It's late here, can't look at the code. I might be misremembering.

@moritzmaier84
Copy link
Author

moritzmaier84 commented Apr 5, 2024

@moritzmaier84 it shouldn't be a recent update, nothing has changed for trackers recently, although the Audi servers have been acting strange the last few days for Audi connect even when the Audi app itself seems relatively stable. From my recent review, the endpoints appear to be slightly different.

Can you enable debug logging from the integration screen for Audi connect, let it run to get a few switches to different locations then turn off debug logging. You'll be prompted to download a file, which you can attach here for us to take a look if youd like us to.

Also, what is your polling interval set to? It looks like 5 minutes by the updates in your pic.

Okay I'll try to do that.
Today I am at home, though and the sensors keeps quite, now. I'll have to check if it starts again if I move the car the next time.

My polling interval is 15mins, though. So that cannot be the reason.

@coreywillwhat
Copy link
Contributor

Okay I'll try to do that. Today I am at home, though and the sensors keeps quite, now. I'll have to check if it starts again if I move the car the next time.

My polling interval is 15mins, though. So that cannot be the reason.

Thanks for checking, wanted to get the full picture for scan interval.

@moritzmaier84
Copy link
Author

@moritzmaier84 it shouldn't be a recent update, nothing has changed for trackers recently, although the Audi servers have been acting strange the last few days for Audi connect even when the Audi app itself seems relatively stable. From my recent review, the endpoints appear to be slightly different.
Can you enable debug logging from the integration screen for Audi connect, let it run to get a few switches to different locations then turn off debug logging. You'll be prompted to download a file, which you can attach here for us to take a look if youd like us to.
Also, what is your polling interval set to? It looks like 5 minutes by the updates in your pic.

Okay I'll try to do that. Today I am at home, though and the sensor keeps quite, now. I'll have to check if it starts again if I move the car the next time.

My polling interval is 15mins, though. So that cannot be the reason.

@coreywillwhat
Copy link
Contributor

Okay I'll try to do that. Today I am at home, though and the sensor keeps quite, now. I'll have to check if it starts again if I move the car the next time.

sounds good

@shuntfield
Copy link

I was getting this but it kept bouncing back and forth to a specific zone.
Now, on the latest version its not working at all, which happened a few days ago too, how I resolved both was loading an older version and then loading the latest version again.
I have changed a few of the device classes which will mess mine up again until I change them back.

@Kolbi
Copy link
Contributor

Kolbi commented Apr 9, 2024

Had the same issue 1-2 days ago but couldn't figure out until yet why. Reloading integration / restarting Home-Assistant helped to get it working again...

Platform audiconnect does not generate unique IDs. ID Audi A4 Avant Position already exists - ignoring device_tracker.audi_a4_avant_position

@Kolbi
Copy link
Contributor

Kolbi commented Apr 11, 2024

#354 more debugging options will come

@Kolbi
Copy link
Contributor

Kolbi commented Apr 11, 2024

Please try version >= 1.4.0 and enable debug mode if you encounter the issue and provide us the specific lines from the logfile.

@moritzmaier84
Copy link
Author

Please try version >= 1.4.0 and enable debug mode if you encounter the issue and provide us the specific lines from the logfile.

I did not have it since a couple of days so I couldn't do it.
I mean... if it stays like this, it's kinda solved.

If it comes back again, I'll do the debug stuff.

@coreywillwhat
Copy link
Contributor

Many of the GPS issues have been resolved with #381 #374 . Closing this issue since the original reporter mentioned this is no longer an issue. Please open an issue if you experience this or any other problems.

@moritzmaier84
Copy link
Author

Many of the GPS issues have been resolved with #381 #374 . Closing this issue since the original reporter mentioned this is no longer an issue. Please open an issue if you experience this or any other problems.

So ironic.. Today it came back and it is still going on.
I think it has something to do with zones because it's jumps to zones everytime and only zones I was in today.
It's more often than the 15 minutes again.

Hier ist my debug log:

home-assistant_audiconnect_2024-04-17T20-56-03.039Z.log

@Kolbi
Copy link
Contributor

Kolbi commented Apr 18, 2024

Interesting:

2024-04-17 22:55:04.110 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Starting update_vehicle_position for VIN: *************9780
2024-04-17 22:55:04.110 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Position support is disabled for VIN: *************9780. Exiting update process.

It seems you are using <v1.6.1 can you please upgrade to latest version as you have some 403 issues...

@moritzmaier84
Copy link
Author

Interesting:

2024-04-17 22:55:04.110 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Starting update_vehicle_position for VIN: *************9780
2024-04-17 22:55:04.110 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Position support is disabled for VIN: *************9780. Exiting update process.

It seems you are using <v1.6.1 can you please upgrade to latest version as you have some 403 issues...

I had 1.6.0 and no 1.6.3
Strange, no update sign showed up before.
Okay... So now I will check again if it still happens?

@Kolbi
Copy link
Contributor

Kolbi commented Apr 18, 2024

Yes please. Although we had no changes in the position update since v.1.6.0 but we disable services with an 403 issue and maybe Audi servers are sensitive if we are trying to call multiple times a service which returns a 403 issue back....

HACS doesn't show immediately updates and currently we are creating a lot of new versions... will be better when we have a stable version running.

@moritzmaier84
Copy link
Author

Yes please. Although we had no changes in the position update since v.1.6.0 but we disable services with an 403 issue and maybe Audi servers are sensitive if we are trying to call multiple times a service which returns a 403 issue back....

HACS doesn't show immediately updates and currently we are creating a lot of new versions... will be better when we have a stable version running.

Thx, I'll let you know if it comes back again.

@moritzmaier84
Copy link
Author

It's still happening. Debuging right now. But we need to reopen the issue again...
File is coming up soon.

@moritzmaier84
Copy link
Author

@Kolbi @coreywillwhat

1.6.3

Here is the debug file of a short period. It is still going like this every few minutes, jumping from "home" to the zone I was before and back and again.
So annoying :(

home-assistant_audiconnect_2024-04-19T16-15-02.512Z.log

@moritzmaier84
Copy link
Author

Still sometimes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants