kia_uvo icon indicating copy to clipboard operation
kia_uvo copied to clipboard

CA Car heating controls not working

Open yonigold1 opened this issue 10 months ago • 23 comments

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 Canada SantaFe 2019 Version of the integration Latest

Describe the bug A clear and concise description of what the bug is. My car supports the feature to remote start and has options for the heating steering wheel as well as both front and back defrosters. as seen below. Screenshot 2024-04-04 at 1 32 07 AM when i try to do it through this integration it starts the care but doesn't turn on those switches Screenshot 2024-04-04 at 1 34 57 AM

yonigold1 avatar Apr 04 '24 05:04 yonigold1

Try the other options and let me know if they work.

cdnninja avatar Apr 04 '24 18:04 cdnninja

i tried all the different options none work

yonigold1 avatar Apr 04 '24 19:04 yonigold1

is there something i can do?

yonigold1 avatar May 28 '24 18:05 yonigold1

On the website go into debug mode and sniff the traffic while you run the command. Compare the values to what we send.

cdnninja avatar May 28 '24 19:05 cdnninja

How do i sniff the traffic?

yonigold1 avatar May 28 '24 19:05 yonigold1

is that something i can do with charles reverse proxy?

yonigold1 avatar May 28 '24 19:05 yonigold1

For Canada easiest way is the developer menu in your browser.

cdnninja avatar May 28 '24 19:05 cdnninja

Charles works too if you prefer.

cdnninja avatar May 28 '24 19:05 cdnninja

is there a tutorial i can follow? Im a beginner i have no clue what im doing haha

yonigold1 avatar May 28 '24 19:05 yonigold1

i think this is what you're looking for right? the settings i had it on were all heated features on (only heated steering wheel and front/back windshields are supported for my car) these are what i captured using the iPhone app and a proxy capture { "responseHeader": { "responseCode": 0, "responseDesc": "Success" }, "result": { "status": { "lastStatusDate": "20240528195033", "airCtrlOn": true, "engine": true, "doorLock": true, "doorOpen": { "frontLeft": 0, "frontRight": 0, "backLeft": 0, "backRight": 0 }, "trunkOpen": false, "airTempUnit": "C", "airTemp": { "value": "1AH", "unit": 0 }, "defrost": true, "lowFuelLight": false, "acc": false, "hoodOpen": false, "transCond": true, "steerWheelHeat": 1, "sideBackWindowHeat": 1, "dte": { "value": 346.0, "unit": 1 }, "tirePressureLamp": { "tirePressureLampAll": 0 }, "battery": { "batSoc": 72, "batState": 0, "sjbDeliveryMode": 1, "batSignalReferenceValue": {} }, "remoteIgnition": true, "seatHeaterVentInfo": {}, "lampWireStatus": { "headLamp": {}, "stopLamp": {}, "turnSignalLamp": {} }, "windowOpen": {}, "engineRuntime": {} } } }

i also captured this, these are my presets i have set in the bluelink app

{ "responseHeader": { "responseCode": 0, "responseDesc": "Success" }, "result": [ { "id": 533741, "settingName": "Semi Warm/Cold", "airCtrl": 1, "defrost": false, "airTemp": { "value": "0CH", "unit": 0 }, "igniOnDuration": 10, "heating1": 0, "ims": 0, "defaultFavorite": false }, { "id": 363886, "settingName": "Cold Out", "airCtrl": 1, "defrost": true, "airTemp": { "value": "1AH", "unit": 0 }, "igniOnDuration": 10, "heating1": 1, "ims": 0, "defaultFavorite": true }, { "id": 422932, "settingName": "Hot Out", "airCtrl": 1, "defrost": false, "airTemp": { "value": "01H", "unit": 0 }, "igniOnDuration": 10, "heating1": 0, "ims": 0, "defaultFavorite": false } ] }

yonigold1 avatar May 28 '24 20:05 yonigold1

let me know what to do next.

yonigold1 avatar May 28 '24 20:05 yonigold1

@cdnninja ?

yonigold1 avatar Jun 05 '24 03:06 yonigold1

Compare this to the debug logs and code to see what differs.

cdnninja avatar Jun 05 '24 03:06 cdnninja

how can i view the debug logs?/where can i find them?

yonigold1 avatar Jun 05 '24 04:06 yonigold1

Enable on the integration and view them in home assistant system core logs.

cdnninja avatar Jun 05 '24 04:06 cdnninja

2024-06-05 00:14:34.372 DEBUG (SyncWorker_7) [hyundai_kia_connect_api.KiaUvoApiCA] hyundai_kia_connect_api - Planned start_climate payload {'setting': {'airCtrl': 1, 'defrost': True, 'heating1': '4', 'igniOnDuration': 10, 'ims': 0, 'airTemp': {'value': '14H', 'unit': 0, 'hvacTempType': 0}, 'seatHeaterVentCMD': {'drvSeatOptCmd': 0, 'astSeatOptCmd': 0, 'rlSeatOptCmd': 0, 'rrSeatOptCmd': 0}}, 'pin': '****'}

this is what appears

yonigold1 avatar Jun 05 '24 04:06 yonigold1

So now sniff the matching start command in the website compare and if you find differences in format submit a pull request. If difference in values play with the yaml.

This will need to be something for you or the community to work on. I don't own one of these cars anymore and don't have time to do the work.

cdnninja avatar Jun 05 '24 04:06 cdnninja

In your yaml try pass 1 as the heating value instead of using the interface.

cdnninja avatar Jun 05 '24 04:06 cdnninja

which yaml? in the custom_components folder under kia uvo?

yonigold1 avatar Jun 05 '24 04:06 yonigold1

No the yaml your sending in start_climate command.

cdnninja avatar Jun 05 '24 04:06 cdnninja

wdym by that? like the the automation yaml or the services.yaml?

yonigold1 avatar Jun 05 '24 04:06 yonigold1

Ah i figured it out! Next question is i want the temp to be set to 17º however that gets sent out through blue link as "01H" for the value of temp how can i input that as well?

yonigold1 avatar Jun 05 '24 04:06 yonigold1

That converts in code. Send 17 and see if the logs show it sent correctly.

cdnninja avatar Jun 05 '24 13:06 cdnninja