audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
245 stars 100 forks source link

Getting information from Audi fails, just 2 entities created #50

Closed mbuzina closed 3 years ago

mbuzina commented 4 years ago

I connected to myAudi account, but it only generated 2 entities (Car model and lock). Locking/unlocking fails, refreshing the data fails as well. Log entries:

2020-10-27 09:15:43 ERROR (MainThread) [custom_components.audiconnect.util] Unable to refresh vehicle data of <vinsnipped>: 403, message='Forbidden', url=URL('https://msg.volkswagen.de/fs-car/bs/vsr/v1/Audi/DE/vehicles/<vinsnipped>/requests')
2020-10-27 09:15:43 ERROR (MainThread) [custom_components.audiconnect.audi_account] Error refreshing vehicle data <vinsnipped> NoneType: None
pergolafabio commented 4 years ago

i see the same behavour since the update this week with new auth token in my case also 2 entities created i tried adding intergration with/without region code 'DE' , no difference

additionally, when i do a resfresh service, i see this error below, not sure if its related

2020-10-27 18:48:26 ERROR (MainThread) [custom_components.audiconnect.util] Unable to refresh vehicle data of wauxxxx: 403, message='Forbidden', url=URL('https://msg.volkswagen.de/fs-car/bs/vsr/v1/Audi/DE/vehicles/WAUxxxx/requests')
2020-10-27 18:48:26 ERROR (MainThread) [custom_components.audiconnect.audi_account] Error refreshing vehicle data wauxxx
NoneType: None
atozfugh commented 4 years ago

I have exactly the same issues. Is there already a fix for this? Would be awesome if i could track my vehicle

pergolafabio commented 4 years ago

