Closed cgms closed 2 weeks ago
I am having the exact same issue. I also own an Ioniq 5.
Same issue here, including the dashed lines in all the graphs.
Tbh I do not think vehicle location has anything to do with it. I'm having the same issues when the car is on my driveway or parked at the office.
I think any time the API does not answer, all the states immediately flip to 'unavailable'. This is making it very annoying to automate against because you'll always have to guard against invalid data.
I hope it can be fixed.
My car is doing the same for a few months now, even when the car has proper signal. I can see the updates in the native app but not in Home Assistant. The location of the car hasn't changed.
I've been having this for a few months as well. Getting quite frustrating, wonder if a bodge can be put in place just to get it to show the last real state.
I've been having this for a few months as well. Getting quite frustrating, wonder if a bodge can be put in place just to get it to show the last real state.
I hope so too, because it's making automations using my EV nearly impossible.
I assume multiple sensors are doing this? The api itself is failing to work by the looks of it.
It’s all the sensors at the same time. When trying to send a command like lock/unlock it will fail immediately as well with an error code when it’s in this state.
I’ll try to get the error the next time it happens.
I experienced a very similar issue 2 days ago. (10. September 02:30-05:00 GMT+2) It looks like there were some problems on the remote side, because I got the following error messages:
Due to this errors the entities were unavailable for ~2,5 hours: I got 2 times the Response timeout and 3 times the Internal server error messages. My car was parking in the garage during this time, but I would expect such situations to be handled properly: not trying to update the values if there is an error, just keep the latest one.
All integrations in home assistant go unavailable when no data isnt available. Otherwise the timelines won't be accurate. Fudging the data creates inaccuracy in charts.
It’s all the sensors at the same time. When trying to send a command like lock/unlock it will fail immediately as well with an error code when it’s in this state.
I’ll try to get the error the next time it happens.
So this is the error I get when trying to refresh the data when it’s in this error state sometimes.
I get other errors sometimes so I’ll paste those too when I get them. Someone let me know if there’s a more useful way I can do this.
Debug logs of that error would be helpful.
Debug logs of that error would be helpful.
Logger: homeassistant.components.websocket_api.http.connection Quelle: custom_components/kia_uvo/coordinator.py:154 Integration: Home Assistant WebSocket API (Dokumentation, Probleme) Erstmals aufgetreten: 30. September 2024 um 18:03:04 (5 Vorkommnisse) Zuletzt protokolliert: 12:50:52
[139721653127200] Error handling message: Unknown error (unknown_error) Martin from 172.16.10.155 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0) [139722769576960] Error handling message: Unknown error (unknown_error) Martin from 127.0.0.1 (Mozilla/5.0 (Linux; Android 14; 23049PCD8G Build/UKQ1.230804.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.70 Mobile Safari/537.36 Home Assistant/2024.7.3-13278 (Android 14; 23049PCD8G)) [139721732504256] Error handling message: Unknown error (unknown_error) Martin from 172.16.10.155 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0) [139722323828816] Error handling message: Unknown error (unknown_error) Martin from 127.0.0.1 (Mozilla/5.0 (Linux; Android 14; 23049PCD8G Build/UKQ1.230804.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.70 Mobile Safari/537.36 Home Assistant/2024.9.4-13806 (Android 14; 23049PCD8G)) Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/init.py", line 514, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 386, in decode obj, end = self.raw_decode(s) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 120, in update_geocoded_location response = response.json() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 816, in handle_execute_script script_result = await script_obj.async_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1795, in async_run return await asyncio.shield(create_eager_task(run.async_run())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 527, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 557, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action return await long_task ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/kia_uvo/services.py", line 56, in async_handle_update await coordinator.async_update_all() File "/config/custom_components/kia_uvo/coordinator.py", line 154, in async_update_all await self.hass.async_add_executor_job( File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state self.update_vehicle_with_cached_state(vehicle_id) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 92, in update_vehicle_with_cached_state self.api.update_geocoded_location( File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 123, in update_geocoded_location vehicle.geocode = None ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/Vehicle.py", line 316, in geocode self._geocode_name = value[0]
TypeError: 'NoneType' object is not subscriptable
And also at the same time:
Logger: homeassistant.helpers.script.websocket_api_script
Quelle: helpers/script.py:525
Erstmals aufgetreten: 30. September 2024 um 18:03:04 (5 Vorkommnisse)
Zuletzt protokolliert: 12:50:52
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/__init__.py", line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 120, in update_geocoded_location
response = response.json()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/kia_uvo/services.py", line 56, in async_handle_update
await coordinator.async_update_all()
File "/config/custom_components/kia_uvo/coordinator.py", line 154, in async_update_all
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(vehicle_id)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 92, in update_vehicle_with_cached_state
self.api.update_geocoded_location(
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 123, in update_geocoded_location
vehicle.geocode = None
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/Vehicle.py", line 316, in geocode
self._geocode_name = value[0]
~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
Debug logs of that error would be helpful.
And debug:
2024-10-02 14:53:50.514 DEBUG (MainThread) [custom_components.kia_uvo.services] Call:{'device_id': '8677e74ff01aca5b207d6e660c09855f'} 2024-10-02 14:53:50.980 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_cached_vehicle_status response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'resCode': '0000', 'ServiceNo': 'RVS-K', 'RetCode': 'S', 'lastUpdateTime': '1727873100619', 'state': {'Vehicle': {'Body': {'Windshield': {'Rear': {'Defog': {'State': 0}}, 'Front': {'Heat': {'State': 0}, 'Defog': {'State': 0}, 'WasherFluid': {'LevelLow': 0}}}, 'Sunroof': {'Glass': {'Open': 0}}, 'Lights': {'DischargeAlert': {'State': 0}, 'Front': {'HeadLamp': {'SystemWarning': 0}, 'Left': {'Low': {'Warning': 0}, 'High': {'Warning': 0}, 'TurnSignal': {'Warning': 0}}, 'Right': {'Low': {'Warning': 0}, 'High': {'Warning': 0}, 'TurnSignal': {'Warning': 0}}}, 'Rear': {'Left': {'StopLamp': {'Warning': 0}, 'TurnSignal': {'Warning': 0}}, 'Right': {'StopLamp': {'Warning': 0}, 'TurnSignal': {'Warning': 0}}}, 'TailLamp': {'Alert': 0}, 'Hazard': {'Alert': 0}}, 'Hood': {'Open': 0}, 'Trunk': {'Open': 0}}, 'Cabin': {'RestMode': {'State': 0}, 'HVAC': {'Vent': {'FineDust': {'Level': 0}, 'AirCleaning': {'Indicator': 1, 'SymbolColor': 0}}, 'Row1': {'Driver': {'Temperature': {'Value': 'OFF', 'Unit': 0}, 'Blower': {'SpeedLevel': 0}}}, 'Temperature': {'RangeType': 1}}, 'Door': {'Row1': {'Passenger': {'Lock': 0, 'Open': 0}, 'Driver': {'Open': 0, 'Lock': 0}}, 'Row2': {'Left': {'Lock': 0, 'Open': 0}, 'Right': {'Lock': 0, 'Open': 0}}}, 'Seat': {'Row2': {'Left': {'Climate': {'State': 2}}, 'Right': {'Climate': {'State': 2}}}, 'Row1': {'Passenger': {'Climate': {'State': 2}}, 'Driver': {'Climate': {'State': 2}}}}, 'Window': {'Row1': {'Driver': {'Open': 0, 'OpenLevel': 0}, 'Passenger': {'Open': 0, 'OpenLevel': 0}}, 'Row2': {'Left': {'Open': 0, 'OpenLevel': 0}, 'Right': {'Open': 0, 'OpenLevel': 0}}}, 'SteeringWheel': {'Heat': {'RemoteControl': {'Step': 0}, 'State': 0}}}, 'Chassis': {'DrivingMode': {'State': 'Normal'}, 'Axle': {'Row1': {'Left': {'Tire': {'PressureLow': 0, 'Pressure': 0}}, 'Right': {'Tire': {'PressureLow': 0, 'Pressure': 0}}}, 'Row2': {'Left': {'Tire': {'PressureLow': 0, 'Pressure': 0}}, 'Right': {'Tire': {'PressureLow': 0, 'Pressure': 0}}}, 'Tire': {'PressureLow': 0}}, 'Brake': {'Fluid': {'Warning': 0}}}, 'Drivetrain': {'FuelSystem': {'DTE': {'Unit': 1, 'Total': 0}, 'LowFuelWarning': 0, 'FuelLevel': 0, 'AverageFuelEconomy': {'Drive': 21.1, 'AfterRefuel': 21.9, 'Accumulated': 19, 'Unit': 5}}, 'Odometer': 1363.3, 'Transmission': {'ParkingPosition': 1}}, 'Electronics': {'Battery': {'Auxiliary': {'FailWarning': 0}, 'Level': 83, 'Charging': {'WarningLevel': 65}, 'PowerStateAlert': {'ClassC': 2}, 'SensorReliability': 0}, 'AutoCut': {'PowerMode': 2, 'BatteryPreWarning': 0, 'DeliveryMode': 2}, 'FOB': {'LowBattery': 0}, 'PowerSupply': {'Accessory': 0, 'Ignition3': 0, 'Ignition1': 0}}, 'Green': {'DrivingReady': 0, 'PowerConsumption': {'Prediction': {'Climate': 0}}, 'BatteryManagement': {'SoH': {'Ratio': 100}, 'BatteryRemain': {'Value': 126158.4, 'Ratio': 57.5}, 'BatteryConditioning': 0, 'BatteryPreCondition': {'Status': 0, 'TemperatureLevel': 1}, 'BatteryCapacity': {'Value': 235440}}, 'Electric': {'SmartGrid': {'VehicleToLoad': {'DischargeLimitation': {'SoC': 20, 'RemainTime': 0}}, 'VehicleToGrid': {'Mode': 0}, 'RealTimePower': 0}}, 'ChargingInformation': {'EstimatedTime': {'ICCB': 0, 'Standard': 0, 'Quick': 0, 'Unit': 1}, 'ExpectedTime': {'StartDay': 7, 'StartHour': 31, 'StartMin': 63, 'EndDay': 7, 'EndHour': 31, 'EndMin': 63}, 'DTE': {'TargetSoC': {'Standard': 370, 'Quick': 325}}, 'ConnectorFastening': {'State': 0}, 'SequenceDetails': 0, 'SequenceSubcode': 0, 'ElectricCurrentLevel': {'State': 1}, 'Charging': {'RemainTime': 0, 'RemainTimeUnit': 1}, 'TargetSoC': {'Standard': 90, 'Quick': 80}}, 'Reservation': {'Departure': {'Schedule1': {'Hour': 31, 'Min': 70, 'Mon': 0, 'Tue': 0, 'Wed': 0, 'Thu': 0, 'Enable': 0, 'Fri': 0, 'Sat': 0, 'Sun': 0}, 'Schedule2': {'Hour': 31, 'Min': 70, 'Mon': 0, 'Tue': 0, 'Wed': 0, 'Thu': 0, 'Enable': 0, 'Fri': 0, 'Sat': 0, 'Sun': 0, 'Climate': {'Defrost': 0, 'TemperatureHex': '00', 'Temperature': 'OFF'}, 'Activation': 0}, 'Climate': {'Activation': 0, 'TemperatureHex': '00', 'Defrost': 0, 'TemperatureUnit': 0, 'Temperature': 'OFF'}, 'Climate2': {'Activation': 0, 'Defrost': 0, 'TemperatureUnit': 0, 'TemperatureHex': '00', 'Temperature': 'OFF'}}, 'OffPeakTime': {'StartHour': 31, 'StartMin': 70, 'EndHour': 31, 'EndMin': 70, 'Mode': 0}, 'OffPeakTime2': {'StartHour': 31, 'StartMin': 70, 'EndHour': 31, 'EndMin': 70}}, 'EnergyInformation': {'DTE': {'Invalid': 0}}, 'PlugAndCharge': {'ContractCertificate1': {'Company': '\x00\x00\x00\x00\x00', 'CompanyMask': 0, 'State': 2, 'Year': 0, 'Mon': 0}, 'ContractCertificate2': {'Company': '\x00\x00\x00\x00\x00', 'CompanyMask': 0, 'State': 0, 'Year': 0, 'Mon': 0}, 'ContractCertificate3': {'Company': '\x00\x00\x00\x00\x00', 'CompanyMask': 0, 'State': 0, 'Year': 0, 'Mon': 0}, 'ContractCertificate4': {'Company': '\x00\x00\x00\x00\x00', 'CompanyMask': 0, 'State': 0, 'Year': 0, 'Mon': 0}, 'ContractCertificate5': {'CompanyMask': 0, 'State': 0, 'Company': '\x00\x00\x00\x00\x00', 'Year': 0, 'Mon': 0}, 'ContractCertificate': {'SelectedCert': 0, 'Changeable': 1, 'Mode': 2}}, 'ChargingDoor': {'State': 2, 'ErrorState': 0}, 'DrivingHistory': {'Average': 21.9, 'Unit': 1}}, 'Service': {'ConnectedCar': {'RemoteControl': {'Available': 1, 'WaitingTime': 336}, 'ActiveAlert': {'Available': 0}}}, 'DrivingReady': 0, 'Version': 'CCU2024100212450001', 'Date': '20241002124500.000', 'Offset': '1.000000', 'RemoteControl': {'SleepMode': 1}, 'Location': {'Date': '20241002124218.518', 'GeoCoord': {'Altitude': 0, 'Latitude': 52.298663, 'Longitude': 9.934252, 'Type': 0}, 'Heading': 336.8999938964844, 'Offset': 2, 'Servicestate': 0, 'Speed': {'Unit': 0, 'Value': 0}, 'TimeStamp': {'Day': 2, 'Hour': 14, 'Min': 42, 'Mon': 10, 'Sec': 18, 'Year': 2024}, 'Version': 'HU2024100214421801'}, 'ConnectedService': {'OTA': {'ControllerStatus': 0}}}}}, 'msgId': '5f6232a0-80bd-11ef-bd47-4868f31dd382'} 2024-10-02 14:53:51.149 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info responseAlltime {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 704332, 'motorPwrCsp': 469942, 'climatePwrCsp': 197640, 'batteryMgPwrCsp': 5400, 'regenPwr': 157122, 'calculativeOdo': 1347.4000492095947, 'eDPwrCsp': 31350}, {'drivingPeriod': 1, 'totalPwrCsp': 3848, 'motorPwrCsp': 2567, 'climatePwrCsp': 1080, 'batteryMgPwrCsp': 29, 'regenPwr': 858, 'calculativeOdo': 7.362841798959534, 'eDPwrCsp': 171}, {'drivingPeriod': 2, 'totalPwrCsp': 32040, 'motorPwrCsp': 15272, 'climatePwrCsp': 15148, 'batteryMgPwrCsp': 0, 'regenPwr': 6010, 'calculativeOdo': 65.10009765625, 'eDPwrCsp': 1620}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20240913', 'totalPwrCsp': 52252, 'motorPwrCsp': 38391, 'climatePwrCsp': 11551, 'batteryMgPwrCsp': 700, 'regenPwr': 8106, 'calculativeOdo': 136.9999942779541, 'eDPwrCsp': 1610}, {'drivingPeriod': 0, 'drivingDate': '20240924', 'totalPwrCsp': 19047, 'motorPwrCsp': 12232, 'climatePwrCsp': 5465, 'batteryMgPwrCsp': 300, 'regenPwr': 4523, 'calculativeOdo': 70.5, 'eDPwrCsp': 1050}, {'drivingPeriod': 0, 'drivingDate': '20240912', 'totalPwrCsp': 1719, 'motorPwrCsp': 486, 'climatePwrCsp': 853, 'batteryMgPwrCsp': 0, 'regenPwr': 251, 'calculativeOdo': 1.1999998092651367, 'eDPwrCsp': 380}, {'drivingPeriod': 0, 'drivingDate': '20240923', 'totalPwrCsp': 32304, 'motorPwrCsp': 24160, 'climatePwrCsp': 6494, 'batteryMgPwrCsp': 200, 'regenPwr': 8953, 'calculativeOdo': 114.10003662109375, 'eDPwrCsp': 1450}, {'drivingPeriod': 0, 'drivingDate': '20240922', 'totalPwrCsp': 9726, 'motorPwrCsp': 6372, 'climatePwrCsp': 2944, 'batteryMgPwrCsp': 0, 'regenPwr': 2652, 'calculativeOdo': 26.39996337890625, 'eDPwrCsp': 410}, {'drivingPeriod': 0, 'drivingDate': '20240921', 'totalPwrCsp': 37132, 'motorPwrCsp': 28033, 'climatePwrCsp': 7839, 'batteryMgPwrCsp': 0, 'regenPwr': 11465, 'calculativeOdo': 85.10003662109375, 'eDPwrCsp': 1260}, {'drivingPeriod': 0, 'drivingDate': '20240917', 'totalPwrCsp': 19409, 'motorPwrCsp': 11461, 'climatePwrCsp': 7178, 'batteryMgPwrCsp': 0, 'regenPwr': 4403, 'calculativeOdo': 53.20001220703125, 'eDPwrCsp': 770}, {'drivingPeriod': 0, 'drivingDate': '20240928', 'totalPwrCsp': 12686, 'motorPwrCsp': 6461, 'climatePwrCsp': 5645, 'batteryMgPwrCsp': 0, 'regenPwr': 2655, 'calculativeOdo': 29.699951171875, 'eDPwrCsp': 580}, {'drivingPeriod': 0, 'drivingDate': '20240905', 'totalPwrCsp': 174, 'motorPwrCsp': 12, 'climatePwrCsp': 142, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0, 'eDPwrCsp': 20}, {'drivingPeriod': 0, 'drivingDate': '20240916', 'totalPwrCsp': 22272, 'motorPwrCsp': 11667, 'climatePwrCsp': 9725, 'batteryMgPwrCsp': 0, 'regenPwr': 4084, 'calculativeOdo': 52, 'eDPwrCsp': 880}, {'drivingPeriod': 0, 'drivingDate': '20240927', 'totalPwrCsp': 32616, 'motorPwrCsp': 29687, 'climatePwrCsp': 1449, 'batteryMgPwrCsp': 0, 'regenPwr': 10307, 'calculativeOdo': 102.5, 'eDPwrCsp': 1480}, {'drivingPeriod': 0, 'drivingDate': '20240904', 'totalPwrCsp': 27, 'motorPwrCsp': 7, 'climatePwrCsp': 0, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0.10000038146972656, 'eDPwrCsp': 20}, {'drivingPeriod': 0, 'drivingDate': '20240915', 'totalPwrCsp': 72338, 'motorPwrCsp': 63188, 'climatePwrCsp': 7120, 'batteryMgPwrCsp': 0, 'regenPwr': 9976, 'calculativeOdo': 160.3000030517578, 'eDPwrCsp': 2030}, {'drivingPeriod': 0, 'drivingDate': '20240926', 'totalPwrCsp': 86675, 'motorPwrCsp': 48812, 'climatePwrCsp': 26723, 'batteryMgPwrCsp': 3200, 'regenPwr': 19441, 'calculativeOdo': 79.4000244140625, 'eDPwrCsp': 7940}, {'drivingPeriod': 0, 'drivingDate': '20240903', 'totalPwrCsp': 3528, 'motorPwrCsp': 52, 'climatePwrCsp': 3016, 'batteryMgPwrCsp': 0, 'regenPwr': 12, 'calculativeOdo': 0.19999980926513672, 'eDPwrCsp': 460}, {'drivingPeriod': 0, 'drivingDate': '20240914', 'totalPwrCsp': 49767, 'motorPwrCsp': 47569, 'climatePwrCsp': 998, 'batteryMgPwrCsp': 0, 'regenPwr': 12237, 'calculativeOdo': 92.80000305175781, 'eDPwrCsp': 1200}, {'drivingPeriod': 0, 'drivingDate': '20240925', 'totalPwrCsp': 9698, 'motorPwrCsp': 7749, 'climatePwrCsp': 1499, 'batteryMgPwrCsp': 0, 'regenPwr': 2531, 'calculativeOdo': 49.29998779296875, 'eDPwrCsp': 450}, {'drivingPeriod': 0, 'drivingDate': '20241002', 'totalPwrCsp': 15071, 'motorPwrCsp': 8535, 'climatePwrCsp': 5756, 'batteryMgPwrCsp': 0, 'regenPwr': 3323, 'calculativeOdo': 34.60009765625, 'eDPwrCsp': 780}, {'drivingPeriod': 0, 'drivingDate': '20241001', 'totalPwrCsp': 31211, 'motorPwrCsp': 13196, 'climatePwrCsp': 15435, 'batteryMgPwrCsp': 1000, 'regenPwr': 5330, 'calculativeOdo': 57.5999755859375, 'eDPwrCsp': 1580}, {'drivingPeriod': 0, 'drivingDate': '20240920', 'totalPwrCsp': 10447, 'motorPwrCsp': 5604, 'climatePwrCsp': 4433, 'batteryMgPwrCsp': 0, 'regenPwr': 2549, 'calculativeOdo': 25.5, 'eDPwrCsp': 410}, {'drivingPeriod': 0, 'drivingDate': '20240930', 'totalPwrCsp': 151077, 'motorPwrCsp': 80003, 'climatePwrCsp': 66334, 'batteryMgPwrCsp': 0, 'regenPwr': 32794, 'calculativeOdo': 62.7999267578125, 'eDPwrCsp': 4740}, {'drivingPeriod': 0, 'drivingDate': '20240919', 'totalPwrCsp': 9622, 'motorPwrCsp': 8297, 'climatePwrCsp': 645, 'batteryMgPwrCsp': 0, 'regenPwr': 4051, 'calculativeOdo': 27.29998779296875, 'eDPwrCsp': 680}, {'drivingPeriod': 0, 'drivingDate': '20240918', 'totalPwrCsp': 18119, 'motorPwrCsp': 13474, 'climatePwrCsp': 3705, 'batteryMgPwrCsp': 0, 'regenPwr': 6045, 'calculativeOdo': 62.0999755859375, 'eDPwrCsp': 940}, {'drivingPeriod': 0, 'drivingDate': '20240929', 'totalPwrCsp': 7415, 'motorPwrCsp': 4494, 'climatePwrCsp': 2691, 'batteryMgPwrCsp': 0, 'regenPwr': 1434, 'calculativeOdo': 23.7000732421875, 'eDPwrCsp': 230}]}, 'msgId': '5f76a500-80bd-11ef-bd47-2a4fa71b7450'} 2024-10-02 14:53:51.321 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info response30d {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 704332, 'motorPwrCsp': 469942, 'climatePwrCsp': 197640, 'batteryMgPwrCsp': 5400, 'regenPwr': 157122, 'calculativeOdo': 1347.4000492095947, 'eDPwrCsp': 31350}, {'drivingPeriod': 1, 'totalPwrCsp': 3848, 'motorPwrCsp': 2567, 'climatePwrCsp': 1080, 'batteryMgPwrCsp': 29, 'regenPwr': 858, 'calculativeOdo': 7.362841798959534, 'eDPwrCsp': 171}, {'drivingPeriod': 2, 'totalPwrCsp': 32040, 'motorPwrCsp': 15272, 'climatePwrCsp': 15148, 'batteryMgPwrCsp': 0, 'regenPwr': 6010, 'calculativeOdo': 65.10009765625, 'eDPwrCsp': 1620}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20240913', 'totalPwrCsp': 80998, 'motorPwrCsp': 66867, 'climatePwrCsp': 11551, 'batteryMgPwrCsp': 700, 'regenPwr': 13002, 'calculativeOdo': 141.4999942779541, 'eDPwrCsp': 1880}, {'drivingPeriod': 0, 'drivingDate': '20240924', 'totalPwrCsp': 19047, 'motorPwrCsp': 12232, 'climatePwrCsp': 5465, 'batteryMgPwrCsp': 300, 'regenPwr': 4523, 'calculativeOdo': 70.5, 'eDPwrCsp': 1050}, {'drivingPeriod': 0, 'drivingDate': '20240912', 'totalPwrCsp': 1719, 'motorPwrCsp': 486, 'climatePwrCsp': 853, 'batteryMgPwrCsp': 0, 'regenPwr': 251, 'calculativeOdo': 1.1999998092651367, 'eDPwrCsp': 380}, {'drivingPeriod': 0, 'drivingDate': '20240923', 'totalPwrCsp': 32304, 'motorPwrCsp': 24160, 'climatePwrCsp': 6494, 'batteryMgPwrCsp': 200, 'regenPwr': 8953, 'calculativeOdo': 114.10003662109375, 'eDPwrCsp': 1450}, {'drivingPeriod': 0, 'drivingDate': '20240922', 'totalPwrCsp': 9726, 'motorPwrCsp': 6372, 'climatePwrCsp': 2944, 'batteryMgPwrCsp': 0, 'regenPwr': 2652, 'calculativeOdo': 26.39996337890625, 'eDPwrCsp': 410}, {'drivingPeriod': 0, 'drivingDate': '20240921', 'totalPwrCsp': 37132, 'motorPwrCsp': 28033, 'climatePwrCsp': 7839, 'batteryMgPwrCsp': 0, 'regenPwr': 11465, 'calculativeOdo': 85.10003662109375, 'eDPwrCsp': 1260}, {'drivingPeriod': 0, 'drivingDate': '20240917', 'totalPwrCsp': 19409, 'motorPwrCsp': 11461, 'climatePwrCsp': 7178, 'batteryMgPwrCsp': 0, 'regenPwr': 4403, 'calculativeOdo': 53.20001220703125, 'eDPwrCsp': 770}, {'drivingPeriod': 0, 'drivingDate': '20240928', 'totalPwrCsp': 12686, 'motorPwrCsp': 6461, 'climatePwrCsp': 5645, 'batteryMgPwrCsp': 0, 'regenPwr': 2655, 'calculativeOdo': 29.699951171875, 'eDPwrCsp': 580}, {'drivingPeriod': 0, 'drivingDate': '20240905', 'totalPwrCsp': 174, 'motorPwrCsp': 12, 'climatePwrCsp': 142, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0, 'eDPwrCsp': 20}, {'drivingPeriod': 0, 'drivingDate': '20240916', 'totalPwrCsp': 22272, 'motorPwrCsp': 11667, 'climatePwrCsp': 9725, 'batteryMgPwrCsp': 0, 'regenPwr': 4084, 'calculativeOdo': 52, 'eDPwrCsp': 880}, {'drivingPeriod': 0, 'drivingDate': '20240927', 'totalPwrCsp': 32616, 'motorPwrCsp': 29687, 'climatePwrCsp': 1449, 'batteryMgPwrCsp': 0, 'regenPwr': 10307, 'calculativeOdo': 102.5, 'eDPwrCsp': 1480}, {'drivingPeriod': 0, 'drivingDate': '20240904', 'totalPwrCsp': 27, 'motorPwrCsp': 7, 'climatePwrCsp': 0, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0.10000038146972656, 'eDPwrCsp': 20}, {'drivingPeriod': 0, 'drivingDate': '20240915', 'totalPwrCsp': 72048, 'motorPwrCsp': 63188, 'climatePwrCsp': 7120, 'batteryMgPwrCsp': 0, 'regenPwr': 9976, 'calculativeOdo': 160.3000030517578, 'eDPwrCsp': 1740}, {'drivingPeriod': 0, 'drivingDate': '20240926', 'totalPwrCsp': 86675, 'motorPwrCsp': 48812, 'climatePwrCsp': 26723, 'batteryMgPwrCsp': 3200, 'regenPwr': 19441, 'calculativeOdo': 79.4000244140625, 'eDPwrCsp': 7940}, {'drivingPeriod': 0, 'drivingDate': '20240903', 'totalPwrCsp': 3528, 'motorPwrCsp': 52, 'climatePwrCsp': 3016, 'batteryMgPwrCsp': 0, 'regenPwr': 12, 'calculativeOdo': 0.19999980926513672, 'eDPwrCsp': 460}, {'drivingPeriod': 0, 'drivingDate': '20240914', 'totalPwrCsp': 21311, 'motorPwrCsp': 19093, 'climatePwrCsp': 998, 'batteryMgPwrCsp': 0, 'regenPwr': 7341, 'calculativeOdo': 88.30000305175781, 'eDPwrCsp': 1220}, {'drivingPeriod': 0, 'drivingDate': '20240925', 'totalPwrCsp': 9698, 'motorPwrCsp': 7749, 'climatePwrCsp': 1499, 'batteryMgPwrCsp': 0, 'regenPwr': 2531, 'calculativeOdo': 49.29998779296875, 'eDPwrCsp': 450}, {'drivingPeriod': 0, 'drivingDate': '20241002', 'totalPwrCsp': 15071, 'motorPwrCsp': 8535, 'climatePwrCsp': 5756, 'batteryMgPwrCsp': 0, 'regenPwr': 3323, 'calculativeOdo': 34.60009765625, 'eDPwrCsp': 780}, {'drivingPeriod': 0, 'drivingDate': '20241001', 'totalPwrCsp': 31211, 'motorPwrCsp': 13196, 'climatePwrCsp': 15435, 'batteryMgPwrCsp': 1000, 'regenPwr': 5330, 'calculativeOdo': 57.5999755859375, 'eDPwrCsp': 1580}, {'drivingPeriod': 0, 'drivingDate': '20240920', 'totalPwrCsp': 10447, 'motorPwrCsp': 5604, 'climatePwrCsp': 4433, 'batteryMgPwrCsp': 0, 'regenPwr': 2549, 'calculativeOdo': 25.5, 'eDPwrCsp': 410}, {'drivingPeriod': 0, 'drivingDate': '20240930', 'totalPwrCsp': 151077, 'motorPwrCsp': 80003, 'climatePwrCsp': 66334, 'batteryMgPwrCsp': 0, 'regenPwr': 32794, 'calculativeOdo': 62.7999267578125, 'eDPwrCsp': 4740}, {'drivingPeriod': 0, 'drivingDate': '20240919', 'totalPwrCsp': 9622, 'motorPwrCsp': 8297, 'climatePwrCsp': 645, 'batteryMgPwrCsp': 0, 'regenPwr': 4051, 'calculativeOdo': 27.29998779296875, 'eDPwrCsp': 680}, {'drivingPeriod': 0, 'drivingDate': '20240918', 'totalPwrCsp': 18119, 'motorPwrCsp': 13474, 'climatePwrCsp': 3705, 'batteryMgPwrCsp': 0, 'regenPwr': 6045, 'calculativeOdo': 62.0999755859375, 'eDPwrCsp': 940}, {'drivingPeriod': 0, 'drivingDate': '20240929', 'totalPwrCsp': 7415, 'motorPwrCsp': 4494, 'climatePwrCsp': 2691, 'batteryMgPwrCsp': 0, 'regenPwr': 1434, 'calculativeOdo': 23.7000732421875, 'eDPwrCsp': 230}]}, 'msgId': '5f918000-80bd-11ef-aba2-d48074313341'} 2024-10-02 14:53:51.322 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.Vehicle] before daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 9, 13, 0, 0), total_consumed=80998, engine_consumption=66867, climate_consumption=11551, onboard_electronics_consumption=1880, battery_care_consumption=700, regenerated_energy=13002, distance=141.4999942779541, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 24, 0, 0), total_consumed=19047, engine_consumption=12232, climate_consumption=5465, onboard_electronics_consumption=1050, battery_care_consumption=300, regenerated_energy=4523, distance=70.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 12, 0, 0), total_consumed=1719, engine_consumption=486, climate_consumption=853, onboard_electronics_consumption=380, battery_care_consumption=0, regenerated_energy=251, distance=1.1999998092651367, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 23, 0, 0), total_consumed=32304, engine_consumption=24160, climate_consumption=6494, onboard_electronics_consumption=1450, battery_care_consumption=200, regenerated_energy=8953, distance=114.10003662109375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 22, 0, 0), total_consumed=9726, engine_consumption=6372, climate_consumption=2944, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=2652, distance=26.39996337890625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 21, 0, 0), total_consumed=37132, engine_consumption=28033, climate_consumption=7839, onboard_electronics_consumption=1260, battery_care_consumption=0, regenerated_energy=11465, distance=85.10003662109375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 17, 0, 0), total_consumed=19409, engine_consumption=11461, climate_consumption=7178, onboard_electronics_consumption=770, battery_care_consumption=0, regenerated_energy=4403, distance=53.20001220703125, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 28, 0, 0), total_consumed=12686, engine_consumption=6461, climate_consumption=5645, onboard_electronics_consumption=580, battery_care_consumption=0, regenerated_energy=2655, distance=29.699951171875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 5, 0, 0), total_consumed=174, engine_consumption=12, climate_consumption=142, onboard_electronics_consumption=20, battery_care_consumption=0, regenerated_energy=0, distance=0, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 16, 0, 0), total_consumed=22272, engine_consumption=11667, climate_consumption=9725, onboard_electronics_consumption=880, battery_care_consumption=0, regenerated_energy=4084, distance=52, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 27, 0, 0), total_consumed=32616, engine_consumption=29687, climate_consumption=1449, onboard_electronics_consumption=1480, battery_care_consumption=0, regenerated_energy=10307, distance=102.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 4, 0, 0), total_consumed=27, engine_consumption=7, climate_consumption=0, onboard_electronics_consumption=20, battery_care_consumption=0, regenerated_energy=0, distance=0.10000038146972656, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 15, 0, 0), total_consumed=72048, engine_consumption=63188, climate_consumption=7120, onboard_electronics_consumption=1740, battery_care_consumption=0, regenerated_energy=9976, distance=160.3000030517578, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 26, 0, 0), total_consumed=86675, engine_consumption=48812, climate_consumption=26723, onboard_electronics_consumption=7940, battery_care_consumption=3200, regenerated_energy=19441, distance=79.4000244140625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 3, 0, 0), total_consumed=3528, engine_consumption=52, climate_consumption=3016, onboard_electronics_consumption=460, battery_care_consumption=0, regenerated_energy=12, distance=0.19999980926513672, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 14, 0, 0), total_consumed=21311, engine_consumption=19093, climate_consumption=998, onboard_electronics_consumption=1220, battery_care_consumption=0, regenerated_energy=7341, distance=88.30000305175781, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 25, 0, 0), total_consumed=9698, engine_consumption=7749, climate_consumption=1499, onboard_electronics_consumption=450, battery_care_consumption=0, regenerated_energy=2531, distance=49.29998779296875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 10, 2, 0, 0), total_consumed=15071, engine_consumption=8535, climate_consumption=5756, onboard_electronics_consumption=780, battery_care_consumption=0, regenerated_energy=3323, distance=34.60009765625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 10, 1, 0, 0), total_consumed=31211, engine_consumption=13196, climate_consumption=15435, onboard_electronics_consumption=1580, battery_care_consumption=1000, regenerated_energy=5330, distance=57.5999755859375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 20, 0, 0), total_consumed=10447, engine_consumption=5604, climate_consumption=4433, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=2549, distance=25.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 30, 0, 0), total_consumed=151077, engine_consumption=80003, climate_consumption=66334, onboard_electronics_consumption=4740, battery_care_consumption=0, regenerated_energy=32794, distance=62.7999267578125, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 19, 0, 0), total_consumed=9622, engine_consumption=8297, climate_consumption=645, onboard_electronics_consumption=680, battery_care_consumption=0, regenerated_energy=4051, distance=27.29998779296875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 18, 0, 0), total_consumed=18119, engine_consumption=13474, climate_consumption=3705, onboard_electronics_consumption=940, battery_care_consumption=0, regenerated_energy=6045, distance=62.0999755859375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 29, 0, 0), total_consumed=7415, engine_consumption=4494, climate_consumption=2691, onboard_electronics_consumption=230, battery_care_consumption=0, regenerated_energy=1434, distance=23.7000732421875, distance_unit='km')] 2024-10-02 14:53:51.322 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.Vehicle] after daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 10, 2, 0, 0), total_consumed=15071, engine_consumption=8535, climate_consumption=5756, onboard_electronics_consumption=780, battery_care_consumption=0, regenerated_energy=3323, distance=34.60009765625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 10, 1, 0, 0), total_consumed=31211, engine_consumption=13196, climate_consumption=15435, onboard_electronics_consumption=1580, battery_care_consumption=1000, regenerated_energy=5330, distance=57.5999755859375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 30, 0, 0), total_consumed=151077, engine_consumption=80003, climate_consumption=66334, onboard_electronics_consumption=4740, battery_care_consumption=0, regenerated_energy=32794, distance=62.7999267578125, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 29, 0, 0), total_consumed=7415, engine_consumption=4494, climate_consumption=2691, onboard_electronics_consumption=230, battery_care_consumption=0, regenerated_energy=1434, distance=23.7000732421875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 28, 0, 0), total_consumed=12686, engine_consumption=6461, climate_consumption=5645, onboard_electronics_consumption=580, battery_care_consumption=0, regenerated_energy=2655, distance=29.699951171875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 27, 0, 0), total_consumed=32616, engine_consumption=29687, climate_consumption=1449, onboard_electronics_consumption=1480, battery_care_consumption=0, regenerated_energy=10307, distance=102.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 26, 0, 0), total_consumed=86675, engine_consumption=48812, climate_consumption=26723, onboard_electronics_consumption=7940, battery_care_consumption=3200, regenerated_energy=19441, distance=79.4000244140625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 25, 0, 0), total_consumed=9698, engine_consumption=7749, climate_consumption=1499, onboard_electronics_consumption=450, battery_care_consumption=0, regenerated_energy=2531, distance=49.29998779296875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 24, 0, 0), total_consumed=19047, engine_consumption=12232, climate_consumption=5465, onboard_electronics_consumption=1050, battery_care_consumption=300, regenerated_energy=4523, distance=70.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 23, 0, 0), total_consumed=32304, engine_consumption=24160, climate_consumption=6494, onboard_electronics_consumption=1450, battery_care_consumption=200, regenerated_energy=8953, distance=114.10003662109375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 22, 0, 0), total_consumed=9726, engine_consumption=6372, climate_consumption=2944, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=2652, distance=26.39996337890625, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 21, 0, 0), total_consumed=37132, engine_consumption=28033, climate_consumption=7839, onboard_electronics_consumption=1260, battery_care_consumption=0, regenerated_energy=11465, distance=85.10003662109375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 20, 0, 0), total_consumed=10447, engine_consumption=5604, climate_consumption=4433, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=2549, distance=25.5, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 19, 0, 0), total_consumed=9622, engine_consumption=8297, climate_consumption=645, onboard_electronics_consumption=680, battery_care_consumption=0, regenerated_energy=4051, distance=27.29998779296875, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 18, 0, 0), total_consumed=18119, engine_consumption=13474, climate_consumption=3705, onboard_electronics_consumption=940, battery_care_consumption=0, regenerated_energy=6045, distance=62.0999755859375, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 17, 0, 0), total_consumed=19409, engine_consumption=11461, climate_consumption=7178, onboard_electronics_consumption=770, battery_care_consumption=0, regenerated_energy=4403, distance=53.20001220703125, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 16, 0, 0), total_consumed=22272, engine_consumption=11667, climate_consumption=9725, onboard_electronics_consumption=880, battery_care_consumption=0, regenerated_energy=4084, distance=52, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 15, 0, 0), total_consumed=72048, engine_consumption=63188, climate_consumption=7120, onboard_electronics_consumption=1740, battery_care_consumption=0, regenerated_energy=9976, distance=160.3000030517578, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 14, 0, 0), total_consumed=21311, engine_consumption=19093, climate_consumption=998, onboard_electronics_consumption=1220, battery_care_consumption=0, regenerated_energy=7341, distance=88.30000305175781, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 13, 0, 0), total_consumed=80998, engine_consumption=66867, climate_consumption=11551, onboard_electronics_consumption=1880, battery_care_consumption=700, regenerated_energy=13002, distance=141.4999942779541, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 12, 0, 0), total_consumed=1719, engine_consumption=486, climate_consumption=853, onboard_electronics_consumption=380, battery_care_consumption=0, regenerated_energy=251, distance=1.1999998092651367, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 5, 0, 0), total_consumed=174, engine_consumption=12, climate_consumption=142, onboard_electronics_consumption=20, battery_care_consumption=0, regenerated_energy=0, distance=0, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 4, 0, 0), total_consumed=27, engine_consumption=7, climate_consumption=0, onboard_electronics_consumption=20, battery_care_consumption=0, regenerated_energy=0, distance=0.10000038146972656, distance_unit='km'), DailyDrivingStats(date=datetime.datetime(2024, 9, 3, 0, 0), total_consumed=3528, engine_consumption=52, climate_consumption=3016, onboard_electronics_consumption=460, battery_care_consumption=0, regenerated_energy=12, distance=0.19999980926513672, distance_unit='km')] 2024-10-02 14:53:51.322 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.ApiImpl] hyundai_kia_connect_api - Running update geocode location with value: https://nominatim.openstreetmap.org/reverse?lat=52.298663&lon=9.934252&format=json&addressdetails=1&zoom=18 2024-10-02 14:53:51.659 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.ApiImpl] hyundai_kia_connect_api - geocode location raw response: <Response [403]> 2024-10-02 14:53:51.660 DEBUG (SyncWorker_39) [hyundai_kia_connect_api.ApiImpl] hyundai_kia_connect_api - failed to decode json for geocode location 2024-10-02 14:53:51.661 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/init.py", line 514, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 386, in decode obj, end = self.raw_decode(s) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 120, in update_geocoded_location response = response.json() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action return await long_task ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/kia_uvo/services.py", line 56, in async_handle_update await coordinator.async_update_all() File "/config/custom_components/kia_uvo/coordinator.py", line 154, in async_update_all await self.hass.async_add_executor_job( File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state self.update_vehicle_with_cached_state(vehicle_id) File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 92, in update_vehicle_with_cached_state self.api.update_geocoded_location( File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 123, in update_geocoded_location vehicle.geocode = None ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/Vehicle.py", line 316, in geocode self._geocode_name = value[0]
TypeError: 'NoneType' object is not subscriptable
2024-10-02 14:53:51.664 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139722738750736] Error handling message: Unknown error (unknown_error) Martin from 172.16.10.155 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/__init__.py", line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 120, in update_geocoded_location
response = response.json()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 816, in handle_execute_script
script_result = await script_obj.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1795, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 527, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 557, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/kia_uvo/services.py", line 56, in async_handle_update
await coordinator.async_update_all()
File "/config/custom_components/kia_uvo/coordinator.py", line 154, in async_update_all
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 85, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(vehicle_id)
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 92, in update_vehicle_with_cached_state
self.api.update_geocoded_location(
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/ApiImpl.py", line 123, in update_geocoded_location
vehicle.geocode = None
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hyundai_kia_connect_api/Vehicle.py", line 316, in geocode
self._geocode_name = value[0]
~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
Try the latest update and let me know if improved.
Well I’m only about 10 hours in since the update, but so far no drops in the data! I’ll report back if it does drop regularly again, but it would have happened a handful of times by now already.
Thank you very much!
I'm running the new version for 24 hours now and I can add to that: no single loss of data after this update. You seem to have fixed it.
Thanks a million!
Agree, no loss seen since updating. Closing the issue.
Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Region and Brand of car Uk - Ioniq 5 Version of the integration 2.26.0
Describe the bug I've noticed for a few versions that if the integration calls the car to update the information, if it is unsuccessful (e.g. car out of signal range) then the data returns as unavailable rather than presenting the previous data point. My car is stored in a place where it frequently is out of signal, so more often than not I have no useful data in the system. My suggestion would be that if the API call fails, the last good data is held onto, and we have a last successful update time value, so you can make a choice as to whether it is good data or not.
Debug logs if an error occurred
To Reproduce
Expected behavior
Screenshots
Additional context