evcc-io / evcc

Sonne tanken β˜€οΈπŸš˜
https://evcc.io
MIT License
3.41k stars 620 forks source link

Opel Corsa-e offline - Stellantis API - oauth2 fails #11687

Closed hlinden closed 8 months ago

hlinden commented 8 months ago

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: heresmy@mailadress.tld  
  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

andig commented 8 months ago

We cant help Stellantis ;)

hlinden commented 8 months ago

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?

flarno11 commented 8 months ago

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

atze09 commented 8 months ago

@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.

ThiemoSt commented 8 months ago

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

ThiloBaWue commented 8 months ago

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.

hlinden commented 8 months ago

@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"

MMA150475 commented 8 months ago

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

andig commented 8 months ago

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