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
450 stars 89 forks source link

New Hyundai EV services #957

Open jwillemsen opened 3 weeks ago

jwillemsen commented 3 weeks ago

Is your feature request related to a problem? Please describe. New Hyundai EV services

Describe the solution you'd like From the Hyundai Bluelink Europe iOS app update from today, there are the following new services:

cdnninja commented 2 weeks ago

Would need someone with one of these cars to sniff this traffic and add it. The commands most likely aren't too complicated but sniffing the traffic can be a pain.

MrBlue90 commented 1 week ago

If I get som time, I might be able to take a shot with Wireshark. What would I be looking for? Any known destination IP, ports or type of messages?

cdnninja commented 1 week ago

Wireshark won't work. You need something like Charles proxy. It's all encrypted. I'm also hearing cert pinning is becoming harder to get around.

emtunc commented 1 week ago

Hazard lights: POST /api/v2/spa/vehicles/{id}/ccs2/control/light POST body: {"command":"on"}

Light/Horn: POST /api/v2/spa/vehicles/{id}/ccs2/control/hornlight POST body: {"command":"on"}

emtunc commented 1 week ago

Remote Windows Ventilation, for certain vehicles including Staria and New Tucson with ccNC (Connected Car Navigation Cockpit)

My IONIQ 5 (EU) does not show these options in Bluelink but after a little hacking, I managed to get them to show up in the app. Tried it and it worked!

POST /api/v2/spa/vehicles/$vehicleId/ccs2/control/windowcurtain

{
"drvSeatWindow":1,
"psgSeatWindow":1,
"rrSeatWindow":1,
"rlSeatWindow":1,
"drvSeatLoc":"R"
}

Response:

{"retCode":"S","resCode":"0000","msgId":"$messageId","SID":"$SID"}

Closing windows is the same, except all the values are 0 instead of 1