Dabei ist das Problem bei mir gerade eben wieder aufgetreten, nachdem es jetzt seit dem Update am 04.06. stabil lief.
Falls es Dir zur Verifizierung hilft, hier der Log-Auszug, als das Problem auftrat: die Regelschleife davor war in Ordnung (12:00 Uhr) und 12:05 Uhr dann der Error:
Code: Alles auswählen
2024-06-22 12:00:28,186 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev0} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-22 12:00:28,189 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev0} - Calculated SoC-State CalculatedSocState(imported_start=2684607, manual_soc=None, soc_start=75.0)
2024-06-22 12:00:28,190 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev0} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=2684724, battery_capacity=58000, efficiency=98, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-22 12:00:28,192 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev0} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=43200, request_only_plugged=True)
2024-06-22 12:00:28,193 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev0} - Update Komponente ['EVCC']
2024-06-22 12:00:28,196 - {modules.vehicles.evcc.api:52} - {DEBUG:fetch soc_ev0} - Fetching EVCC SOC
2024-06-22 12:00:28,203 - {modules.vehicles.evcc.api:64} - {DEBUG:fetch soc_ev0} - Vehicle id found in config: 273
2024-06-22 12:00:28,204 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev0} - Fetching SoC for vehicle id: 273
2024-06-22 12:00:29,989 - {modules.vehicles.evcc.api:77} - {DEBUG:fetch soc_ev0} - SoC received: 75.0
2024-06-22 12:00:29,993 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev0} - Requested start soc from api: 75.0%
2024-06-22 12:00:29,995 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev0} - {'imported_start': 2684724, 'manual_soc': None, 'soc_start': 75.0}
2024-06-22 12:00:29,996 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev0} - Raw data CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-22 12:00:30,024 - {modules.common.store._api:30} - {INFO:store soc_ev0} - Saving CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-22 12:05:31,001 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev0} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-22 12:05:31,003 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev0} - Calculated SoC-State CalculatedSocState(imported_start=2684724, manual_soc=None, soc_start=75.0)
2024-06-22 12:05:31,004 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev0} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=2684941, battery_capacity=58000, efficiency=98, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-22 12:05:31,006 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev0} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=43200, request_only_plugged=True)
2024-06-22 12:05:31,009 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev0} - Update Komponente ['EVCC']
2024-06-22 12:05:31,009 - {modules.vehicles.evcc.api:52} - {DEBUG:fetch soc_ev0} - Fetching EVCC SOC
2024-06-22 12:05:31,017 - {modules.vehicles.evcc.api:64} - {DEBUG:fetch soc_ev0} - Vehicle id found in config: 273
2024-06-22 12:05:31,018 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev0} - Fetching SoC for vehicle id: 273
2024-06-22 12:05:31,188 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'grpc.RpcError'> (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "vehicle not available"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-22T12:05:31.16726698+02:00", grpc_status:2, grpc_message:"vehicle not available"}"
>,), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/vehicles/evcc/api.py", line 71, 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 = "vehicle not available"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-22T12:05:31.16726698+02:00", grpc_status:2, grpc_message:"vehicle not available"}"
>
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 86, in fetch_soc
raise grpc.RpcError(rpc_error)
grpc.RpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "vehicle not available"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-22T12:05:31.16726698+02:00", grpc_status:2, grpc_message:"vehicle not available"}"
>