Re: SOC BMW
Verfasst: Mo Apr 15, 2024 2:42 pm
Weiß jemand wie der neue DNS heißt, für eine manuelle Korrektur ?
gdfde hatte wohl ein anderes Problem. Es scheint sich wohl doch nicht nur ein Servername geändert zu haben, hier ist die FM die bei mir in den Logs erscheint:
Code: Alles auswählen
2024-04-15 11:44:30,015 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.bmw.config.BMW'>
2024-04-15 11:44:30,016 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=48)
2024-04-15 11:44:30,016 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=38000, efficiency=86, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-04-15 11:44:30,017 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev1} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=10800, request_only_plugged=False)
2024-04-15 11:44:30,017 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['BMW']
2024-04-15 11:44:30,020 - {urllib3.connectionpool:1055} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): customer.bmwgroup.com:443
2024-04-15 11:44:30,020 - {urllib3.connectionpool:1055} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): customer.bmwgroup.com:443
2024-04-15 11:44:30,543 - {urllib3.connectionpool:549} - {DEBUG:fetch soc_ev1} - https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 200 411
2024-04-15 11:44:30,543 - {urllib3.connectionpool:549} - {DEBUG:fetch soc_ev1} - https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 200 411
2024-04-15 11:44:30,548 - {urllib3.connectionpool:1055} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): customer.bmwgroup.com:443
2024-04-15 11:44:30,548 - {urllib3.connectionpool:1055} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): customer.bmwgroup.com:443
2024-04-15 11:44:30,658 - {urllib3.connectionpool:549} - {DEBUG:fetch soc_ev1} - https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 400 78
2024-04-15 11:44:30,658 - {urllib3.connectionpool:549} - {DEBUG:fetch soc_ev1} - https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 400 78
2024-04-15 11:44:30,659 - {modules.vehicles.bmw.api:94} - {ERROR:fetch soc_ev1} - bmw.postHTTP: Request failed, StatusCode: 400
2024-04-15 11:44:30,660 - {modules.vehicles.bmw.api:169} - {ERROR:fetch soc_ev1} - bmw.authStage2: Authentication stage 2 Error err=RuntimeError(), type(err)=<class 'RuntimeError'>
2024-04-15 11:44:30,660 - {modules.vehicles.bmw.api:224} - {ERROR:fetch soc_ev1} - bmw.requestToken: Login Error err=RuntimeError(), type(err)=<class 'RuntimeError'>
2024-04-15 11:44:30,660 - {modules.vehicles.bmw.api:278} - {ERROR:fetch soc_ev1} - bmw.fetch_soc: requestData Error, vehicle: 1 err=RuntimeError(), type(err)=<class 'RuntimeError'>
2024-04-15 11:44:30,661 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev1} - BMW: FaultState FaultStateLevel.ERROR, FaultStr <class 'RuntimeError'> (), 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 109, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/bmw/soc.py", line 20, in updater
return api.fetch_soc(
File "/var/www/html/openWB/packages/modules/vehicles/bmw/api.py", line 272, in fetch_soc
token = requestToken(user_id, password)
File "/var/www/html/openWB/packages/modules/vehicles/bmw/api.py", line 221, in requestToken
auth_code_2 = authStage2(auth_code_1, code_challenge, state)
File "/var/www/html/openWB/packages/modules/vehicles/bmw/api.py", line 166, in authStage2
response = postHTTP(url, data, headers, cookies, allow_redirects=False)
File "/var/www/html/openWB/packages/modules/vehicles/bmw/api.py", line 95, in postHTTP
raise RuntimeError
RuntimeError
Auf was steht "SoC-Limit"?
Entweder auf der "Startseite", siehe hier: Oder unter
Naja, du hast dann ja keine Information mehr über den SoC des Fahrzeugs in deiner openWB.