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

CA Car heating controls not working #861

Open yonigold1 opened 6 months ago

yonigold1 commented 6 months ago

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
cdnninja commented 6 months ago

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

yonigold1 commented 6 months ago

i tried all the different options none work

yonigold1 commented 4 months ago

is there something i can do?

cdnninja commented 4 months ago

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

yonigold1 commented 4 months ago

How do i sniff the traffic?

yonigold1 commented 4 months ago

is that something i can do with charles reverse proxy?

cdnninja commented 4 months ago

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

cdnninja commented 4 months ago

Charles works too if you prefer.

yonigold1 commented 4 months ago

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

yonigold1 commented 4 months ago

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 commented 4 months ago

let me know what to do next.

yonigold1 commented 4 months ago

@cdnninja ?

cdnninja commented 4 months ago

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

yonigold1 commented 4 months ago

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

cdnninja commented 4 months ago

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

yonigold1 commented 4 months ago

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

cdnninja commented 4 months ago

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 commented 4 months ago

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

yonigold1 commented 4 months ago

which yaml? in the custom_components folder under kia uvo?

cdnninja commented 4 months ago

No the yaml your sending in start_climate command.

yonigold1 commented 4 months ago

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

yonigold1 commented 4 months ago

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?

cdnninja commented 3 months ago

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