EVCC bekommt keine Daten vom BMW - "cannot create vehicle..."
Ich habe einen BMW iX1 neu in der yaml hinzugefügt, das hcaptcha erstellt und evcc direkt gestartet. Benutzername und Passwort sind korrekt, Login per BMW App und Browser funktionieren. "BMW Car Data" habe ich im MyBMW-Portal aktiviert. Leider bekomme ich immer diese Fehlermeldung. Vielleicht kann mir jemand helfen.
[bmw ] DEBUG 2025/07/27 15:41:21 identity.Login - database token found [bmw ] DEBUG 2025/07/27 15:41:21 identity.Login - database token invalid. Proceeding to login via user, password and captcha. [main ] ERROR 2025/07/27 15:41:21 creating vehicle BMW failed: cannot create vehicle type 'template': cannot create vehicle type 'bmw': Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method): unexpected status: 401 (Unauthorized) BMW
.Soc: vehicle not available: cannot create vehicle type 'template': cannot create vehicle type 'bmw': Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method): unexpected status: 401 (Unauthorized) Capacity: 66.5kWh Features: [Offline Retryable]
Konfiguration (/etc/evcc.yaml)
# open evcc at http://evcc.local:7071
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7071
log: debug
levels:
cache: error
sponsortoken: *****
# unique installation id
plant: *****
interval: 15s # control cycle interval
meters:
- type: template
template: kostal-plenticore
id: 71
host: 10.40.0.11
port: 1502
usage: pv
modbus: tcpip
name: pv1
- type: template
template: kostal-plenticore
id: 71
host: 10.40.0.11
port: 1502
usage: battery
modbus: tcpip
name: battery2
- type: template
template: kostal-ksem-inverter
id: 71
host: 10.40.0.11
port: 1502
usage: grid
modbus: tcpip
name: grid3
chargers:
- type: template
template: daheimladen-mb
host: 10.40.0.194
port: 502
name: wallbox
vehicles:
- name: BMW
type: template
template: bmw
user: *****
password: *****
title: BMW iX1 # Titel, Wird in der Benutzeroberfläche angezeigt (optional)
capacity: 66.5 # Akkukapazität (kWh), optional
hcaptcha: *******
mode: pv
- name: TeslaY
type: template
template: tesla
title: Tesla Y # Wird in der Benutzeroberfläche angezeigt (optional)
clientId: **********
accessToken: *****
refreshToken: *****
vin: *****
capacity: 77 # Akkukapazität in kWh (optional)
mode: pv
loadpoints:
- title: Carport
charger: wallbox
mode: pv
site:
title: Jakobi
meters:
grid: grid3
pv:
- pv1
tariffs:
currency: EUR # (default EUR)
grid:
# static grid price
type: fixed
price: 0.2773 # [currency]/kWh
feedin:
# rate for feeding excess (pv) energy to the grid
type: fixed
price: 0.0758 # [currency]/kWh
Originally posted by @stefanjakobi in https://github.com/evcc-io/evcc/discussions/22558
Proceeding to login via user, password and captcha.
Dank BMW Captcha geht das leider nicht mehr. Alternativ HA oder io roker benutzen und bitte bei BMW beschweren.
Heißt das, dass die direkte Anbindung an BMW (wie hier beschrieben) generell nicht mehr geht und nur mehr der Weg über den ioBroker oder HomeAssistent funktioniert?
Heißt das, dass die direkte Anbindung an BMW (wie hier beschrieben) generell nicht mehr geht und nur mehr der Weg über den ioBroker oder HomeAssistent funktioniert?
Moin, so habe ich die Antwort verstanden... Zumindest kann ich sagen, dass es per Home Assistant einwandfrei funktioniert. Habe mir die Mühe gemacht, die evcc-Installation von meinem Mac mini auf HA umzuziehen (läuft virtuell auf meiner Synology), wenigstens hat sich die Mühe gelohnt. :-)
Hallo @stefanjakobi ,
nur zur Info (hat sich für dich wahrscheinlich eh' schon erledigt): hab' diese Woche meinen BMW i4 bekommen und ihn lt. Anleitung in der evcc Doku eingebunden - funktioniert bei mir.
Hallo @stefanjakobi ,
nur zur Info (hat sich für dich wahrscheinlich eh' schon erledigt): hab' diese Woche meinen BMW i4 bekommen und ihn lt. Anleitung in der evcc Doku eingebunden - funktioniert bei mir.
Hi m-milinovsky! Danke für die Info. Freut mich, dass es bei dir läuft! Drücke dir die Daumen, dass es dauerhaft funktioniert. Bei mir ging es ca. 24 Stunden, danach kam die "database token invalid"-Fehlermeldung und dann war vorbei.