evcc icon indicating copy to clipboard operation
evcc copied to clipboard

BMW Cardata Autorisierung schlägt fehl, Fahrzeug offline

Open stefanjakobi opened this issue 1 year ago • 0 comments

Description

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, das "Lämpchen" bleibt aber orange. Folgende Fehlermeldungen erscheinen direkt nach dem Klick auf den Autorisierungsstatus im Menü:

http: superfluous response.WriteHeader call from github.com/gorilla/handlers.(*compressResponseWriter).WriteHeader (compress.go:26)

error retrieving token: oauth2: "invalid_grant" "The provided access grant is invalid, expired, or revoked.\

Cardata Streaming habe ich auf der BMW-Seite mit den genannten Datenpunkten aktiviert und wird bei BMW als "ready" angezeigt. Mehrere Neustarts von evcc und Home Assistant haben nichts geändert. Client ID habe ich kontrolliert, ist korrekt.

Steps to Reproduce

Car Data bei BMW zurückgesetzt, alles von vorne mit neuer Client ID. Brachte keinen Erfolg.

Configuration (YAML)

vehicles:
  - name: BMW
    type: template
    template: cardata
    title: BMW iX1 # Titel, Wird in der Benutzeroberfläche angezeigt (optional)
    capacity: 64.7 # Akkukapazität (kWh), optional
    vin: *****
    clientid: xxxxxxxxxxxxxxxxx # Client ID

Configuration (UI)

{
  "site": {
    "title": "evcc Jakobi",
    "grid": "db:3",
    "pv": ["db:4"],
    "battery": null,
    "aux": null,
    "ext": null
  },
  "loadpoints": [
    {"id":2,"name":"db:2","charger":"db:8","title":"Carport","defaultMode":"minpv","priority":0,"phasesConfigured":3,"minCurrent":6,"maxCurrent":16,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"planEnergy":0,"planTime":"0001-01-01T00:00:00Z","planPrecondition":0,"limitEnergy":0,"limitSoc":0,"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true}}
  ],
  "charger": [
    {"config":{"host":"10.40.0.194","port":"502","template":"daheimladen-mb"},"deviceProduct":"DaheimLaden Smart/Touch","id":8,"name":"db:8","type":"template"}
  ],
  "meter": [
    {"config":{"host":"10.40.0.11","id":71,"modbus":"tcpip","port":1502,"template":"kostal-ksem-inverter","usage":"grid"},"deviceProduct":"Kostal Smart Energy Meter (über den Wechselrichter)","id":3,"name":"db:3","type":"template"},
    {"config":{"endianness":"little","host":"10.40.0.11","id":71,"maxacpower":"0","modbus":"tcpip","port":1502,"template":"kostal-plenticore","usage":"pv","watchdog":"60s"},"deviceProduct":"Kostal Plenticore Hybrid","deviceTitle":"PV-Anlage","id":4,"name":"db:4","type":"template"}
  ],
  "vehicle": [
    {"config":{"accessToken":"***","cache":"15m","capacity":77,"clientId":"58c3979c-abcc-4906-b1ce-8c11914055d0","commandProxy":"https://api.myteslamate.com","icon":"taxi","mode":"pv","phases":"","refreshToken":"***","template":"tesla","title":"Tesla Y"},"deviceProduct":"Tesla","id":6,"name":"db:6","type":"template"}
  ],
  "tariffs": "currency: EUR

grid: # price using energy from the grid
  type: fixed
  price: 0.2773 # EUR/kWh

feedin: # price for feeding solar energy to the grid
  type: fixed
  price: 0.0758 # EUR/kWh

#co2: # carbon intensity forecast
#  type: template
#  template: grünstromindex
#  zip: 68526

#solar: # list of pv generation forecast (additive)
#- type: template
#  template: solcast
#  site: <site>
#  token: <token>"
}

Logs

[lp-1  ] DEBUG 2025/10/06 17:56:57 charger status: B
[site  ] DEBUG 2025/10/06 17:57:17 ----
[lp-1  ] DEBUG 2025/10/06 17:57:17 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:57:17 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:57:17 grid power: 1019W
[site  ] DEBUG 2025/10/06 17:57:17 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 17:57:18 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:56:57 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:57:18 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:57:18 site power: 1119W
[lp-1  ] DEBUG 2025/10/06 17:57:18 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:57:18 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:57:18 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:57:18 charger status: B
[site  ] DEBUG 2025/10/06 17:57:37 ----
[lp-1  ] DEBUG 2025/10/06 17:57:37 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:57:37 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:57:37 grid power: 1028W
[site  ] DEBUG 2025/10/06 17:57:37 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 17:57:37 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:57:18 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:57:37 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:57:37 site power: 1128W
[lp-1  ] DEBUG 2025/10/06 17:57:37 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:57:37 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:57:37 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:57:37 charger status: B
[providerauth] DEBUG 2025/10/06 17:57:50 login request for: BMW/Mini CarData (c1b44154)
[httpd ] ERROR 2025/10/06 17:57:51 http: superfluous response.WriteHeader call from github.com/gorilla/handlers.(*compressResponseWriter).WriteHeader (compress.go:26)
[site  ] DEBUG 2025/10/06 17:57:57 ----
[lp-1  ] DEBUG 2025/10/06 17:57:57 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:57:57 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:57:57 grid power: 1020W
[site  ] DEBUG 2025/10/06 17:57:57 pv 1 power: 36W
[site  ] DEBUG 2025/10/06 17:57:57 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:57:37 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:57:57 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:57:57 site power: 1120W
[lp-1  ] DEBUG 2025/10/06 17:57:57 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:57:57 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:57:57 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:57:57 charger status: B
[oauth-c1b44154] ERROR 2025/10/06 17:57:59 error retrieving token: oauth2: "invalid_grant" "The provided access grant is invalid, expired, or revoked."
[site  ] DEBUG 2025/10/06 17:58:17 ----
[lp-1  ] DEBUG 2025/10/06 17:58:17 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:58:17 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:58:17 grid power: 1018W
[site  ] DEBUG 2025/10/06 17:58:17 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 17:58:17 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:57:57 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:58:17 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:58:17 site power: 1118W
[lp-1  ] DEBUG 2025/10/06 17:58:17 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:58:17 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:58:17 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:58:17 charger status: B
[site  ] DEBUG 2025/10/06 17:58:37 ----
[lp-1  ] DEBUG 2025/10/06 17:58:37 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:58:37 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:58:37 grid power: 1031W
[site  ] DEBUG 2025/10/06 17:58:37 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 17:58:37 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:58:17 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:58:37 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:58:37 site power: 1131W
[lp-1  ] DEBUG 2025/10/06 17:58:37 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:58:37 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:58:37 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:58:37 charger status: B
[site  ] DEBUG 2025/10/06 17:58:57 ----
[lp-1  ] DEBUG 2025/10/06 17:58:57 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:58:57 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:58:57 grid power: 1047W
[site  ] DEBUG 2025/10/06 17:58:57 pv 1 power: 34W
[site  ] DEBUG 2025/10/06 17:58:58 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:58:37 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:58:58 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:58:58 site power: 1147W
[lp-1  ] DEBUG 2025/10/06 17:58:58 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:58:58 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:58:58 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:58:58 charger status: B
[site  ] DEBUG 2025/10/06 17:59:17 ----
[lp-1  ] DEBUG 2025/10/06 17:59:17 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:59:17 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:59:17 grid power: 964W
[site  ] DEBUG 2025/10/06 17:59:17 pv 1 power: 34W
[site  ] DEBUG 2025/10/06 17:59:17 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:58:58 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:59:17 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:59:17 site power: 1064W
[lp-1  ] DEBUG 2025/10/06 17:59:17 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:59:17 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:59:17 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:59:17 charger status: B
[site  ] DEBUG 2025/10/06 17:59:37 ----
[lp-1  ] DEBUG 2025/10/06 17:59:37 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:59:37 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:59:37 grid power: 952W
[site  ] DEBUG 2025/10/06 17:59:37 pv 1 power: 36W
[site  ] DEBUG 2025/10/06 17:59:37 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:59:17 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:59:37 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:59:37 site power: 1052W
[lp-1  ] DEBUG 2025/10/06 17:59:37 charge voltages: [235 237 238]V
[lp-1  ] DEBUG 2025/10/06 17:59:37 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:59:37 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:59:37 charger status: B
[site  ] DEBUG 2025/10/06 17:59:57 ----
[lp-1  ] DEBUG 2025/10/06 17:59:57 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 17:59:57 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 17:59:57 grid power: 935W
[site  ] DEBUG 2025/10/06 17:59:57 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 17:59:57 !! solar production: accumulate set db:4 43322.505kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:59:37 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 17:59:57 !! solar production: accumulate moved db:4 from 0.057 to 0.057
[site  ] DEBUG 2025/10/06 17:59:57 site power: 1035W
[lp-1  ] DEBUG 2025/10/06 17:59:57 charge voltages: [235 238 238]V
[lp-1  ] DEBUG 2025/10/06 17:59:57 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 17:59:57 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 17:59:57 charger status: B
[site  ] DEBUG 2025/10/06 18:00:17 ----
[lp-1  ] DEBUG 2025/10/06 18:00:17 charge power: 0W
[lp-1  ] DEBUG 2025/10/06 18:00:17 charge currents: [0 0 0]A
[site  ] DEBUG 2025/10/06 18:00:17 grid power: 922W
[site  ] DEBUG 2025/10/06 18:00:17 pv 1 power: 35W
[site  ] DEBUG 2025/10/06 18:00:17 !! solar production: accumulate set db:4 43322.506kWh meter total (was: Accumulated: 0.057kWh updated: 2025-10-06 17:59:57 +0200 CEST meter: 43322.505kWh)
[site  ] DEBUG 2025/10/06 18:00:17 !! solar production: accumulate moved db:4 from 0.057 to 0.058
[site  ] DEBUG 2025/10/06 18:00:17 site power: 1022W
[site  ] DEBUG 2025/10/06 18:00:17 15min household consumption: 0Wh
[lp-1  ] DEBUG 2025/10/06 18:00:17 charge voltages: [235 238 238]V
[lp-1  ] DEBUG 2025/10/06 18:00:17 detected connected phases: 3p
[lp-1  ] DEBUG 2025/10/06 18:00:17 charge total import: 6951.500kWh
[lp-1  ] DEBUG 2025/10/06 18:00:18 charger status: B

Version

v0.209.0

stefanjakobi avatar Oct 06 '25 16:10 stefanjakobi