Fehler tritt auf nach Anstecken zum Laden, danach wiederholt er sich bei jedem SOC-Abfragen während der Ladung.
Code: Alles auswählen
2024-04-06 22:02:03,150 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.tronity.config.TronityVehicleSoc'>
2024-04-06 22:02:03,153 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=33)
2024-04-06 22:02:03,154 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=46000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-04-06 22:02:03,156 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev1} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-04-06 22:02:03,157 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['Tronity']
2024-04-06 22:02:03,158 - {modules.vehicles.tronity.api:17} - {DEBUG:fetch soc_ev1} - Fetching Tronity SOC
2024-04-06 22:02:03,160 - {modules.vehicles.tronity.api:29} - {DEBUG:fetch soc_ev1} - Found Token: <token entfernt>
2024-04-06 22:02:03,162 - {modules.vehicles.tronity.api:36} - {DEBUG:fetch soc_ev1} - Token still valid: {'sub': '<zahl entfernt>', 'appId': '<zahl entfernt>', 'vehicleId': None, 'scopes': [], 'role': 'user', 'iat': 1712433636, 'exp': 1712520036, 'aud': 'https://platform.tronity.io', 'iss': 'platform.tronity.io'}
2024-04-06 22:02:03,164 - {modules.vehicles.tronity.api:74} - {DEBUG:fetch soc_ev1} - Using existing Tronity Access Token
2024-04-06 22:02:03,183 - {urllib3.connectionpool:973} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): api.tronity.tech:443
2024-04-06 22:02:03,183 - {urllib3.connectionpool:973} - {DEBUG:fetch soc_ev1} - Starting new HTTPS connection (1): api.tronity.tech:443
2024-04-06 22:02:03,403 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev1} - https://api.tronity.tech:443 "GET /tronity/vehicles/660044a76d2a560014045091/last_record HTTP/1.1" 200 239
2024-04-06 22:02:03,403 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev1} - https://api.tronity.tech:443 "GET /tronity/vehicles/660044a76d2a560014045091/last_record HTTP/1.1" 200 239
2024-04-06 22:02:03,407 - {modules.vehicles.tronity.api:99} - {DEBUG:fetch soc_ev1} - Retrieved Tronity data: {'odometer': 10061.8, 'range': 104, 'level': 33, 'charging': 'Disconnected', 'plugged': False, 'chargerPower': None, 'chargeRemainingTime': None, 'latitude': 48.47967, 'longitude': 9.19697, 'status': None, 'timestamp': 1712433560000, 'lastUpdate': 1712433560000}
2024-04-06 22:02:03,417 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev1} - Requested start soc from api: 33%
2024-04-06 22:02:03,421 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev1} - Raw data CarState(soc=33, range=104, soc_timestamp=1712433560000)
2024-04-06 22:02:03,449 - {modules.common.store._api:30} - {INFO:store soc_ev1} - Saving CarState(soc=33, range=104, soc_timestamp=1712433560000)
2024-04-06 22:07:05,535 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev1} - Vehicle Instance <class 'modules.vehicles.tronity.config.TronityVehicleSoc'>
2024-04-06 22:07:05,540 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev1} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=33)
2024-04-06 22:07:05,542 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev1} - Vehicle Update Data VehicleUpdateData(plug_state=True, charge_state=True, imported=2108981.93, battery_capacity=46000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None)
2024-04-06 22:07:05,547 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev1} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=300, request_interval_not_charging=3600, request_only_plugged=False)
2024-04-06 22:07:05,551 - {modules.common.component_context:25} - {DEBUG:fetch soc_ev1} - Update Komponente ['Tronity']
2024-04-06 22:07:05,553 - {modules.common.fault_state:49} - {ERROR:fetch soc_ev1} - Tronity: FaultState FaultStateLevel.ERROR, FaultStr <class 'TypeError'> ("unsupported operand type(s) for -: 'float' and 'NoneType'",), 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 111, in _get_carstate_by_source
return CarState(soc=calc_soc.calc_soc(vehicle_update_data,
File "/var/www/html/openWB/packages/modules/vehicles/common/calc_soc/calc_soc.py", line 13, in calc_soc
imported_since_start = vehicle_update_data.imported - imported_start
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'