evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Opel Corsa-e offline - Stellantis API - oauth2 fails

Open hlinden opened this issue 2 years ago • 9 comments

Describe the bug

Currently, my Opel Corsa-e is marked as offline. It seems that something around the OAuth process fails on Stellantis' side.

Steps to reproduce

  1. own an Opel Corsa-e
  2. configure it in evcc as documented
  3. notice the error message on startup

Configuration details

[...]
vehicles:
- type: template
  template: opel 
  title: Corsa  
  user: [email protected]  
  password: <removed>  
  vin: VXKUHZKXZL<shortened>  
  capacity: 42  
  phases: 3  
  icon: car  
  cache: 15m  
  mode: pv
  minCurrent: 6  
  maxCurrent: 16  
  name: ev1
[...]

Log details

[main  ] INFO 2024/01/14 19:55:31 evcc 0.123.8
[main  ] INFO 2024/01/14 19:55:31 using config file: /config/evcc.yaml
[main  ] INFO 2024/01/14 19:55:31 starting ui and api at :7070
[db    ] INFO 2024/01/14 19:55:32 using sqlite database: /data/evcc.db
[main  ] ERROR 2024/01/14 19:55:32 creating vehicle ev1 failed: cannot create vehicle type 'template': cannot create vehicle type 'opel': login failed: oauth2: "server_error" "Internal Server Error"
[site  ] WARN 2024/01/14 19:55:36 vehicle 'Corsa (offline)' does not support automatic detection
[...]
[site  ] INFO 2024/01/14 19:55:36   vehicles:
[site  ] INFO 2024/01/14 19:55:36     vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[site  ] INFO 2024/01/14 19:55:36     vehicle 2: range ✓ finish ✓ status ✓ climate ✓ wakeup ✗
[...]

What type of operating system are you running?

HomeAssistant Add-on

Version

0.123.8

hlinden avatar Jan 14 '24 19:01 hlinden

We cant help Stellantis ;)

andig avatar Jan 14 '24 19:01 andig

I know, but is it possible that something about their API changed a while ago and EVCC kept using the old whateveritwas until it finally broke now?

hlinden avatar Jan 14 '24 19:01 hlinden

Are there any more insights why Stellantis doesn't work and how it is different to the Opel template?

flarno11 avatar Jan 16 '24 13:01 flarno11

@hlinden @flarno11 is it working for you? For me it is not working in EVCC, but Flobz Server in Home Assistant and also Opel app is working again.

atze09 avatar Jan 16 '24 15:01 atze09

I have the same problem with an Opel Mokka-e.

ThiemoSt avatar Jan 16 '24 16:01 ThiemoSt

The "my.opel" was on server maintenance since Friday 12.01.24 till today 16.01.24. I checked the my.opel webpage with the browser, and as is said there was an info of an working process. Today i recognized that the app is different, and at afternoon the "my.opel"-Website is now reachable. But after login, which succeeded, there was a message that the server has moved and i should update my bookmark in the browser. I tried evcc if it connects to the server, but the server error persists. I think, they changed something bigger. Probably the evcc code needs to be changed. I hope the Target-Charging works again in the near future.

ThiloBaWue avatar Jan 16 '24 18:01 ThiloBaWue

@hlinden @flarno11 is it working for you? For me it is not working in EVCC, but Flobz Server in Home Assistant and also Opel app is working again.

Same. Opel app works again, EVCC still gives up with...

[main ] ERROR 2024/01/17 09:50:48 creating vehicle ev1 failed: cannot create vehicle type 'template': cannot create vehicle type 'opel': login failed: oauth2: "server_error" "Internal Server Error"

hlinden avatar Jan 17 '24 09:01 hlinden

Same here - Opel Mokka is not recognized, but accessible via the App.

MMA150475 avatar Jan 24 '24 07:01 MMA150475

Siehe https://github.com/evcc-io/evcc/issues/11735

andig avatar Jan 24 '24 07:01 andig