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

Sensors all Offline - Cupra backend requiring additional T&Cs #103

Open
derekjtroy opened this issue Jan 14, 2025 · 52 comments
Open

Sensors all Offline - Cupra backend requiring additional T&Cs #103

derekjtroy opened this issue Jan 14, 2025 · 52 comments

Comments

@derekjtroy
Copy link

Following an update to HACS Store this morning I'm getting the following errors in my logs for Cupra Connect

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 10:47:41 AM (2 occurrences)
Last logged: 11:15:04 AM

Error setting up entry Cupra We Connect for cupra_we_connect
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/cupra_we_connect/init.py", line 45, in async_setup_entry
await hass.async_add_executor_job(_we_connect.login)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/weconnect_cupra.py", line 166, in login
self.__session.login()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 47, in login
response = self.doWebAuth(authorizationUrl)
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 201, in doWebAuth
afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 337, in request
raise InsecureTransportError()
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.

@Marsman83
Copy link

I get the same error after restarting HA, looks like a fault in the MyCupra servers, or they changed something resulting in the integration not loading.

@nkratzke
Copy link

Same here

@Tino0309
Copy link

bei mir geht auch nix

@Tino0309
Copy link

Cornitus kommentiert am 11. Dez. 2024
Hallo und erstmal vielen Dank für die tolle Arbeit.

Die My Cupra App unterstützt nun die Modelle, die sonst über die Cupra Connect App verbunden waren. Die Cupra Connect App wird bald nicht mehr verfügbar sein. Mit meinem Leon E-Hybrid funktioniert die MyCupra App einwandfrei. Ist eine HA-Integration geplant, um auch alle Fahrzeuge zu unterstützen? Angeblich funktioniert die Integration teilweise mit anderen Fahrzeugen wie dem Born. Wird hier in Zukunft auch eine Unterstützung für andere Fahrzeuge wie den Born angeboten? Was sind die Pläne für die Zukunft?

Vielen Dank!

@Tino0309
Copy link

sollte heute dieser Tag sein ???
Das wäre doof.Dann macht HA für mich keinen Sinn mehr.
Hat jemand eine Idee ???

@stan916
Copy link

stan916 commented Jan 14, 2025

Same error here this afternoon but I updated HACS last week. My Cupra App is ok but all car (Born) entities are unavailable:

Logger: homeassistant.config_entries
Source: config_entries.py:635
First occurred: 13:26:49 (2 occurrences)
Last logged: 15:15:08

Error setting up entry Cupra We Connect for cupra_we_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cupra_we_connect/init.py", line 45, in async_setup_entry
await hass.async_add_executor_job(_we_connect.login)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/weconnect_cupra.py", line 166, in login
self.__session.login()
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 47, in login
response = self.doWebAuth(authorizationUrl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 201, in doWebAuth
afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 337, in request
raise InsecureTransportError()
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.

@xLexip
Copy link

xLexip commented Jan 14, 2025

Looks like VW is upgrading their security after the recent breach: https://www.darkreading.com/cyberattacks-data-breaches/volkswagen-breach-exposes-data-of-800k-customers

I hope the error message does not mean that we were not using https all the time...

@bbr111
Copy link

bbr111 commented Jan 14, 2025

The URL is not reachable. DNS Error

@daydy16
Copy link

daydy16 commented Jan 14, 2025

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

@bbr111
Copy link

bbr111 commented Jan 14, 2025

@daydy16 works for me

@BjoernWaechter
Copy link

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Works for me as well. Thank you for the hint @daydy16

@DaRoudini
Copy link

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Works for me as well. Thank you for the hint @daydy16

same for me, thx for the hint

@barnacleboy
Copy link

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Any extra step in HA after logging out and back into the app? Did it twice on the phone, restarted HA, the integration, reentered the credentials in HA, but was not successful.

@DaRoudini
Copy link

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Any extra step in HA after logging out and back into the app? Did it twice on the phone, restarted HA, the integration, reentered the credentials in HA, but was not successful.

on my side I've deactivated the integration in HA during new login into app (ios, btw)

@PerKjaer
Copy link

Does still not work for me. I have tried to log in to the app again.

@d33c0n
Copy link

d33c0n commented Jan 14, 2025

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Worked for me too. This is the way.

@KennethGunther
Copy link

If not working from App try to login to https://seatid.vwgroup.io/account
Under account setting change the Country to another place and accept and back again to your country, It fix my connection i HA

@joostiphone
Copy link

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

I did this in the past, but now this is not working for me. Each time I log out of the app and login again, I need to press 'accept'. In the past it reminded my acceptance, now it doesn't.

@vistalba
Copy link

If not working from App try to login to https://seatid.vwgroup.io/account Under account setting change the Country to another place and accept and back again to your country, It fix my connection i HA

This did the trick. Had to "accept", change country to Germany, "accept", change country back to real country, "accept" and then it was fixed. Thanks for pointing this out!

@joostiphone
Copy link

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

2025-01-14_19-54-23

@ToToZWave
Copy link

I recently updated HACS, and after that, the Cupra integration stopped working. To fix the issue, I deleted the integration in Home Assistant and then closed the iOS app by swiping it up from the app switcher to fully exit. After reopening Home Assistant and reinstalling the integration, it worked again. There was - for me - nothing to accept at my account.

@Mitch73-2
Copy link
Contributor

This worked for me:

* Log in at https://cupraid.vwgroup.io/account

* Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).

* Save it.

* Log out and log back in.

* Accept.

* Change your country back to your country, in my case the Netherlands.

* Reload your Cupra integration in HA.

2025-01-14_19-54-23

Worked for me too.

@PerKjaer
Copy link

PerKjaer commented Jan 14, 2025

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

2025-01-14_19-54-23

This solved it for me. Thank you.

@Yorkie71
Copy link

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

2025-01-14_19-54-23

Excellent find @joostiphone this worked for me. Thanks for sharing. I'd be lost without this integration now! It provides so much additional functionality.

@barnacleboy
Copy link

barnacleboy commented Jan 14, 2025

@joostiphone's approach worked for me too! Thank you. If this happens on a regular base this should be added to the documentation…

@Frank-Gr
Copy link

I didn't update HACS and have the same problem. So it seems to be a CUPRA Problem. The Cupra App on iPhone has the same issues.

@emto14
Copy link

emto14 commented Jan 15, 2025

This worked for me:

Thank you for the solution!

@stan916
Copy link

stan916 commented Jan 15, 2025 via email

@daernsinstantfortress
Copy link
Owner

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

Thanks for this. I can confirm from my own environment that simple accepting the new pop-up wasn't enough to be able to reload the integration and that I had to do something similar to this to restore things back to working again. There might be a few others on here that have been blocked for months by this that would be fixed by this, so it's a very useful tip. Thanks!

I'll close this down now as I think everyone is happy that things are working again.

@derekjtroy
Copy link
Author

Followed the above steps, and still not working for me..

@joostiphone
Copy link

Followed the above steps, and still not working for me..

What did you try so far? Did you clear your browser cache and/or did you clear the front-end cache in HA on mobile? I don't have any problems now with HA and/or the Cupra mobile app.

@daernsinstantfortress daernsinstantfortress changed the title HACS Update : Sensors all Offline. Sensors all Offline - Cupra backend requiring additional T&Cs Jan 15, 2025
@derekjtroy
Copy link
Author

image

At this point I can't change country, Tried in private mode for Firefox, Edge and Brave.

Even if I accept and change my own address on my profile. It doesn't allow me edit that.

@Boss-man
Copy link

Just press accept and you should be fine. Does it still not work in HA?

@derekjtroy
Copy link
Author

derekjtroy commented Jan 15, 2025

I feel like an idiot.

Hit accept, scroll down on profile, change country (not address)
Hit accept
Change country back
Hit accept.
All back working.

@daernsinstantfortress
Copy link
Owner

I've reopened this mostly so other people can see it and not raise dupe cases and also, it seems that not everyone is able to swap countries to force the acceptance of the terms, so there may need to be more community assistance here to help.

@derekjtroy
Copy link
Author

Login at https://cupraid.vwgroup.io/account

If you get terms and conditions hit accept.

Scroll down on your profile to this section

image

Change your location to a new one, hit accept / save

Change your location back to your preferred one, hit accept / save

@joostiphone
Copy link

Login at https://cupraid.vwgroup.io/account

If you get terms and conditions hit accept.

Scroll down on your profile to this section

image

Change your location to a new one, hit accept / save

Change your location back to your preferred one, hit accept / save

That's what I said 😅

@Yorkie71
Copy link

It certainly is what @joostiphone said. I followed it and it worked for me. I think some are getting confused with the country in the address and it's not that. It's the bit in the account settings as described.

@derekjtroy
Copy link
Author

Login at https://cupraid.vwgroup.io/account
If you get terms and conditions hit accept.
Scroll down on your profile to this section
image
Change your location to a new one, hit accept / save
Change your location back to your preferred one, hit accept / save

That's what I said 😅

100% @joostiphone and that's why I said I felt like an idiot, I hadn't scrolled down to see the separate country and region.

@daernsinstantfortress
Copy link
Owner

It's all cool. Sounds like you're up and running again @derekjtroy ?

@derekjtroy
Copy link
Author

Yup - all good @daernsinstantfortress - might be one to include in the readme ?

@daernsinstantfortress
Copy link
Owner

Definitely, now that @joostiphone has a solid way to solve. I'll sort later on.

@rs-homeautomation
Copy link

For me it began working again after accepting the new Terms and Privacy, no changing of countries needed.

@hazy66
Copy link

hazy66 commented Jan 15, 2025

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Works for me

@Rextor1978
Copy link

Works for me now. What i did was

  1. Logout of the iOS app and back in acceoting the licenser Agreement - didn't work

  2. Signing into the Web page acception the licenser Agreement - didn't work.

  3. Disabled the integration in HA, signed into the Web page, changed my country to sweden, and then back to Denmark. Re-enabled the ha integration - now it works

@tariklehaine
Copy link

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

2025-01-14_19-54-23

This worked for me!

@daernsinstantfortress
Copy link
Owner

I've updated the readme to reflect this information, so hopefully others will have a smoother ride in future.

@Henke19822
Copy link

Wow, followed the instruction here, several times. I approve all the new things, change the country back to what it should be. Do not work in HA. I removed the integrations and tried to add my car again, but not, "unexpected error".

Well well. We will return the car i May anyway. No big issue

@pblacky
Copy link

pblacky commented Jan 19, 2025

Am Handy in der Cupra App abmelden und wieder anmelden. Danach die Nutzungsbestimmungen bestätigen und alles funktioniert wieder!

Log out of the Cupra app on your phone and log back in. Then confirm the terms of use and everything will work again!

@yfeuser
Copy link

yfeuser commented Jan 19, 2025

I'm not sure if this is directly related to the issue, but after logging out and back into the "myCupra App," I was prompted to accept a new license agreement. After doing so, the integration started working fine again. This has occasionally resolved similar issues in the past.

Works for me! Best way to solve the problem :-)

@weesteev
Copy link

This worked for me:

  • Log in at https://cupraid.vwgroup.io/account
  • Temporarily change your Country and Region to e.g. Belgium (make sure not to change the section for National Identification, but really just the Country and Region).
  • Save it.
  • Log out and log back in.
  • Accept.
  • Change your country back to your country, in my case the Netherlands.
  • Reload your Cupra integration in HA.

2025-01-14_19-54-23

Confirmed this has worked for me as well (UK changed to Belgium, logged out and in and changed back to UK). Integration now back online, thanks so much!

@kip3435423
Copy link

This worked for me it just failed to connect after the home assistant got unpluged strange as I only accepted the terms about 2 days ago!

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