No, not yet :-(

dmelliott20 commented 4 years ago

same issue here.....

Je-sse commented 3 years ago

Same here

wictorwilen commented 3 years ago

Yup, only two entities here as well :-(

pergolafabio commented 3 years ago

i confirm, i bought a subscrition for 1 month , the audi remote and connect for 4,99 now, i have indeed more entities; so its a license issue that only 2 entitys were created

Je-sse commented 3 years ago

I think its called "Audi Connect" in my country. But if I look at the functionalities it looks like it is already activated for my account? Were you able to check the information (like location of your car, fuel, door locks) in the myAudi app before?

dmelliott20 commented 3 years ago

its all activated on my account too.


From: Je-sse notifications@github.com Sent: 16 December 2020 13:16 To: arjenvrh/audi_connect_ha audi_connect_ha@noreply.github.com Cc: David Elliott David@dmeconsultants.co.uk; Comment comment@noreply.github.com Subject: Re: [arjenvrh/audi_connect_ha] Getting information from Audi fails, just 2 entities created (#50)

I think its called "Audi Connect" in my country. But if I look at the functionalities it looks like it is already activated for my account? Were you able to check the information (like location of your car, fuel, door locks) in the myAudi app before?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/arjenvrh/audi_connect_ha/issues/50#issuecomment-746270978, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADELRFM6LZXSWSET4WM2XWTSVCXLZANCNFSM4TBJUAIA.

atozfugh commented 3 years ago

Same for me. In the application i can see my fuel level, door lock, location etc. So basically everything.

pergolafabio commented 3 years ago

yes, i have my audi for 4 years now, i was able to use it for 3 years, now the license was expired allthough it was a free service at first, i think somekind of package of my warranty the warranty expired, so did my audi connect

i didnt see any fuel , and vehicle status anymore in app, so now i just did a test and renewed for 1 month, the basic edition, for 5€ / month and now everything is back, and also on the android app too

Je-sse commented 3 years ago

Ok, you didn't had to change anything in HA? It just showed up?

pergolafabio commented 3 years ago

indeed, just showed up on a restart

dmelliott20 commented 3 years ago

I can see everything in the Audi app but just the two enties in HA. ive rebooted too.

the car is only 2 months old


From: pergolafabio notifications@github.com Sent: 16 December 2020 13:26 To: arjenvrh/audi_connect_ha audi_connect_ha@noreply.github.com Cc: David Elliott David@dmeconsultants.co.uk; Comment comment@noreply.github.com Subject: Re: [arjenvrh/audi_connect_ha] Getting information from Audi fails, just 2 entities created (#50)

indeed, just showed up on a restart

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/arjenvrh/audi_connect_ha/issues/50#issuecomment-746283872, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADELRFKLH34ZT7KLJM3PFZLSVCYRTANCNFSM4TBJUAIA.

pergolafabio commented 3 years ago

strange, maybe you have put the wrong country ? mine worked before, but stopped working

dmelliott20 commented 3 years ago

Ive tried leaving the country blank and DE. it was working before on a previous audi. but no luck with this one.

Je-sse commented 3 years ago

Same here. Just deleted and added again with "DE" but nothing changed. Just "model" and "door lock"...

Do you guys use a S-PIN, maybe that can make a difference? (I don't)

dmelliott20 commented 3 years ago

@Je-sse out of interest, what car have you got?

Je-sse commented 3 years ago

A3 Sportback (just couple of weeks old)

dmelliott20 commented 3 years ago

ah! ive have an etron sportback - three weeks old. could be a theme

my previous etron worked flawlessly.


From: Je-sse notifications@github.com Sent: 16 December 2020 13:50 To: arjenvrh/audi_connect_ha audi_connect_ha@noreply.github.com Cc: David Elliott David@dmeconsultants.co.uk; Comment comment@noreply.github.com Subject: Re: [arjenvrh/audi_connect_ha] Getting information from Audi fails, just 2 entities created (#50)

A3 Sportback (just couple of weeks old)

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/arjenvrh/audi_connect_ha/issues/50#issuecomment-746313957, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADELRFJSD4CAXMV7QOPFZHTSVC3K3ANCNFSM4TBJUAIA.

atozfugh commented 3 years ago

I got an A4 Avant. The 2021 Model - Maybe these cars are "to new" to work with this plugin. If it helps someone i can share my audi login for troubleshooting :)

pergolafabio commented 3 years ago

Don't think it's car dependent, cause it used the android app api info... For me it was just a license issue

pergolafabio commented 3 years ago

I can test with your account if you want

pergolafabio commented 3 years ago

Drop me a private on HA community forul

dmelliott20 commented 3 years ago

Don't think it's car dependent, cause it used the android app api info... For me it was just a license issue

I can access the app fine though, its just HA that fails

atozfugh commented 3 years ago

I will try it again today on another hass.io installation if it works. If not i'll contact you in the HA forum

Edit: So i tried it with the other installation of hass.io but i got the same issue. Only 2 Entities created. Edit 2: I can't message you on HA Community...

Risfinne commented 3 years ago

I experienced the same behavior with only 2 entities being created (Car model and Lock) until I changed the Region setting from "Sweden" to "SE". After that it started working like a charm.

Je-sse commented 3 years ago

That also doesn't work for me. The documentation shows: Set to 'DE' for Europe (or leave unset), to 'US' for North America, or to 'CN' for China.

Bought my car in the Netherlands, so it should be empty or DE. Both are not working (NL also not)

rklueber commented 3 years ago

Only two sensor (lock and type). Tried with “DE” and empty. Same issue.

rholroyd commented 3 years ago

Also have the same problem with my Q5 in UK

pergolafabio commented 3 years ago

In my case it was just a license issue, for test i extended my connect services for a month and all entities we're back... The month is passed , now back with 2 entities

atozfugh commented 3 years ago

Well thats nice to know. How much did you pay for the expansion? Still this doesn't make sense to me, because the App is showing every detail about my car. Maybe there is some API included in the subscription...

pergolafabio commented 3 years ago

O believe it was 5€ a month,

arandax commented 3 years ago

In my case it was just a license issue, for test i extended my connect services for a month and all entities we're back... The month is passed , now back with 2 entities

How is your configuration set? I have a valid license, but I can't get this working.

pergolafabio commented 3 years ago

Just email/password... Didn't fill in a region

Risfinne commented 3 years ago

Now I am back to the same issue with my new Audi A6 that I bought a week ago.

My A4 Allroad is working fine, but my new A6 2021 only shows two entities even though everything works fine in the Audi app.

dmelliott20 commented 3 years ago

Same - the integration doesn’t appear to work with some new cars

Sent from my iPhone

On 7 Feb 2021, at 13:31, Risfinne notifications@github.com wrote:



Now I am back to the same issue with my new Audi A6 that I bought a week ago.

My A4 Allroad is working fine, but my new A6 2021 only shows two entities even though everything works fine in the Audi app.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/arjenvrh/audi_connect_ha/issues/50#issuecomment-774674918, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADELRFMK4XWDU2QQRO5IDLDS52I2PANCNFSM4TBJUAIA.

mmarcm commented 3 years ago

Hey @arjenvrh it seems that some interfaces for newer cars changed to something like this: prd.ece.vwg-connect.com. The guys at ioBroker seems to use a home region (msg.volkswagen.de for older car models, and ...prd.ece.vwg-connect.com for newer cars) as homeregion setting. See this: https://github.com/TA2k/ioBroker.vw-connect/blob/master/main.js I think we need to differentiate between those interfaces. What do you think about it?

arjenvrh commented 3 years ago

@mmarcm Thanks for the info, I added support for the different URLs. Could you please test and report back, my cars seem to be using the old APIs?

mbuzina commented 3 years ago

Could you please test and report back, my cars seem to be using the old APIs?

Yes, I have all the sensors now and I can access the functions! Great stuff @arjenvrh, thanks!

dmelliott20 commented 3 years ago

Thanks @arjenvrh mines all working too!!

atozfugh commented 3 years ago

I can also confirm it! 👍 Mine is working like a charme now, thank you!!

Risfinne commented 3 years ago

Confirmed working now with both my A4 2018 and A6 2021. 👍

arandax commented 3 years ago

Awesome! Now even my car shows up, thank you all!

mbuzina commented 3 years ago

One last (minor) nitpick: the switch for the preheater does not notice that it has been turned off by the timer. I turned it on using hte switch and after 10 minutes it is turned off by the car, but ha does not notice the change. Do you poll the status regularly or can I add a trigger to poll if the preheater timer runs out?

mmarcm commented 3 years ago

@arjenvrh looks very good! Thank you for the quick update! All entities are now created again and have the right information.

devganny commented 3 years ago

Works like a charm now! Thanks a lot!

rklueber commented 3 years ago

Woooohoooo. Works like a charm. 31 entities now. You are heros! Thank you.

JamieP83 commented 3 years ago

Thanks for the help!

got a 2018 SQ5 I only had 2 entities as well, but then deleted it and added again with region as "DE" (caps) and i now have all 19 :)

flaskett commented 3 years ago

I have been reading so many blogs to try and sort this problem of only 2 entities. Deleted the integration, added the integration, tried the URLs above in the region field and no luck. Deleted the integration, added the integration, tried DE in the region then restart the host and bingo, 29 entities!