evcc-io / evcc

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

Audi API broken #8352

Closed StefanRu1 closed 1 year ago

StefanRu1 commented 1 year ago

Describe the bug

I used evcc since 4 Weeks and it worked fine. But some days ago i did not get data from my vehicle anymore. It is a Audi A3 TFSIe.

I tried the Audi App and it works fine. I logged in to MyAudi and it works fine.

But evcc is returning: root@raspberrypi:~# evcc vehicle [main ] INFO 2023/06/07 21:14:08 evcc 0.117.4 [main ] INFO 2023/06/07 21:14:08 using config file: /etc/evcc.yaml [main ] ERROR 2023/06/07 21:14:10 creating vehicle ev5 failed: cannot create vehicle 'template': cannot create vehicle 'audi': cannot get vehicles: RS.security.9007: The context has not gained a legitimation due to missing access rights. .Soc: vehicle not available: cannot create vehicle 'template': cannot create vehicle 'audi': cannot get vehicles: RS.security.9007: The context has not gained a legitimation due to missing access rights. Capacity: 10.4kWh Features: [Offline]

I did not change anything in the config or in my account. I did not find another bugreport, anyone else having this problem with the Audi API?

Best regards, Stefan

Steps to reproduce

  1. Try to get data from an AUDI A3 TFSIe
  2. ...

Configuration details

vehicles:
- type: template
  template: audi 
  title: Audi A3 TFSIe  
  user: XXXXX@gmx.de
  password: XXXXX
  vin: WAUZZZXXXXXXXXX
  capacity: 10.4  
  phases: 1  
  icon: car  
  cache: 5m  
  mode: pv  
  minSoc: 0  
  targetSoc: 75  
  minCurrent: 1
  maxcurrent: 12
  name: ev5

Log details

evcc vehicle
[main  ] INFO 2023/06/07 21:14:08 evcc 0.117.4
[main  ] INFO 2023/06/07 21:14:08 using config file: /etc/evcc.yaml
[main  ] ERROR 2023/06/07 21:14:10 creating vehicle ev5 failed: cannot create vehicle 'template': cannot create vehicle 'audi': cannot get vehicles: RS.security.9007: The context has not gained a legitimation due to missing access rights.
.Soc:     vehicle not available: cannot create vehicle 'template': cannot create vehicle 'audi': cannot get vehicles: RS.security.9007: The context has not gained a legitimation due to missing access rights.
Capacity: 10.4kWh
Features: [Offline]

What type of operating system are you running?

Linux

Version

evcc version 0.117.4

andig commented 1 year ago

Depends on https://github.com/TA2k/ioBroker.vw-connect/issues/255

StefanRu1 commented 1 year ago

Ok thanks, the workaround is template: etron

Not type: etron as described.

Thanks and best regards, Stefan

andig commented 1 year ago

It is type etron if you dont use templates. They are just a way of making the types accessible for

evcc configure

underneath, its all types…

StefanRu1 commented 1 year ago

Ah, ok i see. Thanks, works with type etron fine again.

fxfxfx666 commented 1 year ago

I have the same issue with BMW after the last update to v0.117.4: image image

andig commented 1 year ago

@fxfxfx666 your error message is totally different, please open new discussion.