SOC BMW

Alles rund um SoC (Ladezustand des Fahrzeuges). Probleme, Fragen, Fehlfunktionen gehören hier hin
rleidner
Beiträge: 1142
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 9 times
Been thanked: 62 times

Re: SOC BMW

Beitrag von rleidner »

heidanei hat geschrieben: Fr Feb 07, 2025 10:53 am Ich muss auch regelmäßig für meine Fahrzeuge die Tokens erneuern, interessanterweise beim 1. Fzg. (i3) wesentlich öfters (etwa 1x pro Woche) als beim zweiten (iX1, "gefühlt" etwa alle 2 Wochen). Immerhin klappt das erste Anmelden mit dem neuen Token jetzt problemlos, wenn man dafür kurz die Berechnung abschaltet. Ich kann mit dem Modul leben wie es ist. Cool wäre es, wenn es möglich wäre dass durch Druck auf den Update-Button immer eine Online-Abfrage gemacht wird (auch während des Ladevorgangs), auch wenn in den Einstellungen während des Ladens Berechnung eingestellt ist. Aber ob das Modul aus der Regelschleife oder über den Update-Button angezogen wird bekommt das Modul nicht mit, oder?

Viele Grüße und wieder mal Danke @rleidner! :D

heidanei
Danke für die Info. Seltsam, dass doch immer noch regelmäßige Anmeldungen nötig sind.
Ich habe eine weitere Änderung vorbereitet, die das Verhalten des HA-Adapters besser nachbilden wird. Das sollte in wenigen Tagen einen PR ergeben.

Auf die Reaktion nach Update-Button ob Abfragen oder Berechnung hat das Modul selbst m.W. keinen Einfluss.
Vielleicht kann einer der Core - Entwickler was dazu sagen.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
tomtom69
Beiträge: 25
Registriert: Mi Apr 24, 2024 7:10 am
Has thanked: 2 times

Re: SOC BMW

Beitrag von tomtom69 »

Hallo,

Nur für den Fall, dass es bei anderen auch zeitgleich war:
Bei mir ist auch der SoC ausgefallen, allerdings schon am Mittwoch (5.2., gegen 10:40). Im Log stand im Wesentlichen das hier:

---
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io ... ptcha.html
2025-02-05 10:41:38,802 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev0} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-05 10:41:38,881 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: requestData Error, vnum: 0 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io ... ptcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-05 10:41:38,893 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io ... ptcha.html',), Traceback:
---

Mit einem neuen Token gings dann aber gleich wieder. :-)
Software ist 2.1.7-rc1.

Tom
rleidner
Beiträge: 1142
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 9 times
Been thanked: 62 times

Re: SOC BMW

Beitrag von rleidner »

Danke für das Log.
Grundsätzlich gibt es hier 3 wesentliche token: captcha-, refresh- und access-token.
Zu Beginn gibt es keinen token und der User löst das captcha und bekommt das captcha-token.
Das captcha-token ist nur wenige Minuten gültig und kann nur einmal benutzt werden.
Mit userid, password und captcha-token werden refresh- und access-token geholt.
Das access-token hat eine Gültigkeit von wenigen Stunden, das refresh-token ist länger gültig.
Diese access- und refresh-token werden vom SoC-Modul gespeichert.
Das access-token wird benutzt um die Fahrzeugdaten vom CD-Server abzurufen.
Wenn das access-token abgelaufen ist, wird das refresh-token benutzt, um access- und refresh-token zu erneuern.
Das alte refresh-token wird damit ungültig.
Es gibt wohl Situationen, wo das Refresh schief geht und bimmer_connected versucht als Fallback ein neues Login mit userid, password und captcha-token um neue access- und refresh-token zu holen.
Zu diesem Zeitpunkt gibt es aber kein gültiges captcha-token, da dieses nur wenige Minuten gültig ist.
Das besagt obige Fehlermeldung.

Die Frage ist, warum der Refresh in bestimmten Situationen schief geht.
Der gesamte Ablauf wird weitgehend vom bimmer-connected Modul erledigt.
Das SoC-Modul stellt "nur" die Parameter/token, etc. bereit.
Die Parameter werden bei mehreren Fahrzeugen getrennt verwaltet.
Jedes konfigurierte SoC-Modul verhält sich dabei wie eine App auf einem Mobiltelefon.

Ich habe den Refresh-Fehler in meiner Umgebung bisher nur einmal im Dezember gesehen in einer sehr frühen Version des SoC-Moduls.
Daher bin ich darauf angewiesen, durch Beobachtungen der User hier im Thread mehr Hinweise zu bekommen.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
tomtom69
Beiträge: 25
Registriert: Mi Apr 24, 2024 7:10 am
Has thanked: 2 times

Re: SOC BMW

Beitrag von tomtom69 »

Hallo,

Danke für die ausführliche Erklärung :-)
Es bringt dann eigentlich gar nichts, das Captcha-Token als solches in der Config zu speichern, wenn das eh so schnell ungültig wird.
An die beiden anderen Tokens komme ich wahrscheinlich nicht so leicht ran, um per curl/wget o.ä. etwas zu debuggen, also z.B. manuell eine Erneuerung zu versuchen, wenn das in dem Modul fehlschlägt (ich habe eine Kauf-OpenWB, also keinen ssh Zugang). Oder werden die beim Logging im Debug-Level mit ausgegeben?
Die App habe ich nicht - wie ist das eigentlich dort dann gelöst? Ich vermute mal nicht, dass man da regelmäßig ein Captcha lösen muss o.ä., nur um mit der App weiterhin an die Daten zu kommen.

Tom
rleidner
Beiträge: 1142
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 9 times
Been thanked: 62 times

Re: SOC BMW

Beitrag von rleidner »

tomtom69 hat geschrieben: Fr Feb 07, 2025 7:13 pm Es bringt dann eigentlich gar nichts, das Captcha-Token als solches in der Config zu speichern, wenn das eh so schnell ungültig wird.
Das zuletzt benutzte captcha-token wird gespeichert, um feststellen zu können wenn ein neues konfiguriert wurde.
An die beiden anderen Tokens komme ich wahrscheinlich nicht so leicht ran, um per curl/wget o.ä. etwas zu debuggen, also z.B. manuell eine Erneuerung zu versuchen, wenn das in dem Modul fehlschlägt (ich habe eine Kauf-OpenWB, also keinen ssh Zugang). Oder werden die beim Logging im Debug-Level mit ausgegeben?
Per Web-UI besteht kein Zugriff auf die Datei, in der die Modul-Daten gespeichert sind. Im Log momentan auch nicht.
Ich werde im nächsten PR einbauen, dass beim Lesen und Speichern der Datei der Inhalt (json) im debug level ausgegeben wird..
Die App habe ich nicht - wie ist das eigentlich dort dann gelöst? Ich vermute mal nicht, dass man da regelmäßig ein Captcha lösen muss o.ä., nur um mit der App weiterhin an die Daten zu kommen.
Die App habe ich auch nicht, kann dazu nichts sagen. Ich vermute die App hat einen weiteren Zugang, der in bimmer-connected nicht implementiert ist.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
gdfde
Beiträge: 118
Registriert: So Mär 10, 2019 1:05 pm
Has thanked: 5 times
Been thanked: 1 time

Re: SOC BMW

Beitrag von gdfde »

rleidner hat geschrieben: Fr Feb 07, 2025 10:15 am Was steht im SoC-Log?

Code: Alles auswählen




2025-02-06 17:05:10,341 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 17:05:10,398 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 17:05:10,404 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 17:20:06,284 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 17:20:06,340 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 17:20:06,346 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 17:35:10,940 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 17:35:11,041 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 17:35:11,083 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 17:50:07,315 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 17:50:07,373 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 17:50:07,378 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 18:05:02,581 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 18:05:02,677 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 18:05:02,695 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 18:19:58,003 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 18:19:58,060 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 18:19:58,066 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 18:34:54,645 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 18:34:54,704 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 18:34:54,710 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 18:49:58,526 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 18:49:58,581 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 18:49:58,587 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 19:05:03,570 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 19:05:03,748 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 19:05:03,775 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 19:19:58,416 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 19:19:58,481 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 19:19:58,487 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 19:34:54,634 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 19:34:54,723 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 19:34:54,730 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 19:49:59,163 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
2025-02-06 19:49:59,268 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev3} - bmwbc.fetch_soc: requestData Error, vnum: 3 err=MyBMWCaptchaMissingError('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html'), type(err)=<class 'bimmer_connected.models.MyBMWCaptchaMissingError'>
2025-02-06 19:49:59,273 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWCaptchaMissingError'> ('Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html',), Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 66, in update
    car_state = self._get_carstate_by_source(vehicle_update_data, source)
  File "/var/www/html/openWB/packages/modules/common/configurable_vehicle.py", line 114, in _get_carstate_by_source
    return self.__component_updater(vehicle_update_data)
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/soc.py", line 20, in updater
    return api.fetch_soc(
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 188, in fetch_soc
    soc, range = loop.run_until_complete(_fetch_soc(user_id, password, vin, captcha_token, vnum))
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 141, in _fetch_soc
    await account.get_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 114, in get_vehicles
    await self._init_vehicles()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 86, in _init_vehicles
    vehicle_list_response = await client.post(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1892, in post
    return await self.request(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1574, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in send
    response = await self._send_handling_auth(
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1707, in _send_handling_auth
    raise exc
  File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1696, in _send_handling_auth
    next_request = await auth_flow.asend(response)
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 118, in async_auth_flow
    await self.login()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 137, in login
    token_data = await self._login_row_na()
  File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 159, in _login_row_na
    raise MyBMWCaptchaMissingError(
bimmer_connected.models.MyBMWCaptchaMissingError: Missing hCaptcha token for login. See https://bimmer-connected.readthedocs.io/en/stable/captcha.html

2025-02-06 20:04:55,479 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev3} - MyBMWAuthError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
rleidner
Beiträge: 1142
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 9 times
Been thanked: 62 times

Re: SOC BMW

Beitrag von rleidner »

Danke, das ist auch der bekannte Fehler beim token refresh.
Die Logs sind wichtig um auszuschließen, das noch ein anderes Problem existiert.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
bios
Beiträge: 9
Registriert: Fr Sep 30, 2022 7:32 pm
Has thanked: 4 times
Been thanked: 2 times

Re: SOC BMW

Beitrag von bios »

tomtom69 hat geschrieben: Fr Feb 07, 2025 4:05 pm Hallo,

Nur für den Fall, dass es bei anderen auch zeitgleich war:
Bei mir ist auch der SoC ausgefallen, allerdings schon am Mittwoch (5.2., gegen 10:40). Im Log stand im Wesentlichen das hier:
Ja, das war bei mir auch ungefähr der Zeitpunkt des letzten SoC ausfalls. Danach Captcha erneuert und ging sofort wieder.
rleidner
Beiträge: 1142
Registriert: Mo Nov 02, 2020 9:50 am
Has thanked: 9 times
Been thanked: 62 times

Re: SOC BMW

Beitrag von rleidner »

Ich habe einen PR eingereicht mit diversen Verbesserungen:
https://github.com/openWB/core/pull/2208
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Kia EV6, Smart EQ forfour
heidanei
Beiträge: 127
Registriert: So Mai 02, 2021 5:42 pm
Has thanked: 10 times
Been thanked: 2 times

Re: SOC BMW

Beitrag von heidanei »

Servus!
rleidner hat geschrieben: Mo Feb 10, 2025 7:16 pm Ich habe einen PR eingereicht mit diversen Verbesserungen:
https://github.com/openWB/core/pull/2208
Danke! :) Hab ihn grad mal eingespielt, nachdem heute über Nacht schon wieder der Token eines meiner Fahrzeuge ungültig wurde - warum auch immer... Erster Start lief erfolgreich, SoC für beide Fahrzeuge wurde geladen. Werde berichten wenn's Probleme geben sollte.

Viele Grüße, Heidanei
Antworten