Jetzt zeigt er wieder SoC = 81% an, also wirds wohl gehen

Super dass es wieder funktioniert.Placebo2210 hat geschrieben: Fr Jun 27, 2025 12:14 pm ah okay, danke. mach ich
Jetzt zeigt er wieder SoC = 81% an, also wirds wohl gehenZwecks deiner Lösung fürs Problem verfolge ich das hier dann mal.
84.jpg
Danke
Hmm, ich kenne mich mit der Berechnung nicht wirklich aus - ist ein zentrales Feature das ich nur in das SoC-Modul eingebunden habe.Placebo2210 hat geschrieben: Fr Jun 27, 2025 1:19 pm 29kWh sollte schon passen, oder? Als Batterie Kappa beim Mini SE
Brutto 32,6 kWh
Netto 28,9 kWh
Oder muss ich brutto eintragen? Aber selbst das sollte nicht 0 zu 100 verursachen. Siehe Bild 2 die eingetragenen Parameter auf meinem vorigen post. Das passt doch, oder?
Code: Alles auswählen
2025-06-27 15:30:43,452 - {modules.vehicles.bmwbc.api:293} - {DEBUG:fetch soc_ev0} - # after proactive login:2025-06-27 14:29:40.632501+00:00/DAvlzoLMWeY9WyFR9fnQmaCb7C0
2025-06-27 15:30:43,462 - {modules.vehicles.bmwbc.api:299} - {INFO:fetch soc_ev0} - PRIMARY : reload vehicles data/5
2025-06-27 15:30:43,468 - {bimmer_connected.account:111} - {DEBUG:fetch soc_ev0} - Getting vehicle list
2025-06-27 15:30:43,474 - {bimmer_connected.vehicle.vehicle:102} - {DEBUG:fetch soc_ev0} - Getting vehicle list
2025-06-27 15:30:43,799 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='cocoapi.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-06-27 15:30:46,015 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6b202850>
2025-06-27 15:30:46,264 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6e036b68> server_hostname='cocoapi.bmwgroup.com' timeout=30.0
2025-06-27 15:30:58,538 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.failed exception=ConnectError(BrokenResourceError())
2025-06-27 15:31:01,042 - {modules.vehicles.bmwbc.api:322} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: get_vehicles Error, vehicle_id: 0 err=ConnectError(''), type(err)=<class 'httpx.ConnectError'>
2025-06-27 15:31:01,252 - {modules.vehicles.bmwbc.api:377} - {ERROR:fetch soc_ev0} - bmwbc.fetch_soc: requestData Error, vehicle_id: 0
2025-06-27 15:31:09,390 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - BMW (Bimmer): FaultState FaultStateLevel.ERROR, FaultStr <class 'Exception'> ('SoC Request failed',), Traceback:
Traceback (most recent call last):
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 99, in handle_async_request
raise exc
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 76, in handle_async_request
stream = await self._connect(request)
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 154, in _connect
stream = await stream.start_tls(**kwargs)
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 80, in start_tls
raise exc
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/openwb/.local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 324, in _fetch_soc
raise err
File "/var/www/html/openWB/packages/modules/vehicles/bmwbc/api.py", line 301, in _fetch_soc
await self._account[user_id].get_vehicles()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/account.py", line 120, in get_vehicles
await vehicle.get_vehicle_state()
File "/home/openwb/.local/lib/python3.9/site-packages/bimmer_connected/vehicle/vehicle.py", line 108, in get_vehicle_state
state_response = await client.get(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1801, in get
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 1689, in _send_handling_auth
response = await self._send_handling_redirects(
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/openwb/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError
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 73, 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 124, 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 400, in fetch_soc
soc, range, soc_tsX = loop.run_until_complete(api._fetch_soc(user_id, password, vin, captcha_token, vehicle_id))
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 386, in _fetch_soc
raise Exception("SoC Request failed") from err
Exception: SoC Request failed
2025-06-27 15:31:35,282 - {modules.common.configurable_vehicle:63} - {DEBUG:fetch soc_ev0} - Vehicle Instance <class 'modules.vehicles.bmwbc.config.BMWbc'>
2025-06-27 15:31:35,303 - {modules.common.configurable_vehicle:64} - {DEBUG:fetch soc_ev0} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=72)
2025-06-27 15:31:35,354 - {modules.common.configurable_vehicle:65} - {DEBUG:fetch soc_ev0} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=30000, efficiency=92, soc_from_cp=None, timestamp_soc_from_cp=None, soc_timestamp=1751010547.0)
2025-06-27 15:31:35,379 - {modules.common.configurable_vehicle:66} - {DEBUG:fetch soc_ev0} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2025-06-27 15:31:35,470 - {modules.common.component_context:29} - {DEBUG:fetch soc_ev0} - Update Komponente ['BMW (Bimmer)']
2025-06-27 15:31:35,613 - {asyncio:59} - {DEBUG:fetch soc_ev0} - Using selector: EpollSelector
2025-06-27 15:31:35,648 - {modules.vehicles.bmwbc.api:156} - {DEBUG:fetch soc_ev0} - # Reuse api _instance
2025-06-27 15:31:35,721 - {modules.vehicles.bmwbc.api:169} - {DEBUG:fetch soc_ev0} - dataPath=/var/www/html/openWB/data/modules/bmwbc
2025-06-27 15:31:35,898 - {modules.vehicles.bmwbc.api:218} - {DEBUG:fetch soc_ev0} - captcha token unchanged
2025-06-27 15:31:35,917 - {modules.vehicles.bmwbc.api:227} - {INFO:fetch soc_ev0} - authenticate via current token set
2025-06-27 15:31:35,935 - {modules.vehicles.bmwbc.api:256} - {DEBUG:fetch soc_ev0} - # Create _clconf instance
2025-06-27 15:31:35,940 - {modules.vehicles.bmwbc.api:263} - {DEBUG:fetch soc_ev0} - # Create _account instance
2025-06-27 15:31:35,978 - {modules.vehicles.bmwbc.api:289} - {DEBUG:fetch soc_ev0} - # Proactive login to force refresh token before get_vehicles
2025-06-27 15:31:36,026 - {modules.vehicles.bmwbc.api:290} - {DEBUG:fetch soc_ev0} - # before proactive login:2025-06-27 13:28:37.152796+00:00/QEqII14hY1uRn-NKvLSPv7TXrnA
2025-06-27 15:31:37,605 - {bimmer_connected.api.authentication:257} - {DEBUG:fetch soc_ev0} - Authenticating with refresh token for North America & Rest of World.
2025-06-27 15:31:38,147 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='cocoapi.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-06-27 15:31:38,813 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6ab05940>
2025-06-27 15:31:38,954 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6cc82b20> server_hostname='cocoapi.bmwgroup.com' timeout=30.0
2025-06-27 15:31:39,941 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6b1890b8>
2025-06-27 15:31:40,038 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'GET']>
2025-06-27 15:31:40,087 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-06-27 15:31:40,091 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'GET']>
2025-06-27 15:31:40,214 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.complete
2025-06-27 15:31:40,221 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.started request=<Request [b'GET']>
2025-06-27 15:31:40,779 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Fri, 27 Jun 2025 13:31:40 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'580'), (b'Connection', b'keep-alive'), (b'x-correlation-id', b'd310df3e-8cc3-4a74-abf3-93eb3e7f2590'), (b'bmw-correlation-id', b'd310df3e-8cc3-4a74-abf3-93eb3e7f2590'), (b'x-cluster-mock-used', b'false'), (b'Strict-Transport-Security', b'max-age=31536000; includeSubDomains'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Security-Policy', b"default-src 'self'"), (b'Request-Context', b'appId=cid-v1:24f34ad2-7e62-4399-93db-3071c599c619'), (b'x-azure-ref', b'20250627T133140Z-r19749f84f572bswhC1FRA2cy80000000tn0000000015f3h'), (b'X-Cache', b'CONFIG_NOCACHE'), (b'Accept-Ranges', b'bytes')])
2025-06-27 15:31:41,238 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.started request=<Request [b'GET']>
2025-06-27 15:31:41,275 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - receive_response_body.complete
2025-06-27 15:31:41,615 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.started
2025-06-27 15:31:41,661 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - response_closed.complete
2025-06-27 15:31:41,922 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.started host='customer.bmwgroup.com' port=443 local_address=None timeout=30.0 socket_options=None
2025-06-27 15:31:42,376 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6e0ef058>
2025-06-27 15:31:42,484 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.started ssl_context=<ssl.SSLContext object at 0x6cc82b20> server_hostname='customer.bmwgroup.com' timeout=30.0
2025-06-27 15:31:42,886 - {httpcore.connection:85} - {DEBUG:fetch soc_ev0} - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x6fc60778>
2025-06-27 15:31:42,898 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.started request=<Request [b'POST']>
2025-06-27 15:31:42,935 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_headers.complete
2025-06-27 15:31:42,944 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - send_request_body.started request=<Request [b'POST']>
2025-06-27 15:31:42,986 - {httpcore.http11:85} - {DEBUG:fetch soc_ev0} - s
Danke für die Meldung!Extrahirn hat geschrieben: Fr Jun 27, 2025 9:47 pm Ich hatte heute einen SoC- Fehler beim Lesen vom CD-Server,
aber ich kann im SoC-Log keinen Fehler 408/500 finden.
Hier ein Auszug vom SoC-Log:
Ist es geplant, den neuen PR wieder in eine Master-Version zu packen ?
Aha, da hab ich das Log falsch interpretiert - sorry.Extrahirn hat geschrieben: Sa Jun 28, 2025 12:57 pm Nein, leider hat die SoC-Abfrage nicht wieder funktioniert.
Die SoCAnzeige im colours theme war rot und zeigte 0 an,
Wodurch ich aufmerksam wurde.
Ich musste den Token erneuern.
Aktuelle OpenWB Version : 2025-06-27 13:27:53 +0000 [4ed63b9b1] 2.1.8-Alpha.2 Master (seit ca. 14:30 Uhr)