So - nächster Test: Letzte Nacht hat das Auto strompreisbasiert geladen - das hat funktioniert (Zielladen). Allerdings ist es jetzt bei 100% (statt 90%), weil das Auto den SoC nicht aktualisiert hat. Es wurden immer nur 17% SoC übertragen - bis das Auto irgendwann "voll" gemeldet hat. Dann wurden 100% übertragen... Ich schätze, das liegt am Auto / der App, werde aber zum Testen mal die Abfrage verlangsamen, auf 20 Minuten. Vielleicht bringt das etwas.
Code: Alles auswählen
2024-11-12 04:01:24,052 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['EVCC']
2024-11-12 04:01:24,053 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev1} - Fetching EVCC SOC
2024-11-12 04:01:24,059 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev1} - Vehicle id found in config: 111
2024-11-12 04:01:24,063 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev1} - Fetching SoC for vehicle id: 111
2024-11-12 04:01:24,248 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev1} - SoC received: 17.0
2024-11-12 04:01:24,252 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev1} - Requested start soc from api: 17.0%
2024-11-12 04:01:24,254 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev1} - Raw data CarState(soc=17.0, range=None, soc_timestamp=0)
2024-11-12 04:01:24,287 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=17.0, range=None, soc_timestamp=0)
2024-11-12 04:06:25,137 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-11-12 04:06:25,138 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=31280.0, manual_soc=None, soc_start=17.0)
2024-11-12 04:06:25,143 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=32075.0, battery_capacity=37000, efficiency=100, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-11-12 04:06:25,147 - {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=43200, request_only_plugged=False)
2024-11-12 04:06:25,156 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['EVCC']
2024-11-12 04:06:25,161 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev1} - Fetching EVCC SOC
2024-11-12 04:06:25,173 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev1} - Vehicle id found in config: 111
2024-11-12 04:06:25,175 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev1} - Fetching SoC for vehicle id: 111
2024-11-12 04:06:25,320 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev1} - SoC received: 17.0
2024-11-12 04:06:25,324 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev1} - Requested start soc from api: 17.0%
2024-11-12 04:06:25,326 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev1} - Raw data CarState(soc=17.0, range=None, soc_timestamp=0)
2024-11-12 04:06:25,405 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=17.0, range=None, soc_timestamp=0)
2024-11-12 04:11:26,092 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-11-12 04:11:26,094 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=32075.0, manual_soc=None, soc_start=17.0)
2024-11-12 04:11:26,096 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=32417.0, battery_capacity=37000, efficiency=100, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-11-12 04:11:26,097 - {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=43200, request_only_plugged=False)
2024-11-12 04:11:26,098 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['EVCC']
2024-11-12 04:11:26,100 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev1} - Fetching EVCC SOC
2024-11-12 04:11:26,108 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev1} - Vehicle id found in config: 111
2024-11-12 04:11:26,111 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev1} - Fetching SoC for vehicle id: 111
2024-11-12 04:11:26,367 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev1} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'grpc.RpcError'> (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "unexpected status: 403 (Forbidden)"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"unexpected status: 403 (Forbidden)", grpc_status:2, created_time:"2024-11-12T04:11:26.361347367+01:00"}"
>,), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/evcc/api.py", line 86, in fetch_soc
response = stub.SoC(
File "/home/openwb/.local/lib/python3.9/site-packages/grpc/_channel.py", line 1160, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/home/openwb/.local/lib/python3.9/site-packages/grpc/_channel.py", line 1003, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "unexpected status: 403 (Forbidden)"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"unexpected status: 403 (Forbidden)", grpc_status:2, created_time:"2024-11-12T04:11:26.361347367+01:00"}"
>
During handling of the above exception, another exception occurred:
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 110, in _get_carstate_by_source
return self.__component_updater(vehicle_update_data)
File "/var/www/html/openWB/packages/modules/vehicles/evcc/soc.py", line 16, in updater
return fetch_soc(vehicle_config.configuration, vehicle_update_data, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/evcc/api.py", line 105, in fetch_soc
raise grpc.RpcError(rpc_error)
grpc.RpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "unexpected status: 403 (Forbidden)"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"unexpected status: 403 (Forbidden)", grpc_status:2, created_time:"2024-11-12T04:11:26.361347367+01:00"}"
>
2024-11-12 04:16:27,210 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-11-12 04:16:27,211 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=32075.0, manual_soc=None, soc_start=17.0)
2024-11-12 04:16:27,213 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=False, imported=32483.0, battery_capacity=37000, efficiency=100, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-11-12 04:16:27,215 - {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=43200, request_only_plugged=False)
2024-11-12 04:16:27,217 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['EVCC']
2024-11-12 04:16:27,218 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev1} - Fetching EVCC SOC
2024-11-12 04:16:27,230 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev1} - Vehicle id found in config: 111
2024-11-12 04:16:27,232 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev1} - Fetching SoC for vehicle id: 111
2024-11-12 04:16:30,487 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev1} - SoC received: 100.0
2024-11-12 04:16:30,491 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev1} - Requested start soc from api: 100.0%
2024-11-12 04:16:30,492 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev1} - Raw data CarState(soc=100.0, range=None, soc_timestamp=0)
2024-11-12 04:16:30,538 - {modules.common.store._api:31} - {INFO:store soc_ev1} - Saving CarState(soc=100.0, range=None, soc_timestamp=0)
Protokoll des letzten Updates
PS: Zwischendurch war um 4:11 Uhr hier einmal keine Verbindung möglich (und früher auch ein paar mal nicht), allerdings wurden um 4:06 Uhr ja 17% SoC gemeldet und um 4:16 Uhr dann 100%...