ich habe letzte Woche meinen neuen iX1 erhalten. Ein auslsen über BMW Connected Drive (home assistent) funktioniert auch problemlos. Ich habe nun das Fahrzeug in meiner OpenWB angelegt und den BMW & Mini Soc aktiviert sowie die selben Informationen wie in Home assistent angegeben, den Token habe ich vorsichtshalber neu generiert. Die Version der OpenWB ist die 2.1.7-Patch.1
Doch ich bekomme einfach keine Informationen, im Log taucht nur die folgende Fehlermeldung auf:
Code: Alles auswählen
2025-04-07 13:52:58,762 - {modules.vehicles.bmwbc.api:52} - {WARNING:fetch soc_ev6} - load_store: store file not found, full authentication required
2025-04-07 13:52:59,277 - {bimmer_connected.api.authentication:86} - {ERROR:fetch soc_ev6} - MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
2025-04-07 13:52:59,283 - {modules.vehicles.bmwbc.api:175} - {ERROR:fetch soc_ev6} - bmwbc.fetch_soc: requestData Error, vnum: 6 err=MyBMWAuthError('HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)'), type(err)=<class 'bimmer_connected.models.MyBMWAuthError'>
2025-04-07 13:52:59,313 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev6} - BMW & Mini : FaultState FaultStateLevel.ERROR, FaultStr <class 'bimmer_connected.models.MyBMWAuthError'> ('HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)',), Traceback:
Traceback (most recent call last):
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 411, in raise_for_status_event_handler
response.raise_for_status()
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_models.py", line 763, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
The above exception was the direct cause of the following exception:
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 117, 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 1905, in post
return await self.request(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1585, 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 1674, in send
response = await self._send_handling_auth(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1699, in _send_handling_auth
request = await auth_flow.__anext__()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 88, 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 199, in _login_row_na
response = await client.post(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1905, in post
return await self.request(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1585, 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 1674, in send
response = await self._send_handling_auth(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1702, in _send_handling_auth
response = await self._send_handling_redirects(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1760, in _send_handling_redirects
raise exc
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1742, in _send_handling_redirects
await hook(response)
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/authentication.py", line 413, in raise_for_status_event_handler
await handle_httpstatuserror(ex, module="AUTH", log_handler=_LOGGER)
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/api/utils.py", line 89, in handle_httpstatuserror
raise _ex_to_raise(_err_message) from ex
bimmer_connected.models.MyBMWAuthError: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)