ioBroker.vw-connect
ioBroker.vw-connect copied to clipboard
Cupra Born - Changed API
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:
- Go to main.js
- Change
"https://ola.prod.code.seat.cloud.vwgroup.com/v2/users/"
to"https://ola.prod.code.seat.cloud.vwgroup.com/v5/users/"
- Change
url = "https://ola.prod.code.seat.cloud.vwgroup.com/v1/users/" + this.seatcupraUser + "/garage/vehicles";
tourl = "https://ola.prod.code.seat.cloud.vwgroup.com/v2/users/" + this.seatcupraUser + "/garage/vehicles";
- Restart adapter
- 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