TA2k / ioBroker.vw-connect

ioBroker Adapter for VW We connect and Skoda connect
MIT License
92 stars 22 forks source link

Skoda Enyaq connect not possible after API change on VW's side #329

Open astrakid opened 3 months ago

astrakid commented 3 months ago

Describe the bug
connect to skoda enyaq not possible for newly registered cars (which are located on skoda's new platform). formerly registered cars won't be able to connect via api from mid of july.

To Reproduce
connect to a newly registered skoda enyaq.

Expected behavior
get car information

Screenshots & Logfiles
vw-connect.0 2024-06-10 12:01:22.272 info Found 0 vehicles vw-connect.0 2024-06-10 12:01:22.272 debug {"vehicles":[]} vw-connect.0 2024-06-10 12:01:22.147 silly States user redis pmessage vw-connect.0./vw-connect.0.info.connection:{"val":true,"ack":true,"ts":1718013682146,"q":0,"from":"system.adapter.vw-connect.0","user":"system.user.admin","lc":1718013682146} vw-connect.0 2024-06-10 12:01:22.141 info Login successful vw-connect.0 2024-06-10 12:01:21.917 debug Error: Invalid protocol: skodaconnect: vw-connect.0 2024-06-10 12:01:21.344 debug {"date":"Mon, 10 Jun 2024 10:01:21 GMT","content-length":"0","connection":"close","apigw-requestid":"ZJxxxxxxxxxxxxw=","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers","x-content-type-options":"nosniff","x-xss-protection":"0","cache-control":"no-cache, no-store, max-age=0, must-revalidate","pragma":"no-cache","expires":"0","strict-transport-security":"max-age=31536000; includeSubDomains; preload","x-frame-options":"DENY","location":"https://identity.vwgroup.io/oidc/v1/oauth/sso?clientId=fxxxxxxa-bxx6-4xx9-bxxc-dbxxxxxxxx17@apps_vw-dilab_com&relayState=ceb8406f2b31d79b731db1bf49d046bd3fec7c76&userId=cxxxxxxd-3xx4-4xx1-xxx7-bxxx09c3fd6e&HMAC=fcda3cxxxxxxxxxxxxxxxxxxxxxxxx8baa5b7fc05528f37","content-language":"en-US"} vw-connect.0 2024-06-10 12:01:21.344 debug "" vw-connect.0 2024-06-10 12:01:21.037 debug emailPasswordForm2 vw-connect.0 2024-06-10 12:01:20.834 debug parseEmailForm vw-connect.0 2024-06-10 12:01:20.620 silly States user redis pmessage vw-connect.0./vw-connect.0.info.connection:{"val":false,"ack":true,"ts":1718013680617,"q":0,"from":"system.adapter.vw-connect.0","user":"system.user.admin","lc":1718013660406} vw-connect.0 2024-06-10 12:01:20.614 silly States system redis pmessage system.adapter.vw-connect.0.logLevel/system.adapter.vw-connect.0.logLevel:{"val":"silly","ack":true,"ts":1718013680580,"q":0,"from":"system.adapter.vw-connect.0","lc":1718013608376} vw-connect.0 2024-06-10 12:01:20.557 info Login in with skodae vw-connect.0 2024-06-10 12:01:20.547 info starting. Version 0.6.0 (non-npm: TA2k/ioBroker.vw-connect) in /opt/iobroker/node_modules/iobroker.vw-connect, node: v18.20.3, js-controller: 5.0.19 vw-connect.0 2024-06-10 12:01:20.425 debug Plugin sentry Initialize Plugin (enabled=true)

Versions:
latest and even github version the rest is on the latest release in docker container.

Additional context
there has been some adaptions made on evcc side. maybe that helps: https://github.com/evcc-io/evcc/pull/14186

TA2k commented 3 months ago

Need a login to test this tombox2020@gmail.com

astrakid commented 3 months ago

sent login by mail

martijnpoppen commented 2 months ago

@TA2k Any update on this? 🙈

daniele2209 commented 2 months ago

Hello, the EVCC project was able to solve the issue. Maybe it helps (and speeds up) the development if i link here the GITHUB change for EVCC. EVCC Cupra fix

Daniel

maddon commented 1 month ago

I can confirm this. In evcc, i am able to add my enyaq again, vw-connect shows {"vehicles":[]}

Bad-old-Esloe commented 1 month ago

Hello, that sounds very good. What exactly do I have to do so that my Skoda Enyqa can be integrated into the iobroker vw-connect adapter? Unfortunately I don't have much idea about the whole thing? Can someone help me with what steps I need to take? Thank you very much

astrakid commented 1 month ago

Maddon wrote, that it is still not working in iobroker - car list is empty.

chriz77 commented 1 month ago

Hi @TA2k Is there an update on this? My problem is, that the openWB plugin is also not working.

Smart-Gang commented 4 days ago

I changed v3 to v4 in line 1855 in main.js as a test and then I was indeed able to load the vehicle data.

https://github.com/TA2k/ioBroker.vw-connect/blob/1bea7002b834d672f998717c2232223d4d1d13af/main.js#L1855

astrakid commented 4 days ago

i can confirm it!

chriz77 commented 4 days ago

Wooooooooooot!!! I can also confirm!

Bad-old-Esloe commented 3 days ago

I can also confirm!