Hacksore / bluelinky

An unofficial nodejs API wrapper for Hyundai bluelink and Kia UVO
https://bluelinky.readme.io
MIT License
338 stars 76 forks source link

HomeKit plug-in using bluelinky fails to start climate #221

Open filmgeek47 opened 2 years ago

filmgeek47 commented 2 years ago

Describe the bug Currently running the home bridge bluelinky-based plug-in for controlling my Ioniq5. Unlocking and locking doors works fine, but no matter how I adjust the settings I can’t get climate start to work (mostly tested with the duration set to 10 as that matches the default duration from blue link).

Usefull info(please complete the following information):

Additional context Don’t have detailed logging info as I’m getting logs via the home bridge plug-in. Upon climate activation, the plug-in errors out: [Hyundai] Starting Vehicle [Hyundai] Start Response Failed to start vehicle

I can’t seem to find the post, but I thought I saw someone mention somewhere that Hyundai altered the API for blue link with the Ioniq5. When I use the app to start climate it defaults to asking me which climate “preset” I’d like to run, although the watch app also lets you simply submit a temp so not sure what the deal is here.

Hacksore commented 2 years ago

@SteffeyDev Not sure that anything would be solved using v8.x but there is an experimental alpha to try out.

As for the payload, I'm not sure how the EVs vs ICE vehicles respond to the payload but I'd assume this would work on an EV.

v7

{
    "airCtrl": false,
    "heating1": false,
    "defrost": false,
    "airTempvalue": 72,
    "igniOnDuration": 10
}

But for v8 it'd be something like this (untested)

{
    "hvac": false,
    "duration": 10,
    "temperature": 72,
    "defrost": false,
    "heatedFeatures": false,
    "unit": "fahrenheit"

}
jenil commented 11 months ago

you can see how it was done here for reference https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/pull/429/files