Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
458 stars 89 forks source link

Stale location reported in the first forced update after the engine (EV) is turned off #867

Open busywait opened 7 months ago

busywait commented 7 months ago

Region and Brand of car

UK (EU) e-Niro 4 2019/20 model Firmware: 2020-09-12 16:37:08.905

Version of the integration

v2.24.2

Describe the bug

At the end of a journey a stale location is reported in the first forced update after the car is turned off (the first forced update with Engine OFF reported in the API). The next forced update will report the correct location, so it might look like the car has moved a very large distance and then back again between the last 3 updates.

This is seen in the _geocoded_location sensor and in the _location diagnostic entity.

Debug logs if an error occurred

My current timezone is GMT with DST. The HA log timestamps are in UST, the times in the json seem to be in my local time (UST+01:00). The correct location is logged at 2024-04-20 15:26:11.913 in this excerpt, and the incorrect location is logged at 2024-04-20 15:27:57.793 and 2024-04-20 15:27:58.468.

2024-04-20 15:26:09.678 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.VehicleManager] hyundai_kia_connect_api - Time differential in seconds: 22184.678479
2024-04-20 15:26:11.913 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_cached_vehicle_status response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'vehicleStatusInfo': {'vehicleLocation': {'coord': {'lat': 50.943908, 'lon': -1.397078, 'type': 0}, 'head': 220, 'speed': {'value': 0, 'unit': 0}, 'accuracy': {'hdop': 0, 'pdop': 0}, 'time': '20240420161550'}, 'vehicleStatus': {'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTemp': {'value': '02H', 'unit': 0, 'hvacTempType': 1}, 'defrost': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 74, 'batteryPlugin': 0, 'remainTime2': {'etc1': {'value': 104, 'unit': 1}, 'etc2': {'value': 135, 'unit': 1}, 'etc3': {'value': 45, 'unit': 1}, 'atc': {'value': 45, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'evModeRange': {'value': 184.5436893, 'unit': 3}, 'totalAvailableRange': {'value': 184.5436893, 'unit': 3}}, 'type': 2}], 'reservChargeInfos': {'reservChargeInfo': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0820', 'timeSection': 0}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'offpeakPowerInfo': {'offPeakPowerTime1': {'starttime': {'time': '1200', 'timeSection': 0}, 'endtime': {'time': '1200', 'timeSection': 0}}, 'offPeakPowerFlag': 0}, 'reserveChargeInfo2': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0520', 'timeSection': 1}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'reservFlag': 0, 'ect': {'start': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}, 'end': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}}, 'targetSOClist': [{'targetSOClevel': 100, 'dte': {'rangeByFuel': {'evModeRange': {'value': 255, 'unit': 3}, 'totalAvailableRange': {'value': 255, 'unit': 3}}, 'type': 2}, 'plugType': 0}, {'targetSOClevel': 80, 'dte': {'rangeByFuel': {'evModeRange': {'value': 200, 'unit': 3}, 'totalAvailableRange': {'value': 200, 'unit': 3}}, 'type': 2}, 'plugType': 1}]}}, 'ign3': True, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 2, 'sideBackWindowHeat': 0, 'tirePressureLamp': {'tirePressureLampAll': 0, 'tirePressureLampFL': 0, 'tirePressureLampFR': 0, 'tirePressureLampRL': 0, 'tirePressureLampRR': 0}, 'battery': {'batSoc': 90, 'batState': 0}, 'sleepModeCheck': False, 'time': '20240420101625', 'remoteWaitingTimeAlert': {'remoteControlAvailable': 1, 'remoteControlWaitingTime': 168, 'elapsedTime': '09:37:52'}, 'systemCutOffAlert': 0, 'tailLampStatus': 0, 'hazardStatus': 0}, 'odometer': {'value': 106125.3, 'unit': 1}}}, 'msgId': '2834be6f-423a-48cb-96fd-aafc222a29b1'}
2024-04-20 15:26:12.188 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info responseAlltime {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 1115521, 'motorPwrCsp': 928264, 'climatePwrCsp': 100012, 'eDPwrCsp': 87130, 'batteryMgPwrCsp': 0, 'regenPwr': 321876, 'calculativeOdo': 7452}, {'drivingPeriod': 1, 'totalPwrCsp': 12971, 'motorPwrCsp': 10793, 'climatePwrCsp': 1162, 'eDPwrCsp': 1013, 'batteryMgPwrCsp': 0, 'regenPwr': 3742, 'calculativeOdo': 86.65116279069767}], 'drivingInfoDetail': [{'drivingPeriod': 1, 'drivingDate': '202404', 'totalPwrCsp': 142431, 'motorPwrCsp': 119215, 'climatePwrCsp': 9862, 'eDPwrCsp': 13320, 'batteryMgPwrCsp': 0, 'regenPwr': 46172, 'calculativeOdo': 961}, {'drivingPeriod': 1, 'drivingDate': '202403', 'totalPwrCsp': 363592, 'motorPwrCsp': 309325, 'climatePwrCsp': 25523, 'eDPwrCsp': 28740, 'batteryMgPwrCsp': 0, 'regenPwr': 107866, 'calculativeOdo': 2469}, {'drivingPeriod': 1, 'drivingDate': '202402', 'totalPwrCsp': 373199, 'motorPwrCsp': 309262, 'climatePwrCsp': 37500, 'eDPwrCsp': 26360, 'batteryMgPwrCsp': 0, 'regenPwr': 99634, 'calculativeOdo': 2429}, {'drivingPeriod': 1, 'drivingDate': '202401', 'totalPwrCsp': 236299, 'motorPwrCsp': 190462, 'climatePwrCsp': 27127, 'eDPwrCsp': 18710, 'batteryMgPwrCsp': 0, 'regenPwr': 68204, 'calculativeOdo': 1593}]}, 'msgId': 'c01a5feb-6de6-40d1-8b67-9b8578fcad83'}
2024-04-20 15:26:12.422 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info response30d {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 236325, 'motorPwrCsp': 199128, 'climatePwrCsp': 15013, 'eDPwrCsp': 22150, 'batteryMgPwrCsp': 0, 'regenPwr': 78205, 'calculativeOdo': 1596}, {'drivingPeriod': 1, 'totalPwrCsp': 9089, 'motorPwrCsp': 7658, 'climatePwrCsp': 577, 'eDPwrCsp': 851, 'batteryMgPwrCsp': 0, 'regenPwr': 3007, 'calculativeOdo': 61.38461538461539}, {'drivingPeriod': 2, 'totalPwrCsp': 26956, 'motorPwrCsp': 24181, 'climatePwrCsp': 1115, 'eDPwrCsp': 1660, 'batteryMgPwrCsp': 0, 'regenPwr': 5786, 'calculativeOdo': 173}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20240420', 'totalPwrCsp': 520, 'motorPwrCsp': 331, 'climatePwrCsp': 89, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 222, 'calculativeOdo': 2}, {'drivingPeriod': 0, 'drivingDate': '20240419', 'totalPwrCsp': 29789, 'motorPwrCsp': 25777, 'climatePwrCsp': 1582, 'eDPwrCsp': 2430, 'batteryMgPwrCsp': 0, 'regenPwr': 7347, 'calculativeOdo': 193}, {'drivingPeriod': 0, 'drivingDate': '20240418', 'totalPwrCsp': 26413, 'motorPwrCsp': 24360, 'climatePwrCsp': 933, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 4308, 'calculativeOdo': 165}, {'drivingPeriod': 0, 'drivingDate': '20240416', 'totalPwrCsp': 7295, 'motorPwrCsp': 4486, 'climatePwrCsp': 1889, 'eDPwrCsp': 920, 'batteryMgPwrCsp': 0, 'regenPwr': 4086, 'calculativeOdo': 52}, {'drivingPeriod': 0, 'drivingDate': '20240414', 'totalPwrCsp': 2982, 'motorPwrCsp': 1979, 'climatePwrCsp': 603, 'eDPwrCsp': 400, 'batteryMgPwrCsp': 0, 'regenPwr': 1242, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240413', 'totalPwrCsp': 17894, 'motorPwrCsp': 17230, 'climatePwrCsp': 254, 'eDPwrCsp': 410, 'batteryMgPwrCsp': 0, 'regenPwr': 3380, 'calculativeOdo': 121}, {'drivingPeriod': 0, 'drivingDate': '20240412', 'totalPwrCsp': 2255, 'motorPwrCsp': 1516, 'climatePwrCsp': 105, 'eDPwrCsp': 600, 'batteryMgPwrCsp': 0, 'regenPwr': 1972, 'calculativeOdo': 16}, {'drivingPeriod': 0, 'drivingDate': '20240411', 'totalPwrCsp': 1575, 'motorPwrCsp': 802, 'climatePwrCsp': 203, 'eDPwrCsp': 570, 'batteryMgPwrCsp': 0, 'regenPwr': 1017, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240410', 'totalPwrCsp': 21910, 'motorPwrCsp': 19503, 'climatePwrCsp': 1157, 'eDPwrCsp': 1250, 'batteryMgPwrCsp': 0, 'regenPwr': 5532, 'calculativeOdo': 155}, {'drivingPeriod': 0, 'drivingDate': '20240409', 'totalPwrCsp': 4441, 'motorPwrCsp': 3242, 'climatePwrCsp': 539, 'eDPwrCsp': 660, 'batteryMgPwrCsp': 0, 'regenPwr': 2165, 'calculativeOdo': 34}, {'drivingPeriod': 0, 'drivingDate': '20240407', 'totalPwrCsp': 9079, 'motorPwrCsp': 8203, 'climatePwrCsp': 156, 'eDPwrCsp': 720, 'batteryMgPwrCsp': 0, 'regenPwr': 4591, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240406', 'totalPwrCsp': 5252, 'motorPwrCsp': 4021, 'climatePwrCsp': 431, 'eDPwrCsp': 800, 'batteryMgPwrCsp': 0, 'regenPwr': 3171, 'calculativeOdo': 47}, {'drivingPeriod': 0, 'drivingDate': '20240405', 'totalPwrCsp': 806, 'motorPwrCsp': 424, 'climatePwrCsp': 82, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 567, 'calculativeOdo': 4}, {'drivingPeriod': 0, 'drivingDate': '20240404', 'totalPwrCsp': 2696, 'motorPwrCsp': 890, 'climatePwrCsp': 616, 'eDPwrCsp': 1190, 'batteryMgPwrCsp': 0, 'regenPwr': 1021, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240403', 'totalPwrCsp': 651, 'motorPwrCsp': 327, 'climatePwrCsp': 124, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 460, 'calculativeOdo': 3}, {'drivingPeriod': 0, 'drivingDate': '20240402', 'totalPwrCsp': 6245, 'motorPwrCsp': 4318, 'climatePwrCsp': 777, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 3306, 'calculativeOdo': 44}, {'drivingPeriod': 0, 'drivingDate': '20240401', 'totalPwrCsp': 2628, 'motorPwrCsp': 1806, 'climatePwrCsp': 322, 'eDPwrCsp': 500, 'batteryMgPwrCsp': 0, 'regenPwr': 1785, 'calculativeOdo': 20}, {'drivingPeriod': 0, 'drivingDate': '20240331', 'totalPwrCsp': 15709, 'motorPwrCsp': 14882, 'climatePwrCsp': 477, 'eDPwrCsp': 350, 'batteryMgPwrCsp': 0, 'regenPwr': 3465, 'calculativeOdo': 109}, {'drivingPeriod': 0, 'drivingDate': '20240329', 'totalPwrCsp': 9319, 'motorPwrCsp': 7161, 'climatePwrCsp': 808, 'eDPwrCsp': 1350, 'batteryMgPwrCsp': 0, 'regenPwr': 4370, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240328', 'totalPwrCsp': 3743, 'motorPwrCsp': 2219, 'climatePwrCsp': 404, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 2421, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240327', 'totalPwrCsp': 5216, 'motorPwrCsp': 3092, 'climatePwrCsp': 264, 'eDPwrCsp': 1860, 'batteryMgPwrCsp': 0, 'regenPwr': 3061, 'calculativeOdo': 32}, {'drivingPeriod': 0, 'drivingDate': '20240326', 'totalPwrCsp': 4170, 'motorPwrCsp': 2502, 'climatePwrCsp': 938, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 1418, 'calculativeOdo': 24}, {'drivingPeriod': 0, 'drivingDate': '20240325', 'totalPwrCsp': 3221, 'motorPwrCsp': 2521, 'climatePwrCsp': 0, 'eDPwrCsp': 700, 'batteryMgPwrCsp': 0, 'regenPwr': 3645, 'calculativeOdo': 26}, {'drivingPeriod': 0, 'drivingDate': '20240324', 'totalPwrCsp': 24640, 'motorPwrCsp': 23301, 'climatePwrCsp': 189, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 4874, 'calculativeOdo': 177}, {'drivingPeriod': 0, 'drivingDate': '20240323', 'totalPwrCsp': 26771, 'motorPwrCsp': 23602, 'climatePwrCsp': 1809, 'eDPwrCsp': 1360, 'batteryMgPwrCsp': 0, 'regenPwr': 8051, 'calculativeOdo': 172}, {'drivingPeriod': 0, 'drivingDate': '20240322', 'totalPwrCsp': 3097, 'motorPwrCsp': 2020, 'climatePwrCsp': 347, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 2839, 'calculativeOdo': 21}]}, 'msgId': '49611a06-b126-44ab-8590-e18158f71dfe'}
2024-04-20 15:26:12.425 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: before daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:26:12.426 DEBUG (SyncWorker_16) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: after  daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:26:14.744 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 5.068 seconds (success: True)
2024-04-20 15:27:55.630 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Received forced vehicle data: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTemp': {'value': '02H', 'unit': 0, 'hvacTempType': 1}, 'defrost': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 73, 'batteryPlugin': 0, 'remainTime2': {'etc1': {'value': 107, 'unit': 1}, 'etc2': {'value': 145, 'unit': 1}, 'etc3': {'value': 50, 'unit': 1}, 'atc': {'value': 50, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'evModeRange': {'value': 183.3009709, 'unit': 3}, 'totalAvailableRange': {'value': 183.3009709, 'unit': 3}}, 'type': 2}], 'reservChargeInfos': {'reservChargeInfo': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0820', 'timeSection': 0}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'offpeakPowerInfo': {'offPeakPowerTime1': {'starttime': {'time': '1200', 'timeSection': 0}, 'endtime': {'time': '1200', 'timeSection': 0}}, 'offPeakPowerFlag': 0}, 'reserveChargeInfo2': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0520', 'timeSection': 1}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'reservFlag': 0, 'ect': {'start': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}, 'end': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}}, 'targetSOClist': [{'targetSOClevel': 100, 'dte': {'rangeByFuel': {'evModeRange': {'value': 255, 'unit': 3}, 'totalAvailableRange': {'value': 255, 'unit': 3}}, 'type': 2}, 'plugType': 0}, {'targetSOClevel': 80, 'dte': {'rangeByFuel': {'evModeRange': {'value': 200, 'unit': 3}, 'totalAvailableRange': {'value': 200, 'unit': 3}}, 'type': 2}, 'plugType': 1}]}}, 'ign3': True, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 2, 'sideBackWindowHeat': 0, 'tirePressureLamp': {'tirePressureLampAll': 0, 'tirePressureLampFL': 0, 'tirePressureLampFR': 0, 'tirePressureLampRL': 0, 'tirePressureLampRR': 0}, 'battery': {'batSoc': 90, 'batState': 0}, 'sleepModeCheck': False, 'time': '20240420162755', 'remoteWaitingTimeAlert': {'remoteControlAvailable': 1, 'remoteControlWaitingTime': 168, 'elapsedTime': '00:12:05'}, 'systemCutOffAlert': 0, 'tailLampStatus': 0, 'hazardStatus': 0}, 'msgId': '8f8636e5-dc1c-4feb-adaf-8a23d5405789'}
2024-04-20 15:27:57.793 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - _get_location response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'gpsDetail': {'coord': {'lat': 50.9312, 'lon': -1.391697, 'alt': 0, 'type': 0}, 'head': 0, 'speed': {'value': 0, 'unit': 0}, 'accuracy': {'hdop': 0, 'pdop': 0}, 'time': '20240420142755'}, 'drvDistance': {'rangeByFuel': {'evModeRange': {'value': 183.3009709, 'unit': 3}, 'totalAvailableRange': {'value': 183.3009709, 'unit': 3}}, 'type': 2}}, 'msgId': '475e20f6-bbb7-4fe2-aaec-15334b687e63'}
2024-04-20 15:27:58.026 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info responseAlltime {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 1115521, 'motorPwrCsp': 928264, 'climatePwrCsp': 100012, 'eDPwrCsp': 87130, 'batteryMgPwrCsp': 0, 'regenPwr': 321876, 'calculativeOdo': 7452}, {'drivingPeriod': 1, 'totalPwrCsp': 12971, 'motorPwrCsp': 10793, 'climatePwrCsp': 1162, 'eDPwrCsp': 1013, 'batteryMgPwrCsp': 0, 'regenPwr': 3742, 'calculativeOdo': 86.65116279069767}], 'drivingInfoDetail': [{'drivingPeriod': 1, 'drivingDate': '202404', 'totalPwrCsp': 142431, 'motorPwrCsp': 119215, 'climatePwrCsp': 9862, 'eDPwrCsp': 13320, 'batteryMgPwrCsp': 0, 'regenPwr': 46172, 'calculativeOdo': 961}, {'drivingPeriod': 1, 'drivingDate': '202403', 'totalPwrCsp': 363592, 'motorPwrCsp': 309325, 'climatePwrCsp': 25523, 'eDPwrCsp': 28740, 'batteryMgPwrCsp': 0, 'regenPwr': 107866, 'calculativeOdo': 2469}, {'drivingPeriod': 1, 'drivingDate': '202402', 'totalPwrCsp': 373199, 'motorPwrCsp': 309262, 'climatePwrCsp': 37500, 'eDPwrCsp': 26360, 'batteryMgPwrCsp': 0, 'regenPwr': 99634, 'calculativeOdo': 2429}, {'drivingPeriod': 1, 'drivingDate': '202401', 'totalPwrCsp': 236299, 'motorPwrCsp': 190462, 'climatePwrCsp': 27127, 'eDPwrCsp': 18710, 'batteryMgPwrCsp': 0, 'regenPwr': 68204, 'calculativeOdo': 1593}]}, 'msgId': '4a1c326f-f5c6-4c6f-9e27-8e678d7a5e8f'}
2024-04-20 15:27:58.253 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info response30d {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 236325, 'motorPwrCsp': 199128, 'climatePwrCsp': 15013, 'eDPwrCsp': 22150, 'batteryMgPwrCsp': 0, 'regenPwr': 78205, 'calculativeOdo': 1596}, {'drivingPeriod': 1, 'totalPwrCsp': 9089, 'motorPwrCsp': 7658, 'climatePwrCsp': 577, 'eDPwrCsp': 851, 'batteryMgPwrCsp': 0, 'regenPwr': 3007, 'calculativeOdo': 61.38461538461539}, {'drivingPeriod': 2, 'totalPwrCsp': 26956, 'motorPwrCsp': 24181, 'climatePwrCsp': 1115, 'eDPwrCsp': 1660, 'batteryMgPwrCsp': 0, 'regenPwr': 5786, 'calculativeOdo': 173}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20240420', 'totalPwrCsp': 520, 'motorPwrCsp': 331, 'climatePwrCsp': 89, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 222, 'calculativeOdo': 2}, {'drivingPeriod': 0, 'drivingDate': '20240419', 'totalPwrCsp': 29789, 'motorPwrCsp': 25777, 'climatePwrCsp': 1582, 'eDPwrCsp': 2430, 'batteryMgPwrCsp': 0, 'regenPwr': 7347, 'calculativeOdo': 193}, {'drivingPeriod': 0, 'drivingDate': '20240418', 'totalPwrCsp': 26413, 'motorPwrCsp': 24360, 'climatePwrCsp': 933, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 4308, 'calculativeOdo': 165}, {'drivingPeriod': 0, 'drivingDate': '20240416', 'totalPwrCsp': 7295, 'motorPwrCsp': 4486, 'climatePwrCsp': 1889, 'eDPwrCsp': 920, 'batteryMgPwrCsp': 0, 'regenPwr': 4086, 'calculativeOdo': 52}, {'drivingPeriod': 0, 'drivingDate': '20240414', 'totalPwrCsp': 2982, 'motorPwrCsp': 1979, 'climatePwrCsp': 603, 'eDPwrCsp': 400, 'batteryMgPwrCsp': 0, 'regenPwr': 1242, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240413', 'totalPwrCsp': 17894, 'motorPwrCsp': 17230, 'climatePwrCsp': 254, 'eDPwrCsp': 410, 'batteryMgPwrCsp': 0, 'regenPwr': 3380, 'calculativeOdo': 121}, {'drivingPeriod': 0, 'drivingDate': '20240412', 'totalPwrCsp': 2255, 'motorPwrCsp': 1516, 'climatePwrCsp': 105, 'eDPwrCsp': 600, 'batteryMgPwrCsp': 0, 'regenPwr': 1972, 'calculativeOdo': 16}, {'drivingPeriod': 0, 'drivingDate': '20240411', 'totalPwrCsp': 1575, 'motorPwrCsp': 802, 'climatePwrCsp': 203, 'eDPwrCsp': 570, 'batteryMgPwrCsp': 0, 'regenPwr': 1017, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240410', 'totalPwrCsp': 21910, 'motorPwrCsp': 19503, 'climatePwrCsp': 1157, 'eDPwrCsp': 1250, 'batteryMgPwrCsp': 0, 'regenPwr': 5532, 'calculativeOdo': 155}, {'drivingPeriod': 0, 'drivingDate': '20240409', 'totalPwrCsp': 4441, 'motorPwrCsp': 3242, 'climatePwrCsp': 539, 'eDPwrCsp': 660, 'batteryMgPwrCsp': 0, 'regenPwr': 2165, 'calculativeOdo': 34}, {'drivingPeriod': 0, 'drivingDate': '20240407', 'totalPwrCsp': 9079, 'motorPwrCsp': 8203, 'climatePwrCsp': 156, 'eDPwrCsp': 720, 'batteryMgPwrCsp': 0, 'regenPwr': 4591, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240406', 'totalPwrCsp': 5252, 'motorPwrCsp': 4021, 'climatePwrCsp': 431, 'eDPwrCsp': 800, 'batteryMgPwrCsp': 0, 'regenPwr': 3171, 'calculativeOdo': 47}, {'drivingPeriod': 0, 'drivingDate': '20240405', 'totalPwrCsp': 806, 'motorPwrCsp': 424, 'climatePwrCsp': 82, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 567, 'calculativeOdo': 4}, {'drivingPeriod': 0, 'drivingDate': '20240404', 'totalPwrCsp': 2696, 'motorPwrCsp': 890, 'climatePwrCsp': 616, 'eDPwrCsp': 1190, 'batteryMgPwrCsp': 0, 'regenPwr': 1021, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240403', 'totalPwrCsp': 651, 'motorPwrCsp': 327, 'climatePwrCsp': 124, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 460, 'calculativeOdo': 3}, {'drivingPeriod': 0, 'drivingDate': '20240402', 'totalPwrCsp': 6245, 'motorPwrCsp': 4318, 'climatePwrCsp': 777, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 3306, 'calculativeOdo': 44}, {'drivingPeriod': 0, 'drivingDate': '20240401', 'totalPwrCsp': 2628, 'motorPwrCsp': 1806, 'climatePwrCsp': 322, 'eDPwrCsp': 500, 'batteryMgPwrCsp': 0, 'regenPwr': 1785, 'calculativeOdo': 20}, {'drivingPeriod': 0, 'drivingDate': '20240331', 'totalPwrCsp': 15709, 'motorPwrCsp': 14882, 'climatePwrCsp': 477, 'eDPwrCsp': 350, 'batteryMgPwrCsp': 0, 'regenPwr': 3465, 'calculativeOdo': 109}, {'drivingPeriod': 0, 'drivingDate': '20240329', 'totalPwrCsp': 9319, 'motorPwrCsp': 7161, 'climatePwrCsp': 808, 'eDPwrCsp': 1350, 'batteryMgPwrCsp': 0, 'regenPwr': 4370, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240328', 'totalPwrCsp': 3743, 'motorPwrCsp': 2219, 'climatePwrCsp': 404, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 2421, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240327', 'totalPwrCsp': 5216, 'motorPwrCsp': 3092, 'climatePwrCsp': 264, 'eDPwrCsp': 1860, 'batteryMgPwrCsp': 0, 'regenPwr': 3061, 'calculativeOdo': 32}, {'drivingPeriod': 0, 'drivingDate': '20240326', 'totalPwrCsp': 4170, 'motorPwrCsp': 2502, 'climatePwrCsp': 938, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 1418, 'calculativeOdo': 24}, {'drivingPeriod': 0, 'drivingDate': '20240325', 'totalPwrCsp': 3221, 'motorPwrCsp': 2521, 'climatePwrCsp': 0, 'eDPwrCsp': 700, 'batteryMgPwrCsp': 0, 'regenPwr': 3645, 'calculativeOdo': 26}, {'drivingPeriod': 0, 'drivingDate': '20240324', 'totalPwrCsp': 24640, 'motorPwrCsp': 23301, 'climatePwrCsp': 189, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 4874, 'calculativeOdo': 177}, {'drivingPeriod': 0, 'drivingDate': '20240323', 'totalPwrCsp': 26771, 'motorPwrCsp': 23602, 'climatePwrCsp': 1809, 'eDPwrCsp': 1360, 'batteryMgPwrCsp': 0, 'regenPwr': 8051, 'calculativeOdo': 172}, {'drivingPeriod': 0, 'drivingDate': '20240322', 'totalPwrCsp': 3097, 'motorPwrCsp': 2020, 'climatePwrCsp': 347, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 2839, 'calculativeOdo': 21}]}, 'msgId': 'a088bde8-13dc-4962-afe3-92182b02aefb'}
2024-04-20 15:27:58.256 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: before daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:27:58.256 DEBUG (SyncWorker_18) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: after  daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:27:58.261 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.VehicleManager] hyundai_kia_connect_api - Time differential in seconds: 3.260976
2024-04-20 15:27:58.468 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_cached_vehicle_status response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'vehicleStatusInfo': {'vehicleLocation': {'coord': {'lat': 50.9312, 'lon': -1.391697, 'alt': 0, 'type': 0}, 'head': 0, 'speed': {'value': 0, 'unit': 0}, 'accuracy': {'hdop': 0, 'pdop': 0}, 'time': '20240420162755'}, 'vehicleStatus': {'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTemp': {'value': '02H', 'unit': 0, 'hvacTempType': 1}, 'defrost': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 73, 'batteryPlugin': 0, 'remainTime2': {'etc1': {'value': 107, 'unit': 1}, 'etc2': {'value': 145, 'unit': 1}, 'etc3': {'value': 50, 'unit': 1}, 'atc': {'value': 50, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'evModeRange': {'value': 183.3009709, 'unit': 3}, 'totalAvailableRange': {'value': 183.3009709, 'unit': 3}}, 'type': 2}], 'reservChargeInfos': {'reservChargeInfo': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0820', 'timeSection': 0}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'offpeakPowerInfo': {'offPeakPowerTime1': {'starttime': {'time': '1200', 'timeSection': 0}, 'endtime': {'time': '1200', 'timeSection': 0}}, 'offPeakPowerFlag': 0}, 'reserveChargeInfo2': {'reservChargeInfoDetail': {'reservInfo': {'day': [0, 1, 2, 3, 4, 5, 6], 'time': {'time': '0520', 'timeSection': 1}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'reservFlag': 0, 'ect': {'start': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}, 'end': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}}, 'targetSOClist': [{'targetSOClevel': 100, 'dte': {'rangeByFuel': {'evModeRange': {'value': 255, 'unit': 3}, 'totalAvailableRange': {'value': 255, 'unit': 3}}, 'type': 2}, 'plugType': 0}, {'targetSOClevel': 80, 'dte': {'rangeByFuel': {'evModeRange': {'value': 200, 'unit': 3}, 'totalAvailableRange': {'value': 200, 'unit': 3}}, 'type': 2}, 'plugType': 1}]}}, 'ign3': True, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 2, 'sideBackWindowHeat': 0, 'tirePressureLamp': {'tirePressureLampAll': 0, 'tirePressureLampFL': 0, 'tirePressureLampFR': 0, 'tirePressureLampRL': 0, 'tirePressureLampRR': 0}, 'battery': {'batSoc': 90, 'batState': 0}, 'sleepModeCheck': False, 'time': '20240420162755', 'remoteWaitingTimeAlert': {'remoteControlAvailable': 1, 'remoteControlWaitingTime': 168, 'elapsedTime': '00:12:05'}, 'systemCutOffAlert': 0, 'tailLampStatus': 0, 'hazardStatus': 0}, 'odometer': {'value': 106125.3, 'unit': 1}}}, 'msgId': '9b9ee670-3156-4a7a-87b1-8bc43a483846'}
2024-04-20 15:27:58.692 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info responseAlltime {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 1115521, 'motorPwrCsp': 928264, 'climatePwrCsp': 100012, 'eDPwrCsp': 87130, 'batteryMgPwrCsp': 0, 'regenPwr': 321876, 'calculativeOdo': 7452}, {'drivingPeriod': 1, 'totalPwrCsp': 12971, 'motorPwrCsp': 10793, 'climatePwrCsp': 1162, 'eDPwrCsp': 1013, 'batteryMgPwrCsp': 0, 'regenPwr': 3742, 'calculativeOdo': 86.65116279069767}], 'drivingInfoDetail': [{'drivingPeriod': 1, 'drivingDate': '202404', 'totalPwrCsp': 142431, 'motorPwrCsp': 119215, 'climatePwrCsp': 9862, 'eDPwrCsp': 13320, 'batteryMgPwrCsp': 0, 'regenPwr': 46172, 'calculativeOdo': 961}, {'drivingPeriod': 1, 'drivingDate': '202403', 'totalPwrCsp': 363592, 'motorPwrCsp': 309325, 'climatePwrCsp': 25523, 'eDPwrCsp': 28740, 'batteryMgPwrCsp': 0, 'regenPwr': 107866, 'calculativeOdo': 2469}, {'drivingPeriod': 1, 'drivingDate': '202402', 'totalPwrCsp': 373199, 'motorPwrCsp': 309262, 'climatePwrCsp': 37500, 'eDPwrCsp': 26360, 'batteryMgPwrCsp': 0, 'regenPwr': 99634, 'calculativeOdo': 2429}, {'drivingPeriod': 1, 'drivingDate': '202401', 'totalPwrCsp': 236299, 'motorPwrCsp': 190462, 'climatePwrCsp': 27127, 'eDPwrCsp': 18710, 'batteryMgPwrCsp': 0, 'regenPwr': 68204, 'calculativeOdo': 1593}]}, 'msgId': 'f82aa11d-92e0-4e66-aa83-e530417106b9'}
2024-04-20 15:27:58.902 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info response30d {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 236325, 'motorPwrCsp': 199128, 'climatePwrCsp': 15013, 'eDPwrCsp': 22150, 'batteryMgPwrCsp': 0, 'regenPwr': 78205, 'calculativeOdo': 1596}, {'drivingPeriod': 1, 'totalPwrCsp': 9089, 'motorPwrCsp': 7658, 'climatePwrCsp': 577, 'eDPwrCsp': 851, 'batteryMgPwrCsp': 0, 'regenPwr': 3007, 'calculativeOdo': 61.38461538461539}, {'drivingPeriod': 2, 'totalPwrCsp': 26956, 'motorPwrCsp': 24181, 'climatePwrCsp': 1115, 'eDPwrCsp': 1660, 'batteryMgPwrCsp': 0, 'regenPwr': 5786, 'calculativeOdo': 173}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20240420', 'totalPwrCsp': 520, 'motorPwrCsp': 331, 'climatePwrCsp': 89, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 222, 'calculativeOdo': 2}, {'drivingPeriod': 0, 'drivingDate': '20240419', 'totalPwrCsp': 29789, 'motorPwrCsp': 25777, 'climatePwrCsp': 1582, 'eDPwrCsp': 2430, 'batteryMgPwrCsp': 0, 'regenPwr': 7347, 'calculativeOdo': 193}, {'drivingPeriod': 0, 'drivingDate': '20240418', 'totalPwrCsp': 26413, 'motorPwrCsp': 24360, 'climatePwrCsp': 933, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 4308, 'calculativeOdo': 165}, {'drivingPeriod': 0, 'drivingDate': '20240416', 'totalPwrCsp': 7295, 'motorPwrCsp': 4486, 'climatePwrCsp': 1889, 'eDPwrCsp': 920, 'batteryMgPwrCsp': 0, 'regenPwr': 4086, 'calculativeOdo': 52}, {'drivingPeriod': 0, 'drivingDate': '20240414', 'totalPwrCsp': 2982, 'motorPwrCsp': 1979, 'climatePwrCsp': 603, 'eDPwrCsp': 400, 'batteryMgPwrCsp': 0, 'regenPwr': 1242, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240413', 'totalPwrCsp': 17894, 'motorPwrCsp': 17230, 'climatePwrCsp': 254, 'eDPwrCsp': 410, 'batteryMgPwrCsp': 0, 'regenPwr': 3380, 'calculativeOdo': 121}, {'drivingPeriod': 0, 'drivingDate': '20240412', 'totalPwrCsp': 2255, 'motorPwrCsp': 1516, 'climatePwrCsp': 105, 'eDPwrCsp': 600, 'batteryMgPwrCsp': 0, 'regenPwr': 1972, 'calculativeOdo': 16}, {'drivingPeriod': 0, 'drivingDate': '20240411', 'totalPwrCsp': 1575, 'motorPwrCsp': 802, 'climatePwrCsp': 203, 'eDPwrCsp': 570, 'batteryMgPwrCsp': 0, 'regenPwr': 1017, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240410', 'totalPwrCsp': 21910, 'motorPwrCsp': 19503, 'climatePwrCsp': 1157, 'eDPwrCsp': 1250, 'batteryMgPwrCsp': 0, 'regenPwr': 5532, 'calculativeOdo': 155}, {'drivingPeriod': 0, 'drivingDate': '20240409', 'totalPwrCsp': 4441, 'motorPwrCsp': 3242, 'climatePwrCsp': 539, 'eDPwrCsp': 660, 'batteryMgPwrCsp': 0, 'regenPwr': 2165, 'calculativeOdo': 34}, {'drivingPeriod': 0, 'drivingDate': '20240407', 'totalPwrCsp': 9079, 'motorPwrCsp': 8203, 'climatePwrCsp': 156, 'eDPwrCsp': 720, 'batteryMgPwrCsp': 0, 'regenPwr': 4591, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240406', 'totalPwrCsp': 5252, 'motorPwrCsp': 4021, 'climatePwrCsp': 431, 'eDPwrCsp': 800, 'batteryMgPwrCsp': 0, 'regenPwr': 3171, 'calculativeOdo': 47}, {'drivingPeriod': 0, 'drivingDate': '20240405', 'totalPwrCsp': 806, 'motorPwrCsp': 424, 'climatePwrCsp': 82, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 567, 'calculativeOdo': 4}, {'drivingPeriod': 0, 'drivingDate': '20240404', 'totalPwrCsp': 2696, 'motorPwrCsp': 890, 'climatePwrCsp': 616, 'eDPwrCsp': 1190, 'batteryMgPwrCsp': 0, 'regenPwr': 1021, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20240403', 'totalPwrCsp': 651, 'motorPwrCsp': 327, 'climatePwrCsp': 124, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 460, 'calculativeOdo': 3}, {'drivingPeriod': 0, 'drivingDate': '20240402', 'totalPwrCsp': 6245, 'motorPwrCsp': 4318, 'climatePwrCsp': 777, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 3306, 'calculativeOdo': 44}, {'drivingPeriod': 0, 'drivingDate': '20240401', 'totalPwrCsp': 2628, 'motorPwrCsp': 1806, 'climatePwrCsp': 322, 'eDPwrCsp': 500, 'batteryMgPwrCsp': 0, 'regenPwr': 1785, 'calculativeOdo': 20}, {'drivingPeriod': 0, 'drivingDate': '20240331', 'totalPwrCsp': 15709, 'motorPwrCsp': 14882, 'climatePwrCsp': 477, 'eDPwrCsp': 350, 'batteryMgPwrCsp': 0, 'regenPwr': 3465, 'calculativeOdo': 109}, {'drivingPeriod': 0, 'drivingDate': '20240329', 'totalPwrCsp': 9319, 'motorPwrCsp': 7161, 'climatePwrCsp': 808, 'eDPwrCsp': 1350, 'batteryMgPwrCsp': 0, 'regenPwr': 4370, 'calculativeOdo': 67}, {'drivingPeriod': 0, 'drivingDate': '20240328', 'totalPwrCsp': 3743, 'motorPwrCsp': 2219, 'climatePwrCsp': 404, 'eDPwrCsp': 1120, 'batteryMgPwrCsp': 0, 'regenPwr': 2421, 'calculativeOdo': 22}, {'drivingPeriod': 0, 'drivingDate': '20240327', 'totalPwrCsp': 5216, 'motorPwrCsp': 3092, 'climatePwrCsp': 264, 'eDPwrCsp': 1860, 'batteryMgPwrCsp': 0, 'regenPwr': 3061, 'calculativeOdo': 32}, {'drivingPeriod': 0, 'drivingDate': '20240326', 'totalPwrCsp': 4170, 'motorPwrCsp': 2502, 'climatePwrCsp': 938, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 1418, 'calculativeOdo': 24}, {'drivingPeriod': 0, 'drivingDate': '20240325', 'totalPwrCsp': 3221, 'motorPwrCsp': 2521, 'climatePwrCsp': 0, 'eDPwrCsp': 700, 'batteryMgPwrCsp': 0, 'regenPwr': 3645, 'calculativeOdo': 26}, {'drivingPeriod': 0, 'drivingDate': '20240324', 'totalPwrCsp': 24640, 'motorPwrCsp': 23301, 'climatePwrCsp': 189, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 4874, 'calculativeOdo': 177}, {'drivingPeriod': 0, 'drivingDate': '20240323', 'totalPwrCsp': 26771, 'motorPwrCsp': 23602, 'climatePwrCsp': 1809, 'eDPwrCsp': 1360, 'batteryMgPwrCsp': 0, 'regenPwr': 8051, 'calculativeOdo': 172}, {'drivingPeriod': 0, 'drivingDate': '20240322', 'totalPwrCsp': 3097, 'motorPwrCsp': 2020, 'climatePwrCsp': 347, 'eDPwrCsp': 730, 'batteryMgPwrCsp': 0, 'regenPwr': 2839, 'calculativeOdo': 21}]}, 'msgId': '4bc52cd8-1bfb-42b7-8199-38dcfd685d77'}
2024-04-20 15:27:58.905 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: before daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:27:58.906 DEBUG (SyncWorker_29) [hyundai_kia_connect_api.KiaUvoApiEU] KiaUvoApiEU: after  daily_stats: [DailyDrivingStats(date=datetime.datetime(2024, 4, 20, 0, 0), total_consumed=520, engine_consumption=331, climate_consumption=89, onboard_electronics_consumption=100, battery_care_consumption=0, regenerated_energy=222, distance=2), DailyDrivingStats(date=datetime.datetime(2024, 4, 19, 0, 0), total_consumed=29789, engine_consumption=25777, climate_consumption=1582, onboard_electronics_consumption=2430, battery_care_consumption=0, regenerated_energy=7347, distance=193), DailyDrivingStats(date=datetime.datetime(2024, 4, 18, 0, 0), total_consumed=26413, engine_consumption=24360, climate_consumption=933, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=4308, distance=165), DailyDrivingStats(date=datetime.datetime(2024, 4, 16, 0, 0), total_consumed=7295, engine_consumption=4486, climate_consumption=1889, onboard_electronics_consumption=920, battery_care_consumption=0, regenerated_energy=4086, distance=52), DailyDrivingStats(date=datetime.datetime(2024, 4, 14, 0, 0), total_consumed=2982, engine_consumption=1979, climate_consumption=603, onboard_electronics_consumption=400, battery_care_consumption=0, regenerated_energy=1242, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 4, 13, 0, 0), total_consumed=17894, engine_consumption=17230, climate_consumption=254, onboard_electronics_consumption=410, battery_care_consumption=0, regenerated_energy=3380, distance=121), DailyDrivingStats(date=datetime.datetime(2024, 4, 12, 0, 0), total_consumed=2255, engine_consumption=1516, climate_consumption=105, onboard_electronics_consumption=600, battery_care_consumption=0, regenerated_energy=1972, distance=16), DailyDrivingStats(date=datetime.datetime(2024, 4, 11, 0, 0), total_consumed=1575, engine_consumption=802, climate_consumption=203, onboard_electronics_consumption=570, battery_care_consumption=0, regenerated_energy=1017, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 10, 0, 0), total_consumed=21910, engine_consumption=19503, climate_consumption=1157, onboard_electronics_consumption=1250, battery_care_consumption=0, regenerated_energy=5532, distance=155), DailyDrivingStats(date=datetime.datetime(2024, 4, 9, 0, 0), total_consumed=4441, engine_consumption=3242, climate_consumption=539, onboard_electronics_consumption=660, battery_care_consumption=0, regenerated_energy=2165, distance=34), DailyDrivingStats(date=datetime.datetime(2024, 4, 7, 0, 0), total_consumed=9079, engine_consumption=8203, climate_consumption=156, onboard_electronics_consumption=720, battery_care_consumption=0, regenerated_energy=4591, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 4, 6, 0, 0), total_consumed=5252, engine_consumption=4021, climate_consumption=431, onboard_electronics_consumption=800, battery_care_consumption=0, regenerated_energy=3171, distance=47), DailyDrivingStats(date=datetime.datetime(2024, 4, 5, 0, 0), total_consumed=806, engine_consumption=424, climate_consumption=82, onboard_electronics_consumption=300, battery_care_consumption=0, regenerated_energy=567, distance=4), DailyDrivingStats(date=datetime.datetime(2024, 4, 4, 0, 0), total_consumed=2696, engine_consumption=890, climate_consumption=616, onboard_electronics_consumption=1190, battery_care_consumption=0, regenerated_energy=1021, distance=8), DailyDrivingStats(date=datetime.datetime(2024, 4, 3, 0, 0), total_consumed=651, engine_consumption=327, climate_consumption=124, onboard_electronics_consumption=200, battery_care_consumption=0, regenerated_energy=460, distance=3), DailyDrivingStats(date=datetime.datetime(2024, 4, 2, 0, 0), total_consumed=6245, engine_consumption=4318, climate_consumption=777, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=3306, distance=44), DailyDrivingStats(date=datetime.datetime(2024, 4, 1, 0, 0), total_consumed=2628, engine_consumption=1806, climate_consumption=322, onboard_electronics_consumption=500, battery_care_consumption=0, regenerated_energy=1785, distance=20), DailyDrivingStats(date=datetime.datetime(2024, 3, 31, 0, 0), total_consumed=15709, engine_consumption=14882, climate_consumption=477, onboard_electronics_consumption=350, battery_care_consumption=0, regenerated_energy=3465, distance=109), DailyDrivingStats(date=datetime.datetime(2024, 3, 29, 0, 0), total_consumed=9319, engine_consumption=7161, climate_consumption=808, onboard_electronics_consumption=1350, battery_care_consumption=0, regenerated_energy=4370, distance=67), DailyDrivingStats(date=datetime.datetime(2024, 3, 28, 0, 0), total_consumed=3743, engine_consumption=2219, climate_consumption=404, onboard_electronics_consumption=1120, battery_care_consumption=0, regenerated_energy=2421, distance=22), DailyDrivingStats(date=datetime.datetime(2024, 3, 27, 0, 0), total_consumed=5216, engine_consumption=3092, climate_consumption=264, onboard_electronics_consumption=1860, battery_care_consumption=0, regenerated_energy=3061, distance=32), DailyDrivingStats(date=datetime.datetime(2024, 3, 26, 0, 0), total_consumed=4170, engine_consumption=2502, climate_consumption=938, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=1418, distance=24), DailyDrivingStats(date=datetime.datetime(2024, 3, 25, 0, 0), total_consumed=3221, engine_consumption=2521, climate_consumption=0, onboard_electronics_consumption=700, battery_care_consumption=0, regenerated_energy=3645, distance=26), DailyDrivingStats(date=datetime.datetime(2024, 3, 24, 0, 0), total_consumed=24640, engine_consumption=23301, climate_consumption=189, onboard_electronics_consumption=1150, battery_care_consumption=0, regenerated_energy=4874, distance=177), DailyDrivingStats(date=datetime.datetime(2024, 3, 23, 0, 0), total_consumed=26771, engine_consumption=23602, climate_consumption=1809, onboard_electronics_consumption=1360, battery_care_consumption=0, regenerated_energy=8051, distance=172), DailyDrivingStats(date=datetime.datetime(2024, 3, 22, 0, 0), total_consumed=3097, engine_consumption=2020, climate_consumption=347, onboard_electronics_consumption=730, battery_care_consumption=0, regenerated_energy=2839, distance=21)]
2024-04-20 15:27:59.144 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 0.886 seconds (success: True)

To Reproduce

I have the scan interval configured to refresh every 15 minutes. I have the Forced Update interval configured to 9999 (6.9 days), No Force Refresh Start Hour is 23 and the No Force Refresh Finish Hour is 23.

I have an automation that uses a timer to call the Forced Update service every 12 minutes as long as the Engine is On:

trigger:
  - platform: state
    entity_id:
      - timer.home_ev_usage_countdown
    to: idle
    from: active
    id: Timer
condition: []
action:
  - if:
      - condition: state
        entity_id: binary_sensor.niro_ev_19_engine
        state: "on"
    then:
      - service: timer.start
        metadata: {}
        data: {}
        target:
          entity_id: timer.home_ev_usage_countdown
  - service: kia_uvo.force_update
    data:
      device_id: xxxx
mode: single

Expected behavior

At the end of the journey the geocoded location and the location GPS should show the final location; stale data should not be presented.

Screenshots

In the dashboard shown below the car made a one-way journey from Bristol (top left) to Southampton (bottom right): Screenshot_20240420_133256_Home Assistant

This the configuration that I use for the integration: Screenshot_20240420_140644_Samsung DeX home

Additional context

busywait commented 7 months ago

I added data from my logs to the description.

The correct location is logged at 2024-04-20 15:26:11.913 in this excerpt, and the incorrect location is logged at 2024-04-20 15:27:57.793 and 2024-04-20 15:27:58.468.

Is a stale value (time stamped 'time': '20240420142755') over-writing the correct value (time stamped 'time': '20240420161550')?

busywait commented 7 months ago

I haven't seen this being a problem in the last few days. Perhaps something has changed (been fixed!) in the Kia/Hyundai API? Edit: Nope, not fixed, still seeing this problem.