2024-06-25 08:43:39,389 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev5} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:43:39,390 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev5} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=75.0)
2024-06-25 08:43:39,395 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev5} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=False, imported=3417599.12, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:43:39,397 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev5} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:43:39,398 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev5} - Update Komponente ['EVCC']
2024-06-25 08:43:39,399 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev5} - Fetching EVCC SOC
2024-06-25 08:43:39,403 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev5} - Vehicle id found in config: 817
2024-06-25 08:43:39,403 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev5} - Fetching SoC for vehicle id: 817
2024-06-25 08:43:41,034 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev5} - SoC received: 75.0
2024-06-25 08:43:41,037 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev5} - Requested start soc from api: 75.0%
2024-06-25 08:43:41,039 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev5} - {'imported_start': 3417599.12, 'manual_soc': None, 'soc_start': 75.0}
2024-06-25 08:43:41,041 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev5} - Raw data CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:43:41,079 - {modules.common.store._api:30} - {INFO:store soc_ev5} - Saving CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:47:42,851 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev3} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:47:42,853 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev3} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=94)
2024-06-25 08:47:42,855 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev3} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:47:42,863 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev3} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:47:42,864 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev3} - Update Komponente ['EVCC']
2024-06-25 08:47:42,867 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev3} - Fetching EVCC SOC
2024-06-25 08:47:42,961 - {modules.vehicles.evcc.api:53} - {DEBUG:fetch soc_ev3} - Vehicle client received: 819
2024-06-25 08:47:42,962 - {modules.vehicles.evcc.api:27} - {DEBUG:fetch soc_ev3} - saving vehicle_id: 819
2024-06-25 08:47:42,963 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev3} - {'name': 'EVCC', 'type': 'evcc', 'configuration': <modules.vehicles.evcc.config.EVCCVehicleSocConfiguration object at 0x70586d18>}
2024-06-25 08:47:42,965 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev3} - {'vehicle_id': 819, 'calculate_soc': False, 'user_id': '
mail@google.com', 'password': 'xxxxxxxx', 'sponsor_token': 'xxxxxNyYyI6ImdoIn0.BhTMPVyXZHma-tfVE0D4EZxHuzglmNt9wxLrM0c9P44', 'vehicle_type': 'id', 'VIN': ' CAR-ID'}
2024-06-25 08:47:42,981 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'UnboundLocalError'> ("local variable 'vehicle_to_fetch' referenced before assignment",), 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 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 81, in fetch_soc
log.debug("Fetching SoC for vehicle id: " + str(vehicle_to_fetch)) # fetch SoC
UnboundLocalError: local variable 'vehicle_to_fetch' referenced before assignment
2024-06-25 08:48:43,386 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev5} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:48:43,387 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev5} - Calculated SoC-State CalculatedSocState(imported_start=3417599.12, manual_soc=None, soc_start=75.0)
2024-06-25 08:48:43,398 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev5} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=3417846.92, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:48:43,398 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev5} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:48:43,399 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev5} - Update Komponente ['EVCC']
2024-06-25 08:48:43,400 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev5} - Fetching EVCC SOC
2024-06-25 08:48:43,405 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev5} - Vehicle id found in config: 817
2024-06-25 08:48:43,405 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev5} - Fetching SoC for vehicle id: 817
2024-06-25 08:48:43,481 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev5} - SoC received: 75.0
2024-06-25 08:48:43,485 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev5} - Requested start soc from api: 75.0%
2024-06-25 08:48:43,486 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev5} - {'imported_start': 3417846.92, 'manual_soc': None, 'soc_start': 75.0}
2024-06-25 08:48:43,487 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev5} - Raw data CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:48:43,515 - {modules.common.store._api:30} - {INFO:store soc_ev5} - Saving CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:52:44,590 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev3} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:52:44,591 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev3} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=94)
2024-06-25 08:52:44,592 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev3} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:52:44,593 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev3} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:52:44,593 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev3} - Update Komponente ['EVCC']
2024-06-25 08:52:44,594 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev3} - Fetching EVCC SOC
2024-06-25 08:52:44,600 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev3} - Vehicle id found in config: 819
2024-06-25 08:52:44,602 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev3} - Fetching SoC for vehicle id: 819
2024-06-25 08:52:44,701 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'grpc.RpcError'> (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:52:44.693850785+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>,), 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 = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:52:44.693850785+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>
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 = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:52:44.693850785+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>
2024-06-25 08:53:44,910 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev5} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:53:44,912 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev5} - Calculated SoC-State CalculatedSocState(imported_start=3417846.92, manual_soc=None, soc_start=75.0)
2024-06-25 08:53:44,913 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev5} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=3417991.94, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:53:44,916 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev5} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:53:44,917 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev5} - Update Komponente ['EVCC']
2024-06-25 08:53:44,919 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev5} - Fetching EVCC SOC
2024-06-25 08:53:44,925 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev5} - Vehicle id found in config: 817
2024-06-25 08:53:44,926 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev5} - Fetching SoC for vehicle id: 817
2024-06-25 08:53:45,000 - {modules.vehicles.evcc.api:92} - {DEBUG:fetch soc_ev5} - SoC received: 75.0
2024-06-25 08:53:45,004 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev5} - Requested start soc from api: 75.0%
2024-06-25 08:53:45,005 - {dataclass_utils._dataclass_asdict:23} - {DEBUG:fetch soc_ev5} - {'imported_start': 3417991.94, 'manual_soc': None, 'soc_start': 75.0}
2024-06-25 08:53:45,007 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev5} - Raw data CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:53:45,031 - {modules.common.store._api:30} - {INFO:store soc_ev5} - Saving CarState(soc=75.0, range=None, soc_timestamp=0)
2024-06-25 08:57:46,059 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev3} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-06-25 08:57:46,063 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev3} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=94)
2024-06-25 08:57:46,066 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev3} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=77000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-06-25 08:57:46,069 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev3} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-06-25 08:57:46,071 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev3} - Update Komponente ['EVCC']
2024-06-25 08:57:46,072 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev3} - Fetching EVCC SOC
2024-06-25 08:57:46,082 - {modules.vehicles.evcc.api:79} - {DEBUG:fetch soc_ev3} - Vehicle id found in config: 819
2024-06-25 08:57:46,090 - {modules.vehicles.evcc.api:81} - {DEBUG:fetch soc_ev3} - Fetching SoC for vehicle id: 819
2024-06-25 08:57:46,202 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev3} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'grpc.RpcError'> (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:57:46.190943047+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>,), 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 = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:57:46.190943047+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>
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 = "cannot create vehicle type 'id': cannot find vehicle, got: [CAR-ID]"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-06-25T08:57:46.190943047+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'id\': cannot find vehicle, got: [CAR-ID]"}"
>