Adding support for Bluelink Australia #462
Replies: 20 comments 14 replies
-
This is a great start for this. Would you consider developer some of this with our support or guidance? It's always easier when you have access to the car. |
Beta Was this translation helpful? Give feedback.
-
Yes, of course. |
Beta Was this translation helpful? Give feedback.
-
i have a weak feeling that, this is identical to EU logic, just different app-id and cs-id. |
Beta Was this translation helpful? Give feedback.
-
Hopefully just without stamps. |
Beta Was this translation helpful? Give feedback.
-
I think best way to start this one is to download postman and try manually replicate logging in and getting the vehicle data like above. Once successful with that we can start building this into the 2.0 version of this. It is run via: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api So we would need to create a new API file that implements this: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/master/hyundai_kia_connect_api/ApiImpl.py Examples of what it would look like are https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/master/hyundai_kia_connect_api/KiaUvoApiCA.py and Very different login schemes used between those two. A few other minor spots need to be updated to allow it to reference Australia but that API file is the key part. Feel free to drop us any questions and we will help best we can! |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll tinker around with Postman over the weekend. Do I just paste them here for you guys to complete the API? |
Beta Was this translation helpful? Give feedback.
-
Yes or you can drop a pull request for the code changes. I started a PR here that will reflect the work: Hyundai-Kia-Connect/hyundai_kia_connect_api#115 |
Beta Was this translation helpful? Give feedback.
-
Reviewing this I just saw it has stamps. I missed that. This is over my skill. It has been done for EU over here: https://github.com/neoPix/bluelinky-stamps |
Beta Was this translation helpful? Give feedback.
-
Yeah that does seem over my skillset as well. How can I check whether these stamps can work for AU as well? |
Beta Was this translation helpful? Give feedback.
-
Postman I would think but knowing the exact stamp to use would be key. I would think can take the stamps from the above repo. |
Beta Was this translation helpful? Give feedback.
-
I'm a developer and would love to contribute to this; I'm familiar with Postman etc. I'm a little confused as to where to start though. I attempted mitmproxy / Charles on the app but unfortunately it looks like they use certificate pinning, and it also looks like they verify the checksum at runtime ("This app has been forged" and then it refuses to open) so patching the app to bypass the certificate pinning doesn't work. @cdnninja how were you able to inspect the request/responses for eu / ca etc? is there a non-app version of Bluelink in those regions? and @muneeb1990 how were you able to inspect those requests in your OP? |
Beta Was this translation helpful? Give feedback.
-
For Canada I just use chrome or edge developer mode as it has a website. EU I haven't done that's been other people. Bluelinky discord is best spot for that. It only has an app and isn't easy with cert pinning. |
Beta Was this translation helpful? Give feedback.
-
Just joined too, cdf952.
…Sent from my iPhone
On 24 Jul 2023, at 10:23 pm, bitnimble ***@***.***> wrote:
I've joined the Discord (same username): https://discord.gg/wQT4xqj4
we can chat more there, share logs, etc
—
Reply to this email directly, view it on GitHub<#462 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZQP2VVAXPOA5DMNBNA3X63XRZSKJANCNFSM6AAAAAAS7DTTMM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
if we need different stamp generation algorithm, we can work with this repository (using SO files from respective apps) to generate APP ID specific files. https://github.com/Hacksore/hyundai-kia-stamp/tree/master/lib/hyundai |
Beta Was this translation helpful? Give feedback.
-
Hey all! This is now been added with basic support for Hyundai. Lets track issues here: #692 |
Beta Was this translation helpful? Give feedback.
-
Any chance this will get added for Kia? |
Beta Was this translation helpful? Give feedback.
-
I've tried to do some basic POSTS to
No luck - keep getting this error:
|
Beta Was this translation helpful? Give feedback.
-
Given there is no website and only an Android app, debugging is quite difficult :( How does the XOR value get generated? |
Beta Was this translation helpful? Give feedback.
-
“ only an Android app”? |
Beta Was this translation helpful? Give feedback.
-
Yes sorry - i meant "only a mobile app, not a website".. as without a website it is very had to sniff traffic. If you have it on a Mac, then that would be ideal. You would need to install a tool like "FIddler", run it whilst you play with the app on your mac and somehow share what fiddler captures. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Hi, I recently purchased a Hyundai Palisade which is the first model to support Bluelink in Australia and would like to assist in capturing the relevant API endpoints and data to add support for Australia in this HA custom component
Describe the solution you'd like
Add support for Australia models
Include the logs of the end point from Data in HA if this is a sensor
Flow for login:
Flow for getting latest status:
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Please let me know what else you need to get this going. Last but not the least, thanks for supporting this!
Beta Was this translation helpful? Give feedback.
All reactions