Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cupra Born - Changed API #333

Open
HHerrgesell opened this issue Aug 10, 2024 · 4 comments
Open

Cupra Born - Changed API #333

HHerrgesell opened this issue Aug 10, 2024 · 4 comments

Comments

@HHerrgesell
Copy link

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
@Dickschieder
Copy link

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
Copy link

mcm1957 commented Sep 11, 2024

Adapter is no longer listed at stable repository:

#316

@HHerrgesell
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants