evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.56k stars 659 forks source link

Peugeot vehicle-API failed mit Internal Server Error #12820

Closed Kubiac closed 8 months ago

Kubiac commented 8 months ago

Describe the bug

Bei meinen Eltern funktioniert jetzt schon länger nicht mehr die SOC-Abfrage bei ihrem Peugeot 208-e. In der Peugeot-App funktionieren die genutzten Anmeldedaten und es wird der SOC angezeigt.

Steps to reproduce

Wenn ich auf dem raspi evcc vehicle ausführe klappt es auch nicht und ich bekomme ich den unten stehenden Log-Output.

Configuration details

vehicles:
- type: template
  template: peugeot 
  title: Peugeot  
  icon: car  
  user: ***@gmail.com
  password: *****
  cache: 15m  
  mode: pv  
  minCurrent: 6  
  maxCurrent: 16
  capacity: 50  
  name: ev4

Log details

[main  ] INFO 2024/03/09 16:29:20 evcc 0.124.8
[main  ] INFO 2024/03/09 16:29:20 using config file: /etc/evcc.yaml
[db    ] INFO 2024/03/09 16:29:20 using sqlite database: /home/mporsch/.evcc/evcc.db
[main  ] ERROR 2024/03/09 16:29:21 creating vehicle ev4 failed: cannot create vehicle type 'template': cannot create vehicle type 'peugeot': login failed: oauth2: "server_error" "Internal Server Error"
.Soc:     vehicle not available: cannot create vehicle type 'template': cannot create vehicle type 'peugeot': login failed: oauth2: "server_error" "Internal Server Error"
Capacity: 50.0kWh
Features: [Offline]

What type of operating system are you running?

Linux

Version

0.124.8

andig commented 8 months ago

PSA hat das API geändert. Das neue ist uns nicht zugänglich.

fschaal commented 8 months ago

But the PSA controller fixed this using Oauth-flow and extracting the code. Why cant we use that with evcc?

andig commented 8 months ago

You can already use this via flobz. The process is too cumbersome for integrating in evcc.

fschaal commented 8 months ago

You can already use this via flobz. The process is too cumbersome for integrating in evcc.

I just found the psa controller vehicle workaround. Thanks!