ioBroker.vw-connect icon indicating copy to clipboard operation
ioBroker.vw-connect copied to clipboard

Cupra Born - Changed API

Open HHerrgesell opened this issue 6 months ago • 4 comments

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:

  • Adapter version: 0.0.67
  • JS-Controller version: 5.0.19
  • Node version: v18.20.3
  • Operating system: Debian 12

HHerrgesell avatar Aug 10 '24 15:08 HHerrgesell