robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
336 stars 61 forks source link

[BUG] Retrying setup: None - Issue after upgrading to HA 2021.10.0 #338

Closed ruudvddries closed 10 months ago

ruudvddries commented 3 years ago

Environment

Describe the bug

Integration states "Retrying setup: None" and is indicated with a red border in the integration overview.

Steps to Reproduce

I have updated the core to 2021.10.0. That is when it started. Deleting the integration, uninstalling it from HACS, reinstalling it from HACS and enabling and configuring the integration gave me the same error en malfunction.

Expected behavior

I was able to fully use the integration in previous HA versions. Worked perfect.

Screenshots

None

Traceback/Error logs

as stated "Retrying setup: None"

``



## Debug information - all JSON responses from logfile
`2021-10-06 22:03:22 DEBUG (MainThread) [vw_connection] Using service https://msg.volkswagen.de
2021-10-06 22:03:22 DEBUG (MainThread) [vw_connection] Initiating new login
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Got authorization endpoint
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Authenticating with email and password.
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Parsing login response.
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Login successful, received authorization code.
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Trying to fetch user identity tokens.
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] User identity token verified OK.
2021-10-06 22:03:23 INFO (MainThread) [vw_connection] Successfully logged in
2021-10-06 22:03:23 DEBUG (MainThread) [vw_connection] Trying to fetch api tokens.
2021-10-06 22:03:24 DEBUG (MainThread) [vw_connection] VW-Group API token verified OK.
2021-10-06 22:03:24 DEBUG (MainThread) [vw_connection] Fetching vehicles associated with account
2021-10-06 22:03:24 DEBUG (MainThread) [vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/NL/vehicles"
2021-10-06 22:03:24 DEBUG (MainThread) [vw_connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/NL/vehicles" returned with status code [200]
2021-10-06 22:03:24 DEBUG (MainThread) [vw_connection] Found vehicle(s) associated with account.
2021-10-06 22:03:24 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode().
2021-10-06 22:03:24 WARNING (MainThread) [custom_components.volkswagencarnet] Could not query update from volkswagen WeConnect
2021-10-06 22:03:24 ERROR (MainThread) [custom_components.volkswagencarnet] Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/
2021-10-06 22:03:24 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.001 seconds (success: False)`

## Additional context
I double, triple checked. Upon logging in tot portal.volkswagen-we.com I can see all data and are not prompted with an updated EULA or anything.
noway42 commented 3 years ago

I can confirm this completely, I have the same issue just after updating HA to 2021.10.0. I am getting the same Error and experience.

mdezotti commented 3 years ago

Identical problem here!

jurrianv commented 3 years ago

Same here.

tomroeleveld commented 3 years ago

Same problem here.

tubalainen commented 3 years ago

Yes indeed. The latest release of HA broke this component. I will reach out to our ninjas to see if they can find some time in their busy day to fix it for us.

ptrabolt commented 3 years ago

Same problem here

acdcnow commented 3 years ago

and for me as well, cleaned up already all VW data and setup all new accepted every time all possible EULA, but no luck. Tried then different country codes AT-DE-UK nothing works.

2021-10-07 20:51:01 DEBUG (MainThread) [custom_components.volkswagencarnet.config_flow] Creating connection to volkswagen weconnect 2021-10-07 20:51:01 DEBUG (MainThread) [vw_connection] Using service https://msg.volkswagen.de 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Initiating new login 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Requesting openid config 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Get authorization page from "https://identity.vwgroup.io/oidc/v1/authorize" 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Request headers: "{'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'x-requested-with': 'We Connect', 'User-Agent': 'okhttp/3.14.7', 'X-App-Name': 'We Connect'}" 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Got redirect to "https://identity.vwgroup.io/signin-service/v1/signin/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?relayState=8a09328644edd876f6fbc3667cb5cb3cf809ed7e" 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Got authorization endpoint 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Authenticating with email and password. 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/login/authenticate" 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Parsing login response. 2021-10-07 20:51:02 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com&relayState=8a09328644edd876f6fbc3667cb5cb3cf809ed7e&userId=ca196623-11c5-4d64-8e98-f477fbd6042e&HMAC=f1da841666841d5900693d418d2e6140cba881bdd87d49dfb65b7c480859d424" 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/ca196623-11c5-4d64-8e98-f477fbd6042e/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&relayState=8a09328644edd876f6fbc3667cb5cb3cf809ed7e&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=114b2b81861341781a040450307e53f6a967f54ab8d1b2e02878b21d53036526" 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=ca196623-11c5-4d64-8e98-f477fbd6042e&client_id=9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com&scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&consentedScopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&relayState=8a09328644edd876f6fbc3667cb5cb3cf809ed7e&hmac=07656264eb3dd55f290bccf1e07c51b8a4e871b6393ea7e8bbfac3e5a018b1d7" 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Login successful, received authorization code. 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Trying to fetch user identity tokens. 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token access_token 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token refresh_token 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token id_token 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token token_type 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token expires_in 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] User identity token verified OK. 2021-10-07 20:51:03 INFO (MainThread) [vw_connection] Successfully logged in 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Trying to fetch api tokens. 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token access_token 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token token_type 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token refresh_token 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token expires_in 2021-10-07 20:51:03 DEBUG (MainThread) [vw_connection] Got token scope 2021-10-07 20:51:04 DEBUG (MainThread) [vw_connection] VW-Group API token verified OK. 2021-10-07 20:51:04 DEBUG (MainThread) [vw_connection] Fetching vehicles associated with account 2021-10-07 20:51:04 DEBUG (MainThread) [vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles" 2021-10-07 20:51:04 DEBUG (MainThread) [vw_connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles" returned with status code [200], response: {'userVehicles': {'vehicle': ['XXXXXXXXXXXXXXXXXX']}} 2021-10-07 20:51:04 DEBUG (MainThread) [vw_connection] Found vehicle(s) associated with account. 2021-10-07 20:51:04 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode(). 2021-10-07 20:51:04 INFO (MainThread) [custom_components.volkswagencarnet.config_flow] Found data for VIN: XXXXXXXXXXXXXXXXXX from WeConnect 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Using service https://msg.volkswagen.de 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Initiating new login 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Requesting openid config 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Get authorization page from "https://identity.vwgroup.io/oidc/v1/authorize" 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Request headers: "{'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'x-requested-with': 'We Connect', 'User-Agent': 'okhttp/3.14.7', 'X-App-Name': 'We Connect'}" 2021-10-07 20:51:10 DEBUG (MainThread) [vw_connection] Got redirect to "https://identity.vwgroup.io/signin-service/v1/signin/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?relayState=2b76e3e9611c1c4794324eed62e138d3b2030f42" 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Got authorization endpoint 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Authenticating with email and password. 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Using login action url: "https://identity.vwgroup.io/signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/login/authenticate" 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Parsing login response. 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com&relayState=2b76e3e9611c1c4794324eed62e138d3b2030f42&userId=ca196623-11c5-4d64-8e98-f477fbd6042e&HMAC=cb5bdec18311f68c207c11ae2bbe7f188d35ee68579017f9de1fc81ab872f301" 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/ca196623-11c5-4d64-8e98-f477fbd6042e/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&relayState=2b76e3e9611c1c4794324eed62e138d3b2030f42&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=a8198a8f864bbc2dfe5364b452262da0a1c6be9e309d2a8439db6470d151b767" 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Following redirect to "https://identity.vwgroup.io/oidc/v1/oauth/client/callback/success?user_id=ca196623-11c5-4d64-8e98-f477fbd6042e&client_id=9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com&scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&consentedScopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&relayState=2b76e3e9611c1c4794324eed62e138d3b2030f42&hmac=9b21fb9ec538fc39f7fab74529bef669b20afd4238f534c2701e74f3261ca1b3" 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Login successful, received authorization code. 2021-10-07 20:51:11 DEBUG (MainThread) [vw_connection] Trying to fetch user identity tokens. 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token access_token 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token refresh_token 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token id_tokena 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token token_type 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token expires_in 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] User identity token verified OK. 2021-10-07 20:51:12 INFO (MainThread) [vw_connection] Successfully logged in 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Trying to fetch api tokens. 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token access_token 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token token_type 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token refresh_token 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token expires_in 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Got token scope 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] VW-Group API token verified OK. 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Fetching vehicles associated with account 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles" 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles" returned with status code [200], response: {'userVehicles': {'vehicle': ['XXXXXXXXXXXXXXXXXX']}} 2021-10-07 20:51:12 DEBUG (MainThread) [vw_connection] Found vehicle(s) associated with account. 2021-10-07 20:51:12 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode(). 2021-10-07 20:51:12 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode(). 2021-10-07 20:51:12 WARNING (MainThread) [custom_components.volkswagencarnet] Could not query update from volkswagen WeConnect 2021-10-07 20:51:12 ERROR (MainThread) [custom_components.volkswagencarnet] Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/ 2021-10-07 20:51:12 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.001 seconds (success: False)

robinostlund commented 3 years ago

Can you try the latest version? :)

acdcnow commented 3 years ago

4.4.47... lets see... and yes all working again. Egolf 2018 got all 45 entities back. Great work! Thanks

mdezotti commented 3 years ago

Also for me is resolved.

T-Roc 1.6 TDI

Thank you a lot for the great Work!!!

WegnerDan commented 3 years ago

It works! Thanks guys!

Bloodpack commented 3 years ago

Thanks for the update, it works again

tomroeleveld commented 3 years ago

Good work, thanks!

stepir commented 3 years ago

don't work for me - it all started by needing to accept the EULA once again. I did it, no changes, updated to 4.4.47 but still no luck

This error originated from a custom integration.

Logger: custom_components.volkswagencarnet
Source: helpers/update_coordinator.py:219 
Integration: Volkswagen We Connect (documentation, issues) 
First occurred: 10:41:58 AM (2 occurrences) 
Last logged: 10:42:04 AM

Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/

I can login to the web portal both of my country and also DE without any request of EULA.

tubalainen commented 3 years ago

Please note that there is a new Terms and Condition to be accepted in the VW portal (AGAIN!).

stepir commented 3 years ago

thanks I logged of and logged in on the portal multiple time both in country and DE but was proposed to accept new terms only once. Still won't work for me - I even removed (in the profile of the web portal access permission) my country and readied it once again.

no luck

danielszilagyi commented 3 years ago

Hello,

Same problem here, I first upgraded to HA 2021.10, then upgraded the custom integration and it worked (after midnight today). Now, I had to roll back to 2021.9 because Energy dashboard went nuts, and unable to bring this integration back to life. Similar log entries to what can be found above. I uninstalled and reinstalled the integration multiple times, no luck. Trying with 4.4.47, and it breaks. Logged on to the VW portal with even incognito window, no new EULA to be accepted, car updates on the web and in the app.

2021-10-10 14:08:06 INFO (MainThread) [vw_connection] Successfully logged in 2021-10-10 14:08:07 WARNING (MainThread) [vw_connection] Could not update information: Invalid audience 2021-10-10 14:08:07 WARNING (MainThread) [vw_connection] Could not update information: Invalid audience 2021-10-10 14:08:07 WARNING (MainThread) [custom_components.volkswagencarnet] Could not query update from volkswagen WeConnect 2021-10-10 14:08:07 ERROR (MainThread) [custom_components.volkswagencarnet] Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/ 2021-10-10 14:08:07 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.001 seconds (success: False) 2021-10-10 14:08:07 WARNING (MainThread) [homeassistant.config_entries] Config entry 'e-up!' for volkswagencarnet integration not ready yet: None; Retrying in background 2021-10-10 14:08:13 INFO (MainThread) [vw_connection] Successfully logged in 2021-10-10 14:08:13 WARNING (MainThread) [vw_connection] Could not update information: Invalid audience 2021-10-10 14:08:13 WARNING (MainThread) [vw_connection] Could not update information: Invalid audience 2021-10-10 14:08:13 WARNING (MainThread) [custom_components.volkswagencarnet] Could not query update from volkswagen WeConnect 2021-10-10 14:08:13 ERROR (MainThread) [custom_components.volkswagencarnet] Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/ 2021-10-10 14:08:13 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.001 seconds (success: False)

Any idea?

tubalainen commented 3 years ago

@danielszilagyi did you login to https://www.portal.volkswagen-we.com/ and accepted the new ToC?

danielszilagyi commented 3 years ago

@danielszilagyi did you login to https://www.portal.volkswagen-we.com/ and accepted the new ToC?

Yepp, right away after the component upgrade. I accepted the new terms and now this portal wouldn’t ask it again.

The integration worked from about midnight until I had to roll back my HA version today afternoon. I upgraded the integration to the latest after HA rollback again, and now this is the case. None of the VW urls ask for acceptancw of new T&C :(

danielszilagyi commented 3 years ago

@danielszilagyi did you login to https://www.portal.volkswagen-we.com/ and accepted the new ToC?

Also what is weird is that the VIN is detected by the setup script, and it shows success, but the integration page looks like this after it completed: image

I'm running HA 2021.9.3, as the Energy dashboard went nuts in 10.2 for me and I didn't want to waste hours on resolving that issue, rolling back seemed to be easier, but I didn't expect to have issues with another integration :)

stepir commented 3 years ago

same here - tried revoking on the VW portal any kind of access and logout/login but nothing change. Installation of the integration is successful but then same error message of this thread. Portal never proposed back any request to accept EULA once again

jpsmith16 commented 3 years ago

same issue as @danielszilagyi here also

robinostlund commented 3 years ago

It is a new agreement that you need to sign, i had the same issue this morning but worked after i approved the new agreement 😊

stepir commented 3 years ago

We already approved it / signed it

danielszilagyi commented 3 years ago

It is a new agreement that you need to sign, i had the same issue this morning but worked after i approved the new agreement 😊

Checked all vw portals again, no new terms to accept (accepted one a few days ago)

jpsmith16 commented 3 years ago

It is a new agreement that you need to sign, i had the same issue this morning but worked after i approved the new agreement 😊

Checked all vw portals again, no new terms to accept (accepted one a few days ago)

Likewise. I removed all my devices on the portal and re-logged in to try and see if it'd force new terms to accept but nothing...

ruudvddries commented 3 years ago

Can you try the latest version? :)

All good. Thanks for the effort! Who can I buy a coffee?

stepir commented 3 years ago

Guys - I reverted to 4.4.46 and it works - clearly it's not myself having to accept again the EULA. Can I provide any log to help?

danielszilagyi commented 3 years ago

lol! This is how to solve a 3 days standing issue in 3 minutes.

4.4.46 seems to work for me as well. What I can find as a difference, the setup script actually does not finish correctly with 4.4.47, in the view which appears after the VIN is shown, shows only three or four entities, those that are actual controls of the communication between VW and the car (I forgot to make a screenshot, but it only showed Force data refresh, and the request counters), while on 4.4.46 it correctly shows all the 50ish entities, and the next step is the area selection. On 4.4.47 the setup window disappears after clicking next on this checkbox view.

In can also reproduce, 4.4.46 works like a charm after setup.

Thanks for the nice catch, @stepir !

ch1ppo commented 3 years ago

Just a note for anyone watching this issue assuming they have the same issue.

I was avoiding adding my mobile number into the VW Portal when prompted because of the requirement for MFA to be disabled. It turns out this was my problem. I added my mobile number without enabling MFA and this is now working for me again.

Version 4.4.47 on Home Assistant 2021.10.6

stepir commented 3 years ago

My profile always had the mobile number filled up

FlashG75 commented 3 years ago

Having similar issues with 4.4.47. Accepted new terms in VW portal. Configuring the integrations it gets my VIN but then shows the following (see screenshot) Screenshot 2021-11-04 234216

danielszilagyi commented 3 years ago

Have you tried upgrading your HA instance to the latest, or downgrading the VW integration to 4.4.46?

Marcussjogren commented 3 years ago

Hi

I have the same problem but eventually other symptoms.

My integration is also stuck in “Retries: None”, but every morning I can try to reconfigure it (enter user/pass).

When doing so, I receive the attached error message.

It looks to me like VW is doing a lot of changes and upgrades regarding their VW ID service to keep us customers protected, which is good indeed. But it makes it cumbersome to keep these integrations working.

Logger: custom_components.volkswagencarnet.config_flow Source: custom_components/volkswagencarnet/config_flow.py:215 Integration: Volkswagen We Connect (documentation, issues) First occurred: 9:29:15 AM (1 occurrences) Last logged: 9:29:15 AM

Failed to login due to error: It is required that you pass in a value for the "algorithms" argument when calling decode().

Marcussjogren commented 2 years ago

I have tried logging on to all possible parts of Volkswagen pages. No questions about mobile number No MFA activated No EULA-questions No other types of questions except cookie-agreements.

Integration Status in HA: "Retrying setup: None"

When I delete the integration and add it again, it finds my car (VIN-number) so I can select it. Then setup says "Completed for ."

I enabled full API debugging, and the below is what I get from the HA Logg (HA->Configuration->Server->Logs)

2021-11-09 14:10:03 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode(). 2021-11-09 14:10:03 WARNING (MainThread) [vw_connection] Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode(). 2021-11-09 14:10:03 WARNING (MainThread) [custom_components.volkswagencarnet] Could not query update from volkswagen WeConnect 2021-11-09 14:10:03 ERROR (MainThread) [custom_components.volkswagencarnet] Error fetching volkswagencarnet data: Failed to update WeConnect. Need to accept EULA? Try logging in to the portal: https://www.portal.volkswagen-we.com/

Marcussjogren commented 2 years ago

Have you tried upgrading your HA instance to the latest, or downgrading the VW integration to 4.4.46?

I have done so by cloning it and installing it to custom_components-folder according to the README. No difference.

JohNan commented 2 years ago

This error tells me that you probably need to upgrade the integration to version 4.4.47 Could not update information: It is required that you pass in a value for the "algorithms" argument when calling decode().

You get this issue because Home Assistant is using a newer version of a crypto library than what the integration expects. Use HACS to install the latest version 4.4.47 and you should be good to go.

@Marcussjogren Related issue that's has been fixed: https://github.com/robinostlund/volkswagencarnet/issues/126

milkboy commented 2 years ago

Should we close this issue? :thinking:

Marcussjogren commented 2 years ago

Should we close this issue? 🤔

In my opinion yes!

Sorry for the poor response from me. I don't remember 100% but there was something wrong with the way I upgraded, so I installed it via HACS and then it worked like a charm!