Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start climate doesnt work with Canadian Kia EV9 #687

Open
sethp45 opened this issue Nov 23, 2024 · 2 comments
Open

start climate doesnt work with Canadian Kia EV9 #687

sethp45 opened this issue Nov 23, 2024 · 2 comments

Comments

@sethp45
Copy link

sethp45 commented Nov 23, 2024

  • Hyundai / Kia Connect version: 3.29.1
  • Python version: 3.12.4
  • Operating System: homeassistantOS

Description

Calling start_climate with a Canadian Kia EV9 fails and returns error code 15109.

The API builds the payload like this for EV cars:

payload = { "hvacInfo": { "airCtrl": int(options.climate), "defrost": options.defrost, "heating1": options.heating, "airTemp": { "value": hex_set_temp, "unit": 0, "hvacTempType": 1, }, }, "pin": token.pin, }

I dont know for other EV vehicules but at least for the Canadian EV9, Ive found out that it should be

payload = { "remoteControl": { "airCtrl": int(options.climate), "defrost": options.defrost, "heating1": options.heating, "igniOnDuration": options.duration, "ims": 0, "airTemp": {"value": hex_set_temp, "unit": 0, "hvacTempType": 0}, "seatHeaterVentCMD": { "drvSeatOptCmd": options.front_left_seat, "astSeatOptCmd": options.front_right_seat, "rlSeatOptCmd": options.rear_left_seat, "rrSeatOptCmd": options.rear_right_seat, }, }, "pin": token.pin, }

This is how Ive fixed it locally.
Hope this help

@cdnninja
Copy link
Collaborator

Could you create a pull request?

@sethp45
Copy link
Author

sethp45 commented Nov 23, 2024

I used to be a dev in my old days, that's how I managed to find how to a fix this but I'm not familiar with GitHub and pull request mecanism and I dont want to make a mess. So Id rather share the fix and let someone else make the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants