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
428 stars 85 forks source link

Car battery sensor unavailable #234

Closed zadigre closed 2 years ago

zadigre commented 2 years ago

In Canada, 2021 Kona Electric.

I just installed the master branch to see if there was any new bug or new feature.

car battery sensor is unavailable. in the entities list, the status says "Restored". ev battery sensor is ok.

I reloaded the integration. same problem. restarted home assistant. same problem.

it was working fine with v1.2.6.

cdnninja commented 2 years ago

Only change between 1.2.6 and master that touches canada is: https://github.com/fuatakgun/kia_uvo/commit/840743774808767a1251ad4d6c8dac5a45866276

It essentially just changes where the code is not what it does. I have tested on my ICE Canadian Kia and it shows battery no issue. Could you post debug logs?

zadigre commented 2 years ago

anything specific you are looking for in the log?

this is the last entries I have in the core log: 2022-01-04 13:43:04 DEBUG (SyncWorker_0) [custom_components.kia_uvo.KiaUvoApiCA] kia_uvo - get_cached_vehicle_status response {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'status': {'lastStatusDate': '20220104181242', '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, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 85, 'batteryPlugin': 0, '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': 299.0, 'unit': 1}, 'totalAvailableRange': {'value': 299.0, 'unit': 1}}, 'type': 2}]}, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 0, 'sideBackWindowHeat': 0, 'dte': {}, 'tirePressureLamp': {'tirePressureLampAll': 0}, 'battery': {'batSignalReferenceValue': {}}, 'remoteIgnition': True, 'seatHeaterVentInfo': {}, 'sleepModeCheck': False, 'lampWireStatus': {'headLamp': {}, 'stopLamp': {}, 'turnSignalLamp': {}}, 'windowOpen': {}, 'engineRuntime': {}}}} 2022-01-04 13:43:07 DEBUG (SyncWorker_0) [custom_components.kia_uvo.KiaUvoApiCA] kia_uvo - Get Service status data {'responseHeader': {'responseCode': 0, 'responseDesc': 'Success'}, 'result': {'maintenanceInfo': {'msopServiceOdometer': 12920.0, 'msopServiceOdometerUnit': 1, 'mtspServiceDate': '20211109', 'imatServiceOdometer': 24920.0, 'imatServiceOdometerUnit': 1, 'mtitServiceDate': '20220509', 'currentOdometer': 18097.8, 'currentOdometerUnit': 1, 'serviceOdometerDuration': 12000.0, 'serviceDaysDuration': 180, 'serviceMonthsThreshold': 6}}} 2022-01-04 13:43:07 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - LastUpdated 2022-01-04 18:12:42+00:00 - Timezone UTC 2022-01-04 13:43:07 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - Engine type set VEHICLE_ENGINE_TYPE.EV

zadigre commented 2 years ago

it looks like log is not showing anything for battery... I'm wondering why it stopped working after updating to master.

cdnninja commented 2 years ago

Looks like kia is no longer providing that value for your car. We have seen similar in the past where the restart causes Kia updates to kick in. They must have changed something. Not much we can do if they stopped providing the data.

zadigre commented 2 years ago

ok thanks. I'll try to restart Bluelink in my car to see if it helps. this resolved weird little problem in the past.

anyway, the wasn't really helpful to begin with...

cdnninja commented 2 years ago

Yes could even be the car itself.

zadigre commented 2 years ago

sensor came back this morning... and I didn't do anything to fix it. so it looks like the car or Bluelink was having problem sending this value.

alexwhittemore commented 2 years ago

@zadigre Have you run into this on and off since this thread? I'm missing my car battery right now and I'm wondering if there's anything I can do to get it back, or if I'm just along for the ride. "Aux battery saver +" is behaving badly on my EV6 so I've been using this telemetry to keep an eye on what's going on.

zadigre commented 2 years ago

@alexwhittemore No just this one time event

alexwhittemore commented 2 years ago

Thanks! Well, here's to hoping mine comes back :(