Cupra integration failed
Describe the bug
Hi all, today I saw that the Cupra integration failed.
Might be connected to the overall change in VWG API access?
https://www.gridio.io/blog/official-smart-charging-for-vw-group-cars-is-now-fully-launched
Will it still be usable with EVCC in the future?
Steps to reproduce
...
Configuration details
-
Log details
cannot create vehicle type 'template': cannot create vehicle type 'cupra': cannot get vehicles: unexpected status: 403 (Forbidden) GET https://ola.prod.code.seat.cloud.vwgroup.com/v2/users/.../garage/vehicles
What type of operating system or environment does evcc run on?
HomeAssistant Add-on
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
No response
VW Group has now shut down that unofficial access. Going forward, only providers with official API partnerships can offer smart charging for VW Group cars.
Quite possible. See https://github.com/evcc-io/evcc/discussions/23684 and demand your rights!
Is the API switched off only for Cupra or is it switched off for the whole VW Group?
Is the API switched off only for Cupra or is it switched off for the whole VW Group?
At least the core brands, meaning VW, Skoda, Seat and Cupra
Same for our Cupra Tavascan. So I'll sign the petition again - but for my wife ;)
@andig - did I get it right, that this was also the reason for KIA to switch to a token based auth?
If yes, can you somehow adapt this "token-feature" that you introduce for KIA vehicles? Because somebody has written a wonderful tool to easily extract this token and add it to the configuration. After that, everything runs fine (until the token will be refreshed for sure!)
BTW: What can be a workaround?? Currently my wife got the cupra and I cant check, what an impact this change will have!
Well. Nice bomb they placed for today. The clean solution would be: how to obtain a „partnership API Access“ with the new API?
There are tons of company’s which get this API access like all these energy suppliers which give you benefit if they are allowed to control the charging in your car.
What will be the reason, that open source projects don‘t get such a partnership API access? Probably money. 😩
I cant check, what an impact this change will have!
Back to the Stone Age and enter the current soc manually in evcc. ;)
ohhh damn. Same issue why TIBBER deprecated KIA as supported vehicle (they'Re not able to handle the token-solution) and they said "That this isnt a big deal, I JUST need to set the SoC manually everytime I want to charge... "JUST" -- really??
Setting the SoC manually on a daily basis is like using a fax today...... disgusting! Hopefully evcc-devs can find a solution such like the one for KIA!! All fingers crossed!
ohhh damn. Same issue why TIBBER deprecated KIA as supported vehicle (they'Re not able to handle the token-solution) and they said "That this isnt a big deal, I JUST need to set the SoC manually everytime I want to charge... "JUST" -- really??
Setting the SoC manually on a daily basis is like using a fax today...... disgusting! Hopefully evcc-devs can find a solution such like the one for KIA!! All fingers crossed!
And I was wondering when I looked in my tibber app today that suddenly Cupra was supported for smart charging, just logged in and everything is synced in seconds.
Hmm… it seems getting access to an official API partnership is not that easy. Perhaps we will have to use an data broker like SmartCar, High Mobility…
Then we MIGHT be lucky that there is only a change in the API. The error indicates smth with the GET-call. So imho there is a small chance, that the vw-group just changed some basic stuff in the API and evcc just need to update on their side. Because some months ago, when KIA sends this tremendous middle finger to his customers, both - EVCC and Tibber stopped working (which was obvious)
Tibber already made an offical statement. And if they dont did it know in terms of vw-group, I'm still optimistic
https://status.tibber.com/incidents/6pc5s8w1f7hh
Hmm… it seems getting access to an official API partnership is not that easy. Perhaps we will have to use an data broker like SmartCar, High Mobility…
Imho there is no need for offical API as long as the token is the solution and there is a tool (like I found here for KIA) that analysis the payload of the API to simply gather the token ;) Is it comfortable, for sure not - especially when the token will be refreshed every 90 days by the servers. But the other solution would be a manual set of the SoC - and this a complete new level of bullshit in terms of handling your vehicle charges. Thanks to all the car companies unable to get their stuff working!
I cannot use the official Cupra app too btw. When opening the app it prompts to register my car again. Doing that results in an error.
The Homeassistant Cupra integration got it fixed and working again:
https://github.com/WulfgarW/homeassistant-pycupra/issues/89#issuecomment-4498745226
So it doesn’t seem to be a big issue. Until VW changes the next thing. He simply added
app_market: android
to the Header. That’s all.
Pls test PR
Pls test PR
How?
Pls test PR
How?
It's not a task for you. As far as I can see, andig already got the fix and therefor he made a PR = Pull request. This can be found here: https://github.com/evcc-io/evcc/pull/30047 As soon as this fix is tested and verified, it will be merged to the next branch and we'll have fix ;)
As soon as this fix is tested and verified
That's the whole point. Pls test.
@andig - Then I dont get it. In my (only user) world, a fix is merged to a new version of the app (maybe beta-channel), so that I can install it, test it and give a feedback. But with your explanation (and the fact, that I didnt see any new version of EVCC to install) I dont get it how we (as "just users") can apply the fix and test/verify it.
So if you want me want to test me something you must be more precise WHAT I need to apply at WHAT place in WHAT condition. And due to the fact that i choosed the installation via Docker Compose (and cant manipulate a configuration file or anything else) I guess, I need even more information. I'm not a developer. In most cases I need a step-by-step guide to achieve such goals. Otherwise I cant help here :(
@andig - Then I dont get it. In my (only user) world, a fix is merged to a new version of the app (maybe beta-channel), so that I can install it, test it and give a feedback. But with your explanation (and the fact, that I didnt see any new version of EVCC to install) I dont get it how we (as "just users") can apply the fix and test/verify it.
So if you want me want to test me something you must be more precise WHAT I need to apply at WHAT place in WHAT condition. And due to the fact that i choosed the installation via Docker Compose (and cant manipulate a configuration file or anything else) I guess, I need even more information. I'm not a developer. In most cases I need a step-by-step guide to achieve such goals. Otherwise I cant help here :(
That's waht I wanted to say; what must I do to test the fix? Willing to do but need to know how.