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

Login to Audi service failed #501

Open
timo002 opened this issue Nov 27, 2024 · 14 comments
Open

Login to Audi service failed #501

timo002 opened this issue Nov 27, 2024 · 14 comments

Comments

@timo002
Copy link

timo002 commented Nov 27, 2024

Describe the bug
Since a few days my integration is not working anymore. I'm not getting any new data, the integration also shows: Failed to set up

Screenshot
afbeelding

Logfile
LOGIN: Login to Audi service failed: 'Location'
LOGIN: Login to Audi service failed: Cannot connect to host content.app.my.audi.com:443 ssl:default [Timeout while contacting DNS servers]
LOGIN: Login to Audi service failed: 'NoneType' object has no attribute 'get'

Your Vehicle Details
Model: A3
Year: 2022
Type: Hybrid
Region: EU

@GMTheDoctor
Copy link

GMTheDoctor commented Nov 30, 2024

Same here today, Q3 from Italy

@tmooz
Copy link

tmooz commented Dec 5, 2024

Same here. SQ7 from Germany

@rightsaidfred99
Copy link

VW devs are the worst at breaking stuff

@olivierdc94
Copy link

Same here Q4, Belgium

@Ragonz
Copy link

Ragonz commented Dec 8, 2024

Same, 2022 etron, UK

@1979SAJ
Copy link

1979SAJ commented Dec 8, 2024

This helped me to reconnect to my audi through HA

1: go to https://my.audi.com/ and login with your account

2: Change your Country on your profil to another country (for instance USA)

3: Logout of your account

4: Logon to your account again and change country back to the correct one

5: Log out of your account

6: Try to reconnect with home assistant

Hope it work for your all

@rightsaidfred99
Copy link

I got it working again, but I just logged in and logged out. I wasn't able to change my country

@timo002
Copy link
Author

timo002 commented Dec 9, 2024

@1979SAJ, @rightsaidfred99 This seems to fix the issue.

@doubleGG82
Copy link

same problem Q4 Belgium
logging out and back in does not work unfortunately

Logger: homeassistant.config_entries
Bron: config_entries.py:640
Eerst voorgekomen: 15:43:29 (1 gebeurtenissen)
Laatst gelogd: 15:43:29

Error setting up entry xxxxxxxxxx for audiconnect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/audiconnect/init.py", line 144, in async_setup_entry
return await data.update(utcnow())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/audiconnect/audi_account.py", line 162, in update
if not await self.connection.update(None):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/audiconnect/audi_connect_account.py", line 113, in update
vehicles_response = await self._audi_service.get_vehicle_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/audiconnect/audi_services.py", line 269, in get_vehicle_information
"Authorization": "Bearer " + self.audiToken["access_token"],
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'

@lexathon
Copy link

Did you try logging in from a web browser. This issue seems to be down to some sort of user acceptance form that pops up when you try to login. It needs to be agreed prior to successful login.

@doubleGG82
Copy link

yes, tried logging in with webbrowser, did't get any pop-up
I have reinstalled the integration, without success

@doubleGG82
Copy link

doubleGG82 commented Dec 10, 2024

I logged out from the app on my phone, and logged back in.
First time I got an error, on a second try the login succeeded, and the HA integration also works again
Seems to be a glitch at Audi server

@EBOOZ
Copy link

EBOOZ commented Dec 10, 2024

Looks like they changed the backend (again). my.audi.com gives me the following message:
"_Audi connect: Coming soon in the myAudi app

To make all information and services for your Audi even more accessible to you, we are currently renewing our digital services.

Therefore, you will soon find the new myAudi customer zone here with your digital instruction manual, options to contact your Audi dealer, and many other important applications.

With the launch of the new myAudi customer zone, your Audi connect services will only be available via the myAudi app._"

image

@oleg-d
Copy link

oleg-d commented Jan 2, 2025

What helped me is log out of the mobile audi app, and log back in. YOu then will get asked to consent to some stuff, i just rejected it. Then the HA integration started working again.
This is not the first time this has happened, its just common now that Audi requires you to "consent" to some policy changes or whatever every so often and the HA app breaks but easy enough resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests