Closed jayscovill closed 1 month ago
To add to this, here is a log entry at the next scheduled cache refresh where you can see it reverted bat to 52%
2024-05-20 09:53:16.249 DEBUG (SyncWorker_17) [hyundai_kia_connect_api.VehicleManager] hyundai_kia_connect_api - Time differential in seconds: 1803.249839
2024-05-20 09:53:16.775 DEBUG (SyncWorker_17) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - get_cached_vehicle_status response {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'status': {'lastStatusDate': '20240520132605', 'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTempUnit': 'C', 'airTemp': {'value': '00H', 'unit': 0}, 'defrost': False, 'lowFuelLight': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 51, 'batteryPlugin': 2, 'remainTime2': {'etc1': {'value': 0, 'unit': 1}, 'etc2': {'value': 0, 'unit': 1}, 'etc3': {'value': 0, 'unit': 1}, 'atc': {'value': 0, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'gasModeRange': {'value': 421.0, 'unit': 1}, 'evModeRange': {'value': 20.0, 'unit': 1}, 'totalAvailableRange': {'value': 441.0, 'unit': 1}}, 'type': 2}]}, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 0, 'sideBackWindowHeat': 0, 'dte': {}, 'tirePressureLamp': {'tirePressureLampAll': 0}, 'battery': {'batSoc': 92, 'sjbDeliveryMode': 1, 'batSignalReferenceValue': {'batWarning': 65}, 'powerAutoCutMode': 2}, 'remoteIgnition': True, 'seatHeaterVentInfo': {'drvSeatHeatState': 2, 'astSeatHeatState': 2, 'rlSeatHeatState': 2, 'rrSeatHeatState': 2}, 'sleepModeCheck': False, 'lampWireStatus': {'headLamp': {'headLampStatus': False, 'leftLowLamp': False, 'rightLowLamp': False, 'leftHighLamp': False, 'rightHighLamp': False, 'leftBifuncLamp': False, 'rightBifuncLamp': False}, 'stopLamp': {'leftLamp': False, 'rightLamp': False}, 'turnSignalLamp': {'leftFrontLamp': False, 'rightFrontLamp': False, 'leftRearLamp': False, 'rightRearLamp': False}}, 'windowOpen': {}, 'smartKeyBatteryWarning': False, 'fuelLevel': 83, 'washerFluidStatus': False, 'breakOilStatus': False, 'engineOilStatus': False, 'engineRuntime': {}}}}
2024-05-20 09:53:16.775 DEBUG (SyncWorker_17) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Old Vehicle Last Updated: 2024-05-20 13:23:13+00:00
2024-05-20 09:53:16.776 DEBUG (SyncWorker_17) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Current Vehicle Last Updated: 2024-05-20 13:26:05+00:00
2024-05-20 09:53:16.899 DEBUG (SyncWorker_17) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Get Service status data {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'maintenanceInfo': {'msopServiceOdometer': 109.0, 'msopServiceOdometerUnit': 1, 'mtspServiceDate': '20240516', 'imatServiceOdometer': 10109.0, 'imatServiceOdometerUnit': 1, 'mtitServiceDate': '20250516', 'currentOdometer': 244.6, 'currentOdometerUnit': 1, 'serviceOdometerDuration': 10000.0, 'serviceDaysDuration': 365, 'serviceMonthsThreshold': 12}}}
2024-05-20 09:53:17.514 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 1.265 seconds (success: True)
And then the next hourly forced update I've scheduled through an automation where it reflects the correct value:
2024-05-20 10:00:00.484 INFO (MainThread) [homeassistant.components.automation.car_update_state] Car - Update State: Running automation actions
2024-05-20 10:00:00.485 INFO (MainThread) [homeassistant.components.automation.car_update_state] Car - Update State: Executing step call service
2024-05-20 10:00:23.820 DEBUG (SyncWorker_61) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Received forced vehicle data {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'status': {'lastStatusDate': '20240520140022', 'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTempUnit': 'C', 'airTemp': {'value': '00H', 'unit': 0}, 'defrost': False, 'lowFuelLight': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 100, 'batteryPlugin': 2, 'remainTime2': {'etc1': {'value': 0, 'unit': 1}, 'etc2': {'value': 0, 'unit': 1}, 'etc3': {'value': 0, 'unit': 1}, 'atc': {'value': 0, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'gasModeRange': {'value': 0.0, 'unit': 1}, 'evModeRange': {'value': 441.0, 'unit': 1}, 'totalAvailableRange': {'value': 441.0, 'unit': 1}}, 'type': 2}]}, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 0, 'sideBackWindowHeat': 0, 'dte': {}, 'tirePressureLamp': {'tirePressureLampAll': 0}, 'battery': {'batSoc': 92, 'sjbDeliveryMode': 1, 'batSignalReferenceValue': {'batWarning': 65}, 'powerAutoCutMode': 2}, 'remoteIgnition': True, 'seatHeaterVentInfo': {'drvSeatHeatState': 2, 'astSeatHeatState': 2, 'rlSeatHeatState': 2, 'rrSeatHeatState': 2}, 'sleepModeCheck': False, 'lampWireStatus': {'headLamp': {'headLampStatus': False, 'leftLowLamp': False, 'rightLowLamp': False, 'leftHighLamp': False, 'rightHighLamp': False, 'leftBifuncLamp': False, 'rightBifuncLamp': False}, 'stopLamp': {'leftLamp': False, 'rightLamp': False}, 'turnSignalLamp': {'leftFrontLamp': False, 'rightFrontLamp': False, 'leftRearLamp': False, 'rightRearLamp': False}}, 'windowOpen': {}, 'smartKeyBatteryWarning': False, 'fuelLevel': 83, 'washerFluidStatus': False, 'breakOilStatus': False, 'engineOilStatus': False, 'engineRuntime': {}}}}
2024-05-20 10:00:23.820 DEBUG (SyncWorker_61) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Offset between vehicle and UTC: 0 hours
2024-05-20 10:00:23.820 DEBUG (SyncWorker_61) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Old Vehicle Last Updated: 2024-05-20 13:26:05+00:00
2024-05-20 10:00:23.820 DEBUG (SyncWorker_61) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Current Vehicle Last Updated: 2024-05-20 14:00:22+00:00
2024-05-20 10:00:23.954 DEBUG (SyncWorker_61) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Get Service status data {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'maintenanceInfo': {'msopServiceOdometer': 109.0, 'msopServiceOdometerUnit': 1, 'mtspServiceDate': '20240516', 'imatServiceOdometer': 10109.0, 'imatServiceOdometerUnit': 1, 'mtitServiceDate': '20250516', 'currentOdometer': 244.6, 'currentOdometerUnit': 1, 'serviceOdometerDuration': 10000.0, 'serviceDaysDuration': 365, 'serviceMonthsThreshold': 12}}}
2024-05-20 10:00:23.956 DEBUG (SyncWorker_47) [hyundai_kia_connect_api.VehicleManager] hyundai_kia_connect_api - Time differential in seconds: 1.956246
2024-05-20 10:00:24.126 DEBUG (SyncWorker_47) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - get_cached_vehicle_status response {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'status': {'lastStatusDate': '20240520140022', 'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTempUnit': 'C', 'airTemp': {'value': '00H', 'unit': 0}, 'defrost': False, 'lowFuelLight': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 100, 'batteryPlugin': 2, 'remainTime2': {'etc1': {'value': 0, 'unit': 1}, 'etc2': {'value': 0, 'unit': 1}, 'etc3': {'value': 0, 'unit': 1}, 'atc': {'value': 0, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'gasModeRange': {'value': 0.0, 'unit': 1}, 'evModeRange': {'value': 441.0, 'unit': 1}, 'totalAvailableRange': {'value': 441.0, 'unit': 1}}, 'type': 2}]}, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 0, 'sideBackWindowHeat': 0, 'dte': {}, 'tirePressureLamp': {'tirePressureLampAll': 0}, 'battery': {'batSoc': 92, 'sjbDeliveryMode': 1, 'batSignalReferenceValue': {'batWarning': 65}, 'powerAutoCutMode': 2}, 'remoteIgnition': True, 'seatHeaterVentInfo': {'drvSeatHeatState': 2, 'astSeatHeatState': 2, 'rlSeatHeatState': 2, 'rrSeatHeatState': 2}, 'sleepModeCheck': False, 'lampWireStatus': {'headLamp': {'headLampStatus': False, 'leftLowLamp': False, 'rightLowLamp': False, 'leftHighLamp': False, 'rightHighLamp': False, 'leftBifuncLamp': False, 'rightBifuncLamp': False}, 'stopLamp': {'leftLamp': False, 'rightLamp': False}, 'turnSignalLamp': {'leftFrontLamp': False, 'rightFrontLamp': False, 'leftRearLamp': False, 'rightRearLamp': False}}, 'windowOpen': {}, 'smartKeyBatteryWarning': False, 'fuelLevel': 83, 'washerFluidStatus': False, 'breakOilStatus': False, 'engineOilStatus': False, 'engineRuntime': {}}}}
2024-05-20 10:00:24.126 DEBUG (SyncWorker_47) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Old Vehicle Last Updated: 2024-05-20 14:00:22+00:00
2024-05-20 10:00:24.127 DEBUG (SyncWorker_47) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Current Vehicle Last Updated: 2024-05-20 14:00:22+00:00
2024-05-20 10:00:24.273 DEBUG (SyncWorker_47) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Get Service status data {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'maintenanceInfo': {'msopServiceOdometer': 109.0, 'msopServiceOdometerUnit': 1, 'mtspServiceDate': '20240516', 'imatServiceOdometer': 10109.0, 'imatServiceOdometerUnit': 1, 'mtitServiceDate': '20250516', 'currentOdometer': 244.6, 'currentOdometerUnit': 1, 'serviceOdometerDuration': 10000.0, 'serviceDaysDuration': 365, 'serviceMonthsThreshold': 12}}}
2024-05-20 10:00:24.802 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 0.847 seconds (success: True)
Data looks to be coming from the servers? If so not much we can do to help.
Odd that a forced update pulls down the correct values. Thanks, guess I’ll turn off the scheduled scans and rely on automations.
From: cdnninja @.> Sent: Monday, May 20, 2024 10:17:55 AM To: Hyundai-Kia-Connect/kia_uvo @.> Cc: Jay Scovill @.>; Author @.> Subject: Re: [Hyundai-Kia-Connect/kia_uvo] "EV Battery Level" sensor reverts to 51% after a period of time without update or after Home Assistant restart" (Issue #881)
Data looks to be coming from the servers? If so not much we can do to help.
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/881#issuecomment-2120556364, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHJPTC6R33NAI4AO7SUKCC3ZDIAZHAVCNFSM6AAAAABH7XUN26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGU2TMMZWGQ. You are receiving this because you authored the thread.Message ID: @.***>
Force scanned will kill your car battery if used too much. Careful with that.
Yes, I'm monitoring my 12V level to watch the affect and make sure that doesn't happen. Thanks.
I don't suppose there's any way of disabling cached scans completely? Max I can set it to is 999 minutes so due to this issue it's throwing off my stats ever 16 hours until the next hourly forced scan I'm automating. This time it's pulling 37% as the battery level during a cached scan so it's not consistent. A forced update immediately gives the correct value.
Region and Brand of car Kia/Canada
Version of the integration 2.24.2
Describe the bug After a period of time after a manual forced update (undetermined) or after Home Assistant restarts the value of the "EV Battery Level" sensor reverts back to 51%. If I force an update it gets the correct value but reverts back to 51% after the specified conditions until the next manual forced update.
Debug logs if an error occurred Before forced update:
After forced update:
To Reproduce
Described above
Expected behavior
EV Battery Level is reported consistently and maintains value across restarts.
Screenshots
Additional context