Audi MMI support

Today and yesterday I’ve been trying to get this integration working, but no matter what I do I seem to be getting the invalid credentials error when adding the integration. I know the email and pw is correct. I don’t know if the S-pin is the 4-digit pin configured or the 8-pin found in the Audi app? Tried both.
If I do not enter S-pin I get the error User input malformed: expected str for dictionary value @ data[‘spin’].
I tried removing the integration from hacs several times.
I even tried adding a new user on my.audi.com, but it’s just the same.
Any suggestions?

I see fversteegen and lauff reports problem also. May it is broken for everyone at the moment?

It looks that Audi has changed details (mentioned client_id but could be also user-agent and other stuff). I tried to extract those details yesterday from new app but I do not have much time and knowledge to do that. What I found is that one of client_ids is f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com but replacing it in the code hasn’t changed anything. I belive that the biggest issue is that Audi is (properly and securely) using SSL pinning…

A new 4.14.0 app was released a few days ago. Maybe the 4.9.2 was deactivated on the server with the new release? Then a new xqmauth_secret probably is needed?
I guess some of the experts here probably know how to adapt the code for the updated version.

Works again. Probably caused by some issues on VW side.

yeah, now I got it working. (works only with no S-pin or 8-digit pin for me)

Its working again at my end. I am using the 4 digit pin

Just installed and linked my Q4 but I only got 2 entities

  • sensor.audi_q4_e_tron_model
  • lock.audi_q4_e_tron_door_lock

2022-12-28 19:50:35.401 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] support_status_report set to False: 502
2022-12-28 19:50:35.546 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle shortTerm tripdata of WAUxxxxxxx: 403, message=‘Forbidden’, url=URL(‘https://mal-1a.prd.ece.vwg-connect.com/api/bs/tripstatistics/v1/vehicles/WAUxxxxxxx/tripdata/shortTerm?type=list&from=1970-01-01T00:00:00Z&to=2022-12-28T20:20:35Z’)
2022-12-28 19:50:35.694 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle longTerm tripdata of WAUxxxxxxx: 403, message=‘Forbidden’, url=URL(‘https://mal-1a.prd.ece.vwg-connect.com/api/bs/tripstatistics/v1/vehicles/WAUxxxxxxx/tripdata/longTerm?type=list&from=1970-01-01T00:00:00Z&to=2022-12-28T20:20:35Z’)

In the audi_api is see the following headers:

  • HDR_XAPP_VERSION = “4.13.0”
  • HDR_USER_AGENT = “myAudi-Android/4.13.0 (Build 800238275.2210271555) Android/11”

From the android/web it’s working ‘fine’
Anyone an idea/suggestion how to troubleshoot?

Does anyone know how I can modify username and PIN for an existing installation?

Simply remove the integration and re-add it. Entities will keep the same names (at least it did at my end)

1 Like

I have a 21 etron and have been working on setting up a toggle to start the climate control. When I run start_climatisation it starts the climate control but not the heated/cooled seats. Is there a call that will do both like I can from the Audi app?

have you tried the following?

  • start_preheater
  • stop_preheater
  • start_window_heating
  • stop_window_heating

@germplan

I have and neither seem to be valid calls.

1 Like

Hi, I was hoping to use this integration in my setup, for an Audi Q4 battery level readout primarily.

I seem to hit a login rejection however, so something in the request is not liked by the server. I’m not expecting anyone to debug it for me but just checking if anyone UK based finds this works for them? If so, what “region” have you used? SPin or no SPin?

2023-01-20 11:35:35.210 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Login to Audi service failed, trying again in 10 seconds
2023-01-20 11:35:46.039 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Login to Audi service failed, trying again in 10 seconds
2023-01-20 11:35:56.900 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Login to Audi service failed: /signin-service/v1/09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com/login/authenticate?relayState=a25e5ea45f9da4ef6b5307e26faaea7b5fb4bd5c&nextButtonDisabled=true&enableNextButtonAfterSeconds=4&error=login.error.throttled

Will try via the test.py to see what is going on next, but I think those login failures have put me on a naughty list since the web/android client keeps telling me too many failed logins (password reset clears that).

Interestingly mine seemed to stopped refreshing a few days ago. Also getting the warning about throttled. I’ve changed my password as well as deleting the integration and re-adding it but still to no avail.
Is it a general problem, or is this integration still working for other people?

Not working for me as well.

I have the same problem, access to the myAudi portal is blocked for my account. Too many login attempts it seems…

I had to delete the integration, reboot home assistant then wait 24 hours before re-adding it.

No idea what caused it but at least it’s working again now.

2022-02-12 15:35:06 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle shortTerm tripdata of WAUZZZFY1Hxxxxxxx: 403, message='Forbidden', url=URL('https://mal-1a.prd.ece.vwg-connect.com/api/bs/tripstatistics/v1/vehicles/WAUZZZFY1Hxxxxxxx/tripdata/shortTerm?type=list&from=1970-01-01T00:00:00Z&to=2022-02-12T16:05:05Z')
2022-02-12 15:35:06 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle longTerm tripdata of WAUZZZFY1Hxxxxxxx: 403, message='Forbidden', url=URL('https://mal-1a.prd.ece.vwg-connect.com/api/bs/tripstatistics/v1/vehicles/WAUZZZFY1Hxxxxxxx/tripdata/longTerm?type=list&from=1970-01-01T00:00:00Z&to=2022-02-12T16:05:06Z')

Has the above issue ever been addressed? Guessing not since it’s the only thing left in my HA causing unnecessary log entries.

Looks like this shut up the above messages. Commented out the below:

 # info = "shortterm"                                       
 # await self.call_update(self.update_vehicle_shortterm, 3)
 # info = "longterm"
 # await self.call_update(self.update_vehicle_longterm, 3) 

in audi_connect_account.py

Today just started seeing loads of these messages:

2023-02-27 09:12:42.083 ERROR (MainThread) [custom_components.audiconnect.audi_services] Refresh token failed: Extra data: line 1 column 5 (char 4)

Any idea why?

Not sure if it’s related to this:

2023-02-27 14:44:38.376 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Login to Audi service failed: 404, message=‘Not Found’, url=URL(‘https://idkproxy-service.apps.na.vwapps.io/v1/na/openid-configuration’)

1 Like