evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Cardata: Fahrzeug offline - cannot create vehicle... missing token credentials.

Open stefanjakobi opened this issue 1 year ago • 5 comments

Describe the bug

Habe den CarData Client bei BMW erstellt, die Schalter "API Zugriff" und "Stream" aktiviert, danach in EVCC auf den Authorisierungsstatus geklickt. BMW-Seite mit Erfolgsmeldung ist erschienen, Anzeige in EVCC ist nun grün. Beim Versuch, ein neues Fahrzeug mit Hersteller "BMW Car Data" anzulegen, erscheint immer folgende Fehlermeldung:

cannot create vehicle type 'template': cannot create vehicle type 'cardata': cannot get vehicles: Get "https://api-cardata.bmwgroup.com/customers/vehicles/mappings": missing token credentials_

Cardata Streaming habe ich auf der BMW-Seite mit den genannten Datenpunkten aktiviert und wird bei BMW als "ready" angezeigt. Das Anlegend des neuen Fahrzeugs hat weder davor noch danach funktioniert.

Steps to reproduce

...

Configuration details

leer weil per UI konfiguriert

Log details

Request failed with status code 400.
cannot create vehicle type 'template': cannot create vehicle type 'cardata': cannot get vehicles: Get "https://api-cardata.bmwgroup.com/customers/vehicles/mappings": missing token credentials.
POST http://192.168.178.192:7070/api/config/devices/vehicle

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

stefanjakobi avatar Oct 05 '25 16:10 stefanjakobi

This is currently a limitation of the config UI. Use yaml config as workaround.

andig avatar Oct 05 '25 17:10 andig

Danke, so konnte ich das Fahrzeug anlegen, ist aber leider offline. Log gibt die gleiche Fehlermeldung wie zuvor beim anlegen aus:

[main ] INFO 2025/10/05 19:26:52 evcc 0.209.0 [main ] INFO 2025/10/05 19:26:52 using config file: /config/evcc.yaml [db ] INFO 2025/10/05 19:26:52 using sqlite database: /data/evcc.db [main ] INFO 2025/10/05 19:26:52 UI listening at :7070 [main ] ERROR 2025/10/05 19:26:52 creating vehicle BMW failed: cannot create vehicle type 'template': cannot create vehicle type 'cardata': cannot get vehicles: Get "https://api-cardata.bmwgroup.com/customers/vehicles/mappings": missing token credentials [lp-1 ] INFO 2025/10/05 19:26:54 car disconnected

Autorisierungsstatus im Menü ist grün. Kann man den Datenabruf irgendwie anstoßen?

stefanjakobi avatar Oct 05 '25 17:10 stefanjakobi

Einfach mal neustarten

andig avatar Oct 05 '25 17:10 andig

Auch nach mehreren Neustarts von evcc und Home Assistant keine Veränderung. Fahrzeug ist offline und das Log sagt immer noch:

[main ] ERROR 2025/10/05 20:03:42 creating vehicle BMW failed: cannot create vehicle type 'template': cannot create vehicle type 'cardata': cannot get vehicles: Get "https://api-cardata.bmwgroup.com/customers/vehicles/mappings": missing token credentials

Kommen da keine Daten von BMW und ich warte einfach mal ab, wie es morgen aussieht? Ich kann mit "missing token credentials" nichts anfangen und habe daher leider keine Idee, wo ich nach dem Fehler suchen muss.

stefanjakobi avatar Oct 05 '25 18:10 stefanjakobi

Closed in 97567762caaac79adc7d11aa6b919293cdf30ca1

andig avatar Oct 05 '25 20:10 andig