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

Car Position Not Updated #428

Open
veiter555 opened this issue May 16, 2024 · 15 comments
Open

Car Position Not Updated #428

veiter555 opened this issue May 16, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@veiter555
Copy link

veiter555 commented May 16, 2024

Car Position is not getting updated even the car is at home for several hours... After reloading the Service in Home assistant the car position will change to home. So the issue should be in the service by updating the car position dynamically

@babavers
Copy link

I have the same problem with an Audi Q4 etron. I discovered also that a reload of the service has an influence, but it's not what it seems. I have an automation running that stores the location of my car in a Google Sheet based on a trigger when the latitude changes state. Before doing the reload, the automation obviously stops saving new records because it doesn't get triggered, but after the reload it gets triggered 2 times per minute and thus writes 2 records every minute, alternatively one with the data of the non updated position and one with the accurate position. I think there are 2 instances of the service running after the reload. Thus, a reload doesn't help me, I have to restart HA to get a solved but then less than a day later the location 'freezes' again or in other words doesn't get updated anymore.

@rhoddan
Copy link

rhoddan commented May 17, 2024

Same here

@bartlde
Copy link

bartlde commented May 17, 2024

My car position is fluctuating between the old position (my yesterdays trip) and the current position at home. I have arrived at home yesterday evening. My original Audi APP displays the position correctly at home - with no fluctuation. The problem occurs since the last update. After full restart of HA it seems to be OK. Will check with the next trip.

Here a copy from detailed entity view (my GUI is set to German):
wurde zuhause erkannt
11:36:12 - Vor 4 Minuten
wurde als abwesend erkannt
11:29:54 - Vor 11 Minuten
wurde zuhause erkannt
11:21:06 - Vor 19 Minuten
wurde als abwesend erkannt
11:14:45 - Vor 26 Minuten
wurde zuhause erkannt
11:06:03 - Vor 34 Minuten
wurde als abwesend erkannt
10:59:49 - Vor 41 Minuten
wurde zuhause erkannt
10:51:19 - Vor 1 Stunde
wurde als abwesend erkannt
10:44:47 - Vor 1 Stunde
wurde zuhause erkannt
10:36:05 - Vor 1 Stunde
wurde als abwesend erkannt
10:29:44 - Vor 1 Stunde

@shuntfield
Copy link

image

Mine had been doing this since last night.
Its picked the last two locations I have been at, and doesn't update. I enabled debug logging, but not sure where the log is?

@moritzmaier84
Copy link

I have this since a few weeks.
Please see #331
Issue is NOT solved.

Hier is a debug file @Kolbi @coreywillwhat
home-assistant_audiconnect_2024-04-19T16-15-02.512Z.log

@coreywillwhat coreywillwhat changed the title Car Position is not getting updated even the car is at home for several hours... After reloading the Service in Home assistant the car position will change to home. So the issue should be in the service by updating the car position dynamically. Car Position Not Updated May 20, 2024
@coreywillwhat
Copy link
Contributor

Appreciate everyone's patience.
Thank you for the log @moritzmaier84 .
This looks like the issue in your log, I've seen this before in other logs.

2024-04-19 17:49:44.287 ERROR (MainThread) [homeassistant.components.device_tracker] Platform audiconnect does not generate unique IDs. ID Audi A4 Avant Position already exists - ignoring device_tracker.audi_a4_avant_position

Need to investigate further.

@Kolbi I believe Unique ID's as you had proposed a while ago would fix this issue.

@coreywillwhat coreywillwhat added the bug Something isn't working label May 20, 2024
@moritzmaier84
Copy link

Appreciate everyone's patience. Thank you for the log @moritzmaier84 . This looks like the issue in your log, I've seen this before in other logs.

2024-04-19 17:49:44.287 ERROR (MainThread) [homeassistant.components.device_tracker] Platform audiconnect does not generate unique IDs. ID Audi A4 Avant Position already exists - ignoring device_tracker.audi_a4_avant_position

Need to investigate further.

@Kolbi I believe Unique ID's as you had proposed a while ago would fix this issue.

Great news that it's going on and you have ideas for this! Thx!!!

@ghostwind66
Copy link

I had the same issue as well a few weeks ago. Downgrading to 1.7.0 resolved the issue for me

@veiter555
Copy link
Author

veiter555 commented May 24, 2024

Thank you Gohstwind66!

After downgrading to Release 1.7.0 it seams to work properly again.

For me the position is crucial due to a programm that reduces the discharge powerlimit of my house battery if a car is charging at home.

@moritzmaier84
Copy link

moritzmaier84 commented May 25, 2024

I had this before 1.7.0 and after it.

It's not every day. Sometimes yes, sometimes no.

@Kolbi
Copy link
Contributor

Kolbi commented May 28, 2024

Downgrading will also only be a temporary solution as I still believe we didn't changed something crucial since 1.7.0 - it is more installing the new (old) version that it loads the interface / service new. I still think restarting Home-Assistant should do the same thing but maybe in the core there are some caches not erased if not uninstalling / installing the extension.

@ghostwind66
Copy link

Downgrading will also only be a temporary solution as I still believe we didn't changed something crucial since 1.7.0 - it is more installing the new (old) version that it loads the interface / service new. I still think restarting Home-Assistant should do the same thing but maybe in the core there are some caches not erased if not uninstalling / installing the extension.

Interestingly enough, I noticed the position not updating on 1.7.0 yesterday as well. A restart fixed the issue. The issue seems to be pretty sporadic and random. This is the first time it has happened since I downgraded a few weeks ago. Strange.

@coreywillwhat
Copy link
Contributor

Downgrading will also only be a temporary solution as I still believe we didn't changed something crucial since 1.7.0 - it is more installing the new (old) version that it loads the interface / service new. I still think restarting Home-Assistant should do the same thing but maybe in the core there are some caches not erased if not uninstalling / installing the extension.

This. No major changes have occurred. I would expect a restart to fix it temporarily as well until we have the actual solution.

@moritzmaier84
Copy link

Downgrading will also only be a temporary solution as I still believe we didn't changed something crucial since 1.7.0 - it is more installing the new (old) version that it loads the interface / service new. I still think restarting Home-Assistant should do the same thing but maybe in the core there are some caches not erased if not uninstalling / installing the extension.

Interestingly enough, I noticed the position not updating on 1.7.0 yesterday as well. A restart fixed the issue. The issue seems to be pretty sporadic and random. This is the first time it has happened since I downgraded a few weeks ago. Strange.

I agree - it seems to be totally random. I really tried to find some "rules"... but no.

@ghostwind66
Copy link

ghostwind66 commented May 29, 2024

I created a script that I can call whenever the need arises (eg. I drive away) that re-enables the device using Spook:

image
Might be handy for those who don't want to reboot their device every time they want to update the position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants