Seite 88 von 91

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 1:52 pm
von Proxima
Hallo,

habe nochmal einen neuen Token, direkt von der EVCC-Seite benutzt, geht trotzdem nicht.

Nach dem Umstellen des Logs auf "Details" (vielleicht sieht man da mehr) folgender Eintrag beim SOC-Abruf:

Code: Alles auswählen

2024-04-02 15:35:04,200 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev2} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-04-02 15:35:04,204 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev2} - Calculated SoC-State CalculatedSocState(imported_start=0, manual_soc=None, soc_start=0)
2024-04-02 15:35:04,207 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev2} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=False, imported=3969989.01, battery_capacity=86000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-04-02 15:35:04,210 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev2} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=600, request_interval_not_charging=7200, request_only_plugged=False)
2024-04-02 15:35:04,211 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev2} - Update Komponente ['EVCC']
2024-04-02 15:35:04,214 - {modules.vehicles.evcc.api:52} - {DEBUG:fetch soc_ev2} - Fetching EVCC SOC
2024-04-02 15:35:04,219 - {modules.vehicles.evcc.api:64} - {DEBUG:fetch soc_ev2} - Vehicle id found in config: 92
2024-04-02 15:35:04,219 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev2} - Fetching SoC for vehicle id: 92
2024-04-02 15:35:04,376 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - 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-04-02T15:35:04.370226698+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-04-02T15:35:04.370226698+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 109, 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-04-02T15:35:04.370226698+02:00", grpc_status:2, grpc_message:"vehicle not available"}"
>
Die vehicle id ist korrekt ???

Grüße
Proxima

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 2:07 pm
von LutzB
Die Fehlermeldung "vehicle not available" kommt vom EVCC Server. Du solltest nochmal direkt bei EVCC nachfragen.

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 2:18 pm
von mrinas
Proxima hat geschrieben: Di Apr 02, 2024 1:52 pm Hallo,

habe nochmal einen neuen Token, direkt von der EVCC-Seite benutzt, geht trotzdem nicht.

Nach dem Umstellen des Logs auf "Details" (vielleicht sieht man da mehr) folgender Eintrag beim SOC-Abruf:

Code: Alles auswählen

2024-04-02 15:35:04,200 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev2} - Vehicle Instance <class 'modules.vehicles.evcc.config.EVCCVehicleSoc'>
2024-04-02 15:35:04,204 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev2} - Calculated SoC-State CalculatedSocState(imported_start=0, manual_soc=None, soc_start=0)
2024-04-02 15:35:04,207 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev2} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=False, imported=3969989.01, battery_capacity=86000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-04-02 15:35:04,210 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev2} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=600, request_interval_not_charging=7200, request_only_plugged=False)
2024-04-02 15:35:04,211 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev2} - Update Komponente ['EVCC']
2024-04-02 15:35:04,214 - {modules.vehicles.evcc.api:52} - {DEBUG:fetch soc_ev2} - Fetching EVCC SOC
2024-04-02 15:35:04,219 - {modules.vehicles.evcc.api:64} - {DEBUG:fetch soc_ev2} - Vehicle id found in config: 92
2024-04-02 15:35:04,219 - {modules.vehicles.evcc.api:66} - {DEBUG:fetch soc_ev2} - Fetching SoC for vehicle id: 92
2024-04-02 15:35:04,376 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev2} - 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-04-02T15:35:04.370226698+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-04-02T15:35:04.370226698+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 109, 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-04-02T15:35:04.370226698+02:00", grpc_status:2, grpc_message:"vehicle not available"}"
>
Die vehicle id ist korrekt ???

Grüße
Proxima
ggf. mal das SoC Modul wechseln bzw. auf nicht aktiviert setzen, speichern, neu einrichten. Die vehicleID wird von EVCC vergeben, das ist korrekt.

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 3:02 pm
von Bucky2k
vehicle id ist normalerweise das PKW Fabrikat in der EVCC nomenklatur (VW, audi, etron, etc.). In deinem Log-Auszug ist es 92? Da stimmt was nicht. Oder ist das eine andere, OpenWB interne vehicle id?

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 3:07 pm
von mrinas
Bucky2k hat geschrieben: Di Apr 02, 2024 3:02 pm vehicle id ist normalerweise das PKW Fabrikat in der EVCC nomenklatur (VW, audi, etron, etc.). In deinem Log-Auszug ist es 92? Da stimmt was nicht. Oder ist das eine andere, OpenWB interne vehicle id?
Der Abruf des SoC über EVCC ist zweistufig. Im ersten Schritt wird ein vehicle mit den Zugangsdaten und dem Fahrzeugtyp erstellt, als Ergebnis erhält mal eine VehicleID. Mit dieser VehicleID kann man danach den SoC abrufen. Hier ist diese ID92, in meinen Tests war die auch stets zweistellig. Der Fahrzeugtyp ist in vehicle_type übergeben.

Re: Support: EVCC

Verfasst: Di Apr 02, 2024 3:25 pm
von Proxima
mrinas hat geschrieben: Di Apr 02, 2024 2:18 pm ggf. mal das SoC Modul wechseln bzw. auf nicht aktiviert setzen, speichern, neu einrichten.
Hallo,

tja ... was soll ich sagen ... das hats gebracht. Umstellen auf Tronity, speichern, zurück auf EVCC, Daten eingeben und speichern. Voilà !!! SOC wird abgerufen. Für den AUDI und den FIAT (FIAT ohne PIN).

Vielen, vielen D A N K !!!

Ach ja, wie sollten die Zeiten für den Abruf eingestellt werden, bzw. welche sind zu kurz ???

Grüße
Proxima

Re: Support: EVCC

Verfasst: Do Apr 04, 2024 4:04 pm
von Proxima
Hallo,

also, die Abfrage des SOC für FIAT 500e braucht zwingend (wie auch schon unter V1.9x) die 4-stellige PIN.
Bitte die Übermittlung der PIN auch ins EVCC-Modul für V2.x integrieren und im UI das entsprechende Feld zum eingeben bereitstellen.

Vielen Dank.

Grüße
Proxima

Re: Support: EVCC

Verfasst: Do Apr 11, 2024 7:58 am
von Proxima
mrinas hat geschrieben: Mo Apr 01, 2024 8:46 am Wegen Fiat kann ich mal schauen ob's dort noch weitere Felder gibt welche notwendig sind.
Hallo,

@mrinas: Konntest Du bzgl. des FIAT (4-stellige, zusätzliche PIN) schon was in Erfahrung bringen ??? In der "alten" V1.9.x wurde die PIN auch schon für FIAT benötigt.

Grüße
Proxima

Re: Support: EVCC

Verfasst: Mo Apr 29, 2024 8:57 am
von Daphne
Hallo,

ich habe heute meinen Cupra Born über EVCC einbinden wollen.
Nach Eingabe meiner Daten und Eingabe des Trial-Tokens von evcc kam folgender Fehler unter Status:
2024-04-29 09_11_18-openWB _ Status.jpg
2024-04-29 09_11_18-openWB _ Status.jpg (27.63 KiB) 392 mal betrachtet
Kann mir einer sagen, woran das liegt?

Re: Support: EVCC

Verfasst: Sa Mai 18, 2024 6:53 am
von tastenchris
Seit heute (evtl. auch schon gestern) bekomme ich folgende Fehlermeldung im EV SoC Log:

Code: Alles auswählen

2024-05-18 08:49:49: PID: 14424: Lp1: Error from EVCC: 2024/05/18 08:49:49 rpc error: code = Unknown desc = cannot create vehicle type 'nissan': login failed: code not found (LV0)
Neu eintragen von Login-Daten und evcc-Token, sowie Reboot hat nicht geholfen. Der Login in der Nissan-App funktioniert nach wie vor und zeigt den richtigen Ladestand.
Installiert ist 1.9.304.0.