Support: EVCC

Alles rund um SoC (Ladezustand des Fahrzeuges). Probleme, Fragen, Fehlfunktionen gehören hier hin
Benutzeravatar
Proxima
Beiträge: 61
Registriert: So Apr 18, 2021 11:42 am

Re: Support: EVCC

Beitrag 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
PV 1 : 10,25 kWp
PV 2 : 19,68 kWp
BATT : VARTA Element S5 BackUp 18kWh
WB 1 : openWB series2 custom (Vollaustattung)
WB 2 : openWB series2 custom (Vollaustattung)
BEV 1: FIAT 500e Icon
BEV 2: AUDI e-tron 55 sLine
LutzB
Beiträge: 3523
Registriert: Di Feb 25, 2020 9:23 am

Re: Support: EVCC

Beitrag von LutzB »

Die Fehlermeldung "vehicle not available" kommt vom EVCC Server. Du solltest nochmal direkt bei EVCC nachfragen.
Benutzeravatar
mrinas
Beiträge: 1911
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Support: EVCC

Beitrag 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.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
Bucky2k
Beiträge: 398
Registriert: Sa Nov 09, 2019 1:17 pm

Re: Support: EVCC

Beitrag 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?
Benutzeravatar
mrinas
Beiträge: 1911
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Support: EVCC

Beitrag 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.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
Benutzeravatar
Proxima
Beiträge: 61
Registriert: So Apr 18, 2021 11:42 am

Re: Support: EVCC

Beitrag 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
PV 1 : 10,25 kWp
PV 2 : 19,68 kWp
BATT : VARTA Element S5 BackUp 18kWh
WB 1 : openWB series2 custom (Vollaustattung)
WB 2 : openWB series2 custom (Vollaustattung)
BEV 1: FIAT 500e Icon
BEV 2: AUDI e-tron 55 sLine
Benutzeravatar
Proxima
Beiträge: 61
Registriert: So Apr 18, 2021 11:42 am

Re: Support: EVCC

Beitrag 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
PV 1 : 10,25 kWp
PV 2 : 19,68 kWp
BATT : VARTA Element S5 BackUp 18kWh
WB 1 : openWB series2 custom (Vollaustattung)
WB 2 : openWB series2 custom (Vollaustattung)
BEV 1: FIAT 500e Icon
BEV 2: AUDI e-tron 55 sLine
Benutzeravatar
Proxima
Beiträge: 61
Registriert: So Apr 18, 2021 11:42 am

Re: Support: EVCC

Beitrag 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
PV 1 : 10,25 kWp
PV 2 : 19,68 kWp
BATT : VARTA Element S5 BackUp 18kWh
WB 1 : openWB series2 custom (Vollaustattung)
WB 2 : openWB series2 custom (Vollaustattung)
BEV 1: FIAT 500e Icon
BEV 2: AUDI e-tron 55 sLine
Daphne
Beiträge: 55
Registriert: Do Sep 29, 2022 12:34 pm

Re: Support: EVCC

Beitrag 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) 25 mal betrachtet
Kann mir einer sagen, woran das liegt?
13,8 kWp-Anlage LG + LG Batteriespeicher 10 kW
OpenWB Wallbox, Ver. 2.x (Master)
Cupra Born 58 kWh
Antworten