TA2k / ioBroker.vw-connect

ioBroker Adapter for VW We connect and Skoda connect
MIT License
93 stars 23 forks source link

Cupra Born - Changed API #333

Open HHerrgesell opened 2 months ago

HHerrgesell commented 2 months ago

Describe the bug
The cupra Born API is no longer working for me. I've managed to fix it by changing API Version of the "seatcupra" API Type. See API at https://github.com/evcc-io/evcc/blob/master/vehicle/seat/cupra/api.go

To Reproduce
Steps to reproduce the behavior:

  1. Go to main.js
  2. Change "https://ola.prod.code.seat.cloud.vwgroup.com/v2/users/" to "https://ola.prod.code.seat.cloud.vwgroup.com/v5/users/"
  3. Change url = "https://ola.prod.code.seat.cloud.vwgroup.com/v1/users/" + this.seatcupraUser + "/garage/vehicles"; to url = "https://ola.prod.code.seat.cloud.vwgroup.com/v2/users/" + this.seatcupraUser + "/garage/vehicles";
  4. Restart adapter
  5. Seems to be working

Expected behavior
API Changes should be checked and adapter need an update Screenshots & Logfiles
If vehicle list API not changed, following error occours: {"timestamp":"2024-08-10T14:26:43.185656404Z","path":"/v1/users/xxxxx/garage/vehicles","status":404,"error":"Not Found","message":"No static resource v1/users/xxxxx/garage/vehicles.","requestId":"46b8333f-47086879"}

If vehicle list API changed but not the status API, the following error orrurs:

{"timestamp":"2024-08-10T14:46:30.452878440Z","path":"/v2/users/xxxxx/vehicles/VSSXXXXX/mycar","status":404,"error":"Not Found","message":"No static resource v2/users/xxxxx/vehicles/VSSXXXXX/mycar.","requestId":"a9e13888-47309263"}

If i Use Seat Cupra 2 as API, without any modification, the following occours: "{\"error\":\"invalid_grant\",\"error_description\":\"Unknown user xxxxx\"}"

Versions:

Dickschieder commented 1 month ago

hello @HHerrgesell Where do you get the 0.0.67 Version of the adapter? I tried with 0.0.6 and it had no effect on climatisation issue.

mcm1957 commented 1 month ago

Adapter is no longer listed at stable repository:

https://github.com/TA2k/ioBroker.vw-connect/issues/316

HHerrgesell commented 1 month ago

I'll try to Check the new Current (older Version), but im currenty Ill. It seems the Version was revoked i was using. Maybe i can find a fast fix for the old one

TbsBrggng commented 1 month ago

Hello everybody,

I am just wondering if this adapter will work for cupras again in future.

Beeing at version 0.6.0 I have no function.