Re: Support: EVCC
Verfasst: Mo Aug 05, 2024 5:50 pm
sw1.9 SoC-Module:
https://github.com/snaptec/openWB/tree/master/modules
https://github.com/snaptec/openWB/tree/master/modules
Besten Dank aiole,aiole hat geschrieben: ↑Mo Aug 05, 2024 5:50 pm sw1.9 SoC-Module:
https://github.com/snaptec/openWB/tree/master/modules
Das ist korrekt, aber so wie ich das bisher nachvollziehen konnte, macht dieses Modul den Aufruf an EVCC. Aber weil das Ford API geändert hat, braucht es neu neben Username, Passwort und Token auch noch eine clientid und ein clientsecret. Diese möchte ich nun eben in den Aufruf einbauen.
Code: Alles auswählen
<class 'grpc.RpcError'> (<_InactiveRpcError of RPC that terminated with: status = StatusCode.UNKNOWN details = "cannot create vehicle type 'seat': missing id_token" debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-08-27T15:24:02.968804129+02:00", grpc_status:2, grpc_message:"cannot create vehicle type \'seat\': missing id_token"}" >,)
Code: Alles auswählen
2024-08-27 19:49:48,421 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev0} - EVCC: FaultState FaultStateLevel.ERROR, FaultStr <class 'grpc._channel._InactiveRpcError'> (<grpc._channel._RPCState object at 0x6fbbe5b0>,), 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 71, in fetch_soc
create_and_save_vehicle_id(stub, evcc_config, vehicle)
File "/var/www/html/openWB/packages/modules/vehicles/evcc/api.py", line 52, in create_and_save_vehicle_id
vehicle_to_fetch = create_vehicle(config, stub)
File "/var/www/html/openWB/packages/modules/vehicles/evcc/api.py", line 34, in create_vehicle
response = stub.New(
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 'cupra': missing id_token"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"cannot create vehicle type \'cupra\': missing id_token", grpc_status:2, created_time:"2024-08-27T19:49:48.380973603+02:00"}"
>