schade das keine Reichweite mitgeliefert wird. Log Modus läuft auf Detailsmrinas hat geschrieben: ↑Di Jun 25, 2024 6:22 am 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.
Support: EVCC
Re: Support: EVCC
PV 1: 13,4 kWp
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
Re: Support: EVCC
Oeffly hat geschrieben: ↑Di Jun 25, 2024 7:28 am2024-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]"}"
>
Zuletzt geändert von Oeffly am Di Jun 25, 2024 12:02 pm, insgesamt 1-mal geändert.
PV 1: 13,4 kWp
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
- mrinas
- Beiträge: 2256
- Registriert: Mi Jan 29, 2020 10:12 pm
- Has thanked: 30 times
- Been thanked: 29 times
Re: Support: EVCC
Kannst Du bitte mal die Konfiguration vom vehicle 3 kontrollieren, hier scheint ein ungültiger Wert für die VIN (' CAR-ID') gespeichert zu sein:
Ich schau' mir ein Eingabevalidierung noch mal an, solche ungültigen Werte sollten wir eigentlich direkt in der UI abfangen.
Zudem bitte das gepostete Log entfernen oder zumindest dein Sponsor-Token rausnehmen (z.b. suchen & ersetzen)
Code: Alles auswählen
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': 'xxx', 'vehicle_type': 'id', 'VIN': ' CAR-ID'}
Zudem bitte das gepostete Log entfernen oder zumindest dein Sponsor-Token rausnehmen (z.b. suchen & ersetzen)
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Smart #1 (ersetzt den e2008), Tesla Model Y LR.
Re: Support: EVCC
Hallo,
vielleicht könnte die Berechnung ins EVCC-Modul integriert werden, wenn der Wert nicht abrufbar ist:
Reichweite = Kapazität der Batterie / Durchschnittsverbrauch * 100
Kapazität der Batterie und Durchschnittsverbrauch sind im Fahrzeugprofil bereits vorhanden. 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
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
Re: Support: EVCC
Token hoffentlich entfernt.... hab ich wohl vergessen.mrinas hat geschrieben: ↑Di Jun 25, 2024 11:09 am Kannst Du bitte mal die Konfiguration vom vehicle 3 kontrollieren, hier scheint ein ungültiger Wert für die VIN (' CAR-ID') gespeichert zu sein:
Ich schau' mir ein Eingabevalidierung noch mal an, solche ungültigen Werte sollten wir eigentlich direkt in der UI abfangen.Code: Alles auswählen
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': 'xxx', 'vehicle_type': 'id', 'VIN': ' CAR-ID'}
Zudem bitte das gepostete Log entfernen oder zumindest dein Sponsor-Token rausnehmen (z.b. suchen & ersetzen)
Hatte eigentlich gepasst mit Vehicle 3.... hab noch mal das Modulgelöscht und wieder eingetragen.
PV 1: 13,4 kWp
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
PV 2: in Planung (16,4 kWp)
Hausakku: E3DC S10 Pro
WB 1: openWB series2 custom
WB 2: openWB series2 custom
BEV 1: Cupra Born
BEV 2: AUDI Q4
- mrinas
- Beiträge: 2256
- Registriert: Mi Jan 29, 2020 10:12 pm
- Has thanked: 30 times
- Been thanked: 29 times
Re: Support: EVCC
Das wäre möglich, klar. Solche Dinge sollten aber zentral in der openWB implementiert werden, und nicht in jedem SoC Modul separat. So ist es auch mit der Berechnung des SoC während des Ladens. -> Feature Request.Proxima hat geschrieben: ↑Di Jun 25, 2024 11:43 amHallo,
vielleicht könnte die Berechnung ins EVCC-Modul integriert werden, wenn der Wert nicht abrufbar ist:
Reichweite = Kapazität der Batterie / Durchschnittsverbrauch * 100
Kapazität der Batterie und Durchschnittsverbrauch sind im Fahrzeugprofil bereits vorhanden.
Fahrzeugprofil.jpg
Grüße
Proxima
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Smart #1 (ersetzt den e2008), Tesla Model Y LR.
Re: Support: EVCC
Die geladene Reichweite wird berechnet und im Standard-Theme auf der Hauptseite angezeigt.
- mrinas
- Beiträge: 2256
- Registriert: Mi Jan 29, 2020 10:12 pm
- Has thanked: 30 times
- Been thanked: 29 times
Re: Support: EVCC
danke Lena. Hier geht es nicht um die geladene Reichweite sondern viel mehr um die gesamte Reichweite des Fahrzeugs, sofern diese nicht durch den SoC Anbieter geliefert und im CarState abgelegt wird.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Smart #1 (ersetzt den e2008), Tesla Model Y LR.
Re: Support: EVCC
Seltsam. Ich hatte auch eine funktionierende Integration - bis zum Samstag 22.06. Um 12:06, also eine Minute nach Dir, hatte ich dann exakt die gleiche Fehlermeldung: "vehicle not available". Neu Setzen des EVCC Moduls brachte Abhilfe.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 hätte da jetzt den Rückschluß daraus gezogen, dass das Problem beim EVCC Server liegt und er dort die vehicle ID verloren hat...
OpenWB Duo, Leaf ZE1 MY 2020, Combo-e MY 2022
- mrinas
- Beiträge: 2256
- Registriert: Mi Jan 29, 2020 10:12 pm
- Has thanked: 30 times
- Been thanked: 29 times
Re: Support: EVCC
Ja, das mag durchaus sein. In dem o.g. neuen Branch ist zusätzliche Fehlerbehandlung enthalten um eine gespeicherte, aber nicht mehr gültige Fahrzeug-ID neu zu erstellen. Gern auch auf den Branch wechseln, und eine Weile beobachten.zemr hat geschrieben: ↑Do Jun 27, 2024 8:42 pmSeltsam. Ich hatte auch eine funktionierende Integration - bis zum Samstag 22.06. Um 12:06, also eine Minute nach Dir, hatte ich dann exakt die gleiche Fehlermeldung: "vehicle not available". Neu Setzen des EVCC Moduls brachte Abhilfe.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 hätte da jetzt den Rückschluß daraus gezogen, dass das Problem beim EVCC Server liegt und er dort die vehicle ID verloren hat...
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Smart #1 (ersetzt den e2008), Tesla Model Y LR.