robinostlund / homeassistant-volkswagencarnet

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

Can’t sign in #235

Closed jsabia85 closed 3 years ago

jsabia85 commented 3 years ago

I keep getting invalid credentials when trying to setup, credentials are correct.

Logger: custom_components.volkswagencarnet Source: custom_components/volkswagencarnet/init.py:180 Integration: volkswagencarnet (documentation, issues) First occurred: 2:33:20 PM (91 occurrences) Last logged: 5:36:14 PM

Could not login to volkswagen carnet, please check your credentials and verify that the service is working

Logger: volkswagencarnet Source: /usr/local/lib/python3.8/site-packages/volkswagencarnet.py:266 First occurred: 2:33:20 PM (91 occurrences) Last logged: 5:36:14 PM

Failed to login to carnet, 'NoneType' object has no attribute 'get'

Sn00kiT commented 3 years ago

Same here, i also double checked if there are new terms on the portal to accept.

Logger: custom_components.volkswagencarnet Source: custom_components/volkswagencarnet/init.py:180 Integration: volkswagencarnet (documentation, issues)

Cheers from Germany

bendiger commented 3 years ago

Same errors, Just added a Jetta SEL in the USA today. I didn't see anything in my app or on he carnet site that would confirm anything. Can anyone clarify what the SPIN is? Is that my PIN to log in with?

~Ben

tubalainen commented 3 years ago

Please try the version of the component with the new config flow and enter "US" for @bendiger and @Sn00kiT ender "DE" in the region input box.

Does it work?

Please dont forget to remove all configuration from configuration.yaml first. Thanks :)

jsabia85 commented 3 years ago

Unfortunately it does not work. Just spins at connecting to WeConnect. I have removed all the specific configured from my configuration.yaml file

Sn00kiT commented 3 years ago

You can Set your s-pin in der weconnect Portal. Proably 4 Digits. Your country should be the the one you live in. Also don't use the configurations.yaml with the latest Release. Just Install the addon ober hacs or manually and then Go to Integration and search for weconnect.

Cheers Tom

bendiger notifications@github.com schrieb am Sa., 27. Feb. 2021, 05:35:

Same errors, Just added a Jetta SEL in the USA today. I didn't see anything in my app or on he carnet site that would confirm anything. Can anyone clarify what the SPIN is? Is that my PIN to log in with?

~Ben

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/235#issuecomment-787003504, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSFHVCHBTMBVERZ7FUNTSLTBBY7PANCNFSM4WFTKXTA .

robinostlund commented 3 years ago

I think us i using another we connect portal than we are using in eu, so i dont think this component will work for US users. But i am not 100% sure as i havent been able to verify.

khase commented 3 years ago

Hey together,

i just tried the Integration and it seems that i'm not able to login to. Log states the following Error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 141, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 92, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 158, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 216, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/config/custom_components/volkswagencarnet/config_flow.py", line 164, in async_step_login
    await self.task_update
  File "/config/custom_components/volkswagencarnet/config_flow.py", line 94, in _async_task_update
    if not await self._connection.update():
  File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 326, in update
    loaded_vehicles = await self.post(
  File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 309, in post
    return await self._request(METH_POST, self._make_url(url, rel))
  File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 282, in _request
    response.raise_for_status()
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://www.portal.volkswagen-we.com/portal/group/de/edit-profile/-/profile/settings/vehiclemanagement/-/mainnavigation/get-fully-loaded-cars')

Hopefully this will help diagnose the error. I would love to use this Integration :)

Riverhate commented 3 years ago

Hi, I have a similar problem. Before update to the lates version, it works ok in my Home assistant, but after update I can't sign in and the integration doesn't install. I have delete configuration. yaml. Install from hacs WeConnect repository and then install integration WeConnec, but after write the usser and pass it doesn't finish bellow the logs: Please, the conuntry code for Spain?

image

Logger: aiohttp.server Source: custom_components/volkswagencarnet/config_flow.py:166 First occurred: 18:23:44 (1 occurrences) Last logged: 18:23:44

Error handling request Traceback (most recent call last): File "/config/custom_components/volkswagencarnet/config_flow.py", line 164, in async_step_login await self.task_update File "/config/custom_components/volkswagencarnet/config_flow.py", line 94, in _async_task_update if not await self._connection.update(): File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 327, in update loaded_vehicles = await self.post( File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 310, in post return await self._request(METH_POST, self._make_url(url, rel)) File "/usr/local/lib/python3.8/site-packages/volkswagencarnet.py", line 276, in _request async with self._session.request( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in aenter self._resp = await self._coro File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 492, in _request req = self._request_class( File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 305, in init self.update_host(url) File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 366, in update_host raise InvalidURL(url) aiohttp.client_exceptions.InvalidURL: -/mainnavigation/get-fully-loaded-cars

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle resp = await handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 141, in get return await super().get(request, flow_id) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 92, in get result = await self._flow_mgr.async_configure(flow_id) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 158, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 216, in _async_handle_step result: Dict = await getattr(flow, method)(user_input) File "/config/custom_components/volkswagencarnet/config_flow.py", line 166, in async_step_login return self.async_abort("Failed to connect to WeConnect") TypeError: async_abort() takes 1 positional argument but 2 were given

JohNan commented 3 years ago

Did you try logging into the We Connect portal? Last time I logged in I had to accept new terms to be able to continue using the integration.

You can find more info in this issue https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/270

Riverhate commented 3 years ago

Did you try logging into the We Connect portal? Last time I logged in I had to accept new terms to be able to continue using the integration.

You can find more info in this issue #270

Thanks a lot!!

This has solve my problem!!

tubalainen commented 3 years ago

@jsabia85 has this been resolved in with the latest release? Can we close this issue?

jsabia85 commented 3 years ago

@jsabia85 has this been resolved in with the latest release? Can we close this issue?

Unfortunately I am still unable to login.

JohNan commented 3 years ago

@jsabia85 has this been resolved in with the latest release? Can we close this issue?

Unfortunately I am still unable to login.

have you updated to 4.4.41 ? Do you get any error message?

jsabia85 commented 3 years ago

Yes, I am on 4.4.41, I am receiving the below error:

Could not login to Volkswagen WeConnect, please check your credentials and verify that the service is working

I confirmed I am using the correct email/password, I tried logging into carnet and confirm no popups to accept any terms etc.

tubalainen commented 3 years ago

Yes, I am on 4.4.41, I am receiving the below error:

Could not login to Volkswagen WeConnect, please check your credentials and verify that the service is working

I confirmed I am using the correct email/password, I tried logging into carnet and confirm no popups to accept any terms etc.

Can you interact with the car using the app?

jsabia85 commented 3 years ago

Yes, I am on 4.4.41, I am receiving the below error: Could not login to Volkswagen WeConnect, please check your credentials and verify that the service is working I confirmed I am using the correct email/password, I tried logging into carnet and confirm no popups to accept any terms etc.

Can you interact with the car using the app?

Yes, no issues with the app.

JohNan commented 3 years ago

Yes, I am on 4.4.41, I am receiving the below error: Could not login to Volkswagen WeConnect, please check your credentials and verify that the service is working I confirmed I am using the correct email/password, I tried logging into carnet and confirm no popups to accept any terms etc.

Can you interact with the car using the app?

Yes, no issues with the app.

In what country are you located?

jsabia85 commented 3 years ago

Yes, I am on 4.4.41, I am receiving the below error: Could not login to Volkswagen WeConnect, please check your credentials and verify that the service is working I confirmed I am using the correct email/password, I tried logging into carnet and confirm no popups to accept any terms etc.

Can you interact with the car using the app?

Yes, no issues with the app.

In what country are you located?

United States, FYI I’ve upgrade to 4.4.42

oneofthemany commented 3 years ago

Hate to sound like a broken record but I am also having the same issue:

Logger: vw_connection
Source: deps/lib/python3.8/site-packages/vw_connection.py:276
First occurred: 16:41:03 (1 occurrences)
Last logged: 16:41:03

/signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy
Traceback (most recent call last):
  File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 307, in _login
    raise e
  File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 276, in _login
    response = await self._session.get(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 492, in _request
    req = self._request_class(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 305, in __init__
    self.update_host(url)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 366, in update_host
    raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: /signin-service/v1/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com/terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy

I have not enable MFA, but if I log out of the website and then log back in, I have to ack T&C's each time:

image

ISO country code is GB and version is 4.4.46

It may be worth noting that I am seeing this on the referer Request Header as I hit Accept:

https://identity.vwgroup.io/signin-service/v1/67cb36f2-9a7f-48b2-ad43-d547ea744daf@apps_vw-dilab_com/terms-and-conditions?relayState=1de2ba7494be1633309e7ebd25b0dbae46aedb8e&updated=dataprivacy

This is linked to the last line in the hass log which reports invalidURL

Sn00kiT commented 3 years ago

I Had the Same issue, those idiots at VW are permanently changing their terms of use. Also they have a new Portal url. Google for it and Login via Smartphone Browser. After accepting it there IT should be gone.

oneofthemany @.***> schrieb am Mo., 7. Juni 2021, 17:45:

Hate to sound like a broken record but I am also having the same issue:

Logger: vw_connection Source: deps/lib/python3.8/site-packages/vw_connection.py:276 First occurred: 16:41:03 (1 occurrences) Last logged: 16:41:03

@._vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy Traceback (most recent call last): File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 307, in _login raise e File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 276, in _login response = await self._session.get( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 492, in _request req = self._request_class( File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 305, in init self.update_host(url) File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 366, in update_host raise InvalidURL(url) aiohttp.client_exceptions.InvalidURL: @._vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy

I have not enable MFA, but if I log out of the website and then log back in, I have to ack T&C's each time

ISO country code is GB and version is 4.4.46

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/235#issuecomment-856051862, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSFHVGX5GNDWEUKJLET6QTTRTSQBANCNFSM4WFTKXTA .

oneofthemany commented 3 years ago

I Had the Same issue, those idiots at VW are permanently changing their terms of use. Also they have a new Portal url. Google for it and Login via Smartphone Browser. After accepting it there IT should be gone. oneofthemany @.> schrieb am Mo., 7. Juni 2021, 17:45: Hate to sound like a broken record but I am also having the same issue: Logger: vw_connection Source: deps/lib/python3.8/site-packages/vw_connection.py:276 First occurred: 16:41:03 (1 occurrences) Last logged: 16:41:03 @._vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy Traceback (most recent call last): File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 307, in _login raise e File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 276, in _login response = await self._session.get( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 492, in _request req = self._request_class( File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 305, in init self.update_host(url) File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 366, in update_host raise InvalidURL(url) aiohttp.client_exceptions.InvalidURL: @.***_vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy I have not enable MFA, but if I log out of the website and then log back in, I have to ack T&C's each time ISO country code is GB and version is 4.4.46 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#235 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSFHVGX5GNDWEUKJLET6QTTRTSQBANCNFSM4WFTKXTA .

Thanks, that has worked

Jac-Kok commented 3 years ago

Thanks is working now!

janstadt commented 2 years ago

I Had the Same issue, those idiots at VW are permanently changing their terms of use. Also they have a new Portal url. Google for it and Login via Smartphone Browser. After accepting it there IT should be gone. oneofthemany @.> schrieb am Mo., 7. Juni 2021, 17:45: Hate to sound like a broken record but I am also having the same issue: Logger: vw_connection Source: deps/lib/python3.8/site-packages/vw_connection.py:276 First occurred: 16:41:03 (1 occurrences) Last logged: 16:41:03 @._vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy Traceback (most recent call last): File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 307, in _login raise e File "/config/deps/lib/python3.8/site-packages/vw_connection.py", line 276, in _login response = await self._session.get( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 492, in _request req = self._request_class( File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 305, in init self.update_host(url) File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 366, in update_host raise InvalidURL(url) aiohttp.client_exceptions.InvalidURL: @.***_vw-dilab_com /terms-and-conditions?relayState=70262f119bb38291db0b41bc45e261c5c56857d6&updated=dataprivacy I have not enable MFA, but if I log out of the website and then log back in, I have to ack T&C's each time ISO country code is GB and version is 4.4.46 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#235 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSFHVGX5GNDWEUKJLET6QTTRTSQBANCNFSM4WFTKXTA .

I was able to get the terms approved, but im still not able to integrate with carnet. 2021 US VW Atlas which comes with 5yrs of free carnet i guess. The app works on my phone, but i get the same exception:

2022-04-05 19:43:39 DEBUG (MainThread) [volkswagencarnet.vw_connection] Following redirect to "https://identity.vwgroup.io/signin-service/v1/consent/users/1f858ff3-2c9b-4776-8718-d60b987201fb/9496332b-ea03-4091-a224-8c746b885068@apps_vw-dilab_com?scopes=openid%20mbb%20profile%20cars%20address%20email%20birthdate%20nickname%20phone&relayState=57ec47a6312ac3db07e6d61297b8e5bc25c3e70a&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=312dfde9c0867b77942fe2b1e5ba3bcdac4d31acd24ad5d0587055dc8df9f548"
2022-04-05 19:43:39 DEBUG (Thread-4) [paho.mqtt.client] Sending PINGREQ
2022-04-05 19:43:39 DEBUG (Thread-4) [paho.mqtt.client] Received PINGRESP
2022-04-05 19:43:39 INFO (MainThread) [volkswagencarnet.vw_connection] Login failed, does this account have any vehicle with connect services enabled?
2022-04-05 19:43:39 DEBUG (MainThread) [volkswagencarnet.vw_connection] Exception occurred while logging in.
2022-04-05 19:43:39 ERROR (MainThread) [volkswagencarnet.vw_connection] Login failed for VW account, User appears unauthorized
2022-04-05 19:43:39 ERROR (MainThread) [volkswagencarnet.vw_connection] User appears unauthorized

Says i have Remote Access and DriveView enabled as services.

Any ideas?