Seite 94 von 95

Re: Support: EVCC

Verfasst: Sa Jun 15, 2024 4:07 pm
von mrinas
So, ich denke ich hab' jetzt einen Fix für die sporadisch auftretenden Probleme welche durch eine Neukonfiguration des EVCC Moduls zu beheben sind.

Derzeit hab' ich leider kein Fahrzeug welches ich über EVCC abrufen kann um das selbst ausgiebig zu testen. Hat hier jemand Zugriff auf seine openWB via SSH und kann das neue Modul mal testen? Es muss die api.py des evcc Moduls ausgetauscht werden, und dann muss man wohl eine Zeit lang warten und beobachten ob das Problem erneut auftritt.

https://github.com/openWB/core/pull/1673/files

Re: Support: EVCC

Verfasst: Sa Jun 22, 2024 11:56 am
von Elchkopp
Leider nicht :(
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"}"
>

Re: Support: EVCC

Verfasst: Sa Jun 22, 2024 3:59 pm
von mrinas
Elchkopp hat geschrieben: Sa Jun 22, 2024 11:56 am Leider nicht :(
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"}"
>
ich schau' mir die Logs nachher mal an. Hast Du ein update gemacht oder die geänderten Dateien aus dem PR manuell übernommen? Bisher ist der PR noch nicht im Master, die Änderungen müssen also zu Fuss aufs System getragen werden.

Re: Support: EVCC

Verfasst: Sa Jun 22, 2024 5:39 pm
von Elchkopp
mrinas hat geschrieben: Sa Jun 22, 2024 3:59 pm ich schau' mir die Logs nachher mal an. Hast Du ein update gemacht oder die geänderten Dateien aus dem PR manuell übernommen? Bisher ist der PR noch nicht im Master, die Änderungen müssen also zu Fuss aufs System getragen werden.
Mein "Leider nicht" sollte sich auch darauf beziehen, dass ich keine Möglichkeit habe, die entsprechende Datei manuell ins System zu schleusen. Daher kann es sein, dass dein Fix das Problem beheben könnte. Ich bin jedenfalls auf dem aktuellen Release und ein Update oder Neustart des Systems kann als Problemursache bei mir ausgeschlossen werden.

Re: Support: EVCC

Verfasst: Sa Jun 22, 2024 5:43 pm
von mrinas
Klar, ohne ssh Zugang wird das nix. Ich selbst kann das leider nicht testen, ich überleg mir mal was wir da machen können. Ggf. ein eigener nranch Benden dem master, dann kann man den in der ui auswählen fürs testen.

Re: Support: EVCC

Verfasst: So Jun 23, 2024 1:52 pm
von Oeffly
das wäre super.... würde mir dann auch denn Brunch drauf spielen und mal 3 Autos mit EVCC abfragen.

Re: Support: EVCC

Verfasst: Mo Jun 24, 2024 1:34 pm
von mrinas
Und schon gibts einen neuen Entwicklungszweig (aka branch). Bitte in System > System > Versionsaktualisierung einmal nach Updates suchen, danach taucht feature_evcc-errorhandling branch weiter unten auf. Dorthin wechseln und das ganze beobachten und berichten obs weiterhin Probleme gibt.

Re: Support: EVCC

Verfasst: Di Jun 25, 2024 6:19 am
von Oeffly
okay....Nun mal einen Update auf denn Brunch gemacht.

Bei allen drei Fahrzeugen erst SOC-Modul entfernt und dann EVCC ausgewählt.

Nun mal schauen.

Re: Support: EVCC

Verfasst: Di Jun 25, 2024 6:21 am
von Oeffly
Kann auch beim EVCC die Reichweite mitabgefragt werden wie beim VWID-Modul?

Re: Support: EVCC

Verfasst: Di Jun 25, 2024 6:22 am
von mrinas
sehr gut, danke. Bitte gleich das Loglevel auf Debug stellen damit es die passenden Logs gibt. Ich hoffe ja eigentlich dass wir diese Logs nicht brauchen werden und der Fix funktioniert. Wie so häufig im Leben gilt auch hier: besser haben als brauchen.

Ich glaube EVCC liefert keine Reichweite, sonst hätte ich die mit übernommen.