[APP][Pro][Official] Kia and Hyundai

This…

Sorry, but I’ve not been on this forum for years, nor do I keep track of what everyone’s skills are on any forum I’m on.

Perhaps someone else will benefit from my post. :victory_hand:

2 Likes

Yeah, for now it seems that HA is the way to go. In HA the app gets updated quite a lot. It is not the most user-friendly way to get the token if you are an EU citizen, but is it doable. After getting it into HA, I pull it over to Homey. For me, that’s the perfect world.

Thanks for clarifying this point. In Canada, we don’t have to do such a thing and so connecting is very simple. The HA integration had a period of great stability, then many cloudflare issues, then the cloud server issue was resolved and the integration was taken over by another developer. It has been very stable ever since. I also have an integration (Canada and US only) running on Hubitat that has been rock solid, even when the HA integration wasn’t working.

Long enough time for me to decide not to buy a Hyundai/Kia more in my lifetime. They made it clear : we care not of our customers.

The real reason they shut down API is because higher demands on their servers. Instead of expanding and building out their server park, they f**k they’re cudtometd, shut down the api, keep the same server racks and pat their selves in their boardroom mettings.

Good to know

1 Like

They don’t want to expand their server park to keep up the demand.

I have already deactivated the app and have a test drive with a Homey-compatible model next week. I have informed Kia that I will no longer be purchasing a Kia/Hyundai.

Just got my Kia plumber van PV5 :blush::tada: with the new Pleos car software.

I think there is hope for all home automation users. This is what I found on their homepage in a press release. It’s in German. There might be an English version, also.

Das Pleos-Paket beinhaltet darüber hinaus die offene Entwicklungsplattform Pleos Playground. Sie ermöglicht es Drittanbietern, bei der Entwicklung mobiler Anwendungen frei auf die Endpunkte der Automotive-Software zuzugreifen – von Fahrzeugen, Cloud, Analytik und Zubehör.

Translated by DeepL:

The Pleos package also includes the open development platform Pleos Playground. It enables third-party providers to freely access the endpoints of automotive software when developing mobile applications—from vehicles, the cloud, analytics, and accessories.

2 Likes

I don’t know but the ccNC and Gen5w Software Plattform isn’t the same as Pleos software platform ?

i’ve got new version: GitHub - smalarz/kia-token-generator: kia-token-generator

What changed in v2.5

  • No more Selenium / ChromeDriver dependency — uses Chrome’s native DevTools Protocol (CDP) over WebSocket

  • Automatic login detection — detects java.util.NoSuchElementException in the browser and proceeds automatically (no manual confirmation needed)

  • Browser closes automatically — as soon as the authorization code is captured, Chrome closes so it doesn’t cover the terminal output

  • Window stays open — after finishing, the script waits for Enter so the CMD window doesn’t disappear (useful for .exe users)

  • Automatic locale detection — login page language matches your system (override with --locale pl)

  • Dynamic state parameter — no more hardcoded timestamps that could expire

  • Auto-install dependencies — creates a local .venv and installs requests + websocket-client automatically

  • Retry with backoff on token exchange errors (429, timeouts)

  • Works on Windows, macOS, and Linux without extra setup beyond Chrome + Python

Thank you for your effort. However, I could not make it work.

============================================================

  Kia Token Generator v2.0.0

  Region: EU | Locale: de | CDP port: 9222

============================================================



[INFO] Launching Chrome (port 9222)...

  Browser: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[INFO] Chrome ready.





============================================================

  A Chrome window has opened with the Kia login page.

  1. Log in with your Kia Connect credentials

  2. Complete the CAPTCHA

  3. The script will detect login automatically

============================================================



[INFO] Waiting for login (up to 5 minutes)...

  (You can also press Enter here to continue manually)



  Still waiting for login... (4m remaining)



[OK] Login detected automatically! Continuing...



[INFO] Navigating to OAuth redirect URL...

[INFO] Waiting for authorization code...

[DEBUG] Looking for redirect to: https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/redirect

[DEBUG] Found code in URL: https://www.kia.com/api/bin/oneid/login?code=2c9a03d4-9602-4917-a323-0d6fd01b001...

[DEBUG] Using fallback URL: https://www.kia.com/api/bin/oneid/login?code=2c9a03d4-9602-4917-a323-0d6fd01b001...

[WARN] Got code from unexpected URL: https://www.kia.com/api/bin/oneid/login?code=2c9a03d4-9602-4917-a323-0d6fd01b001...

[WARN] Expected URL to start with: https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/redirect

[WARN] This may cause token exchange to fail. Continuing anyway...

[OK] Authorization code: 2c9a03d4-9602-4917-a323-0d6fd0...

[INFO] Closing browser...

[INFO] Exchanging code for tokens...

[WARN] Token exchange HTTP 400 (attempt 1/3)

[WARN] Token exchange HTTP 400 (attempt 2/3)

[WARN] Token exchange HTTP 400 (attempt 3/3)

[ERROR] Response body: {"retId":"680ebe93-f869-45ac-919a-ce004f0e7e54","retCode":4000,"retMsg":"Bad Request","retSubMsg":"\"Mismatched token redirect uri. authorize: https://www.kia.com/api/bin/oneid/login token: https://prd.eu-ccapi.kia.com:8080/api/v1/user/oauth2/redirect\"","retValue":null}

[ERROR] Token exchange failed after all retries.

Press Enter to exit...


i will check it

ok, check the update

doesn’t work

Try the new version now and let me know if you run into any errors.

That worked! Token retrieved. Thanks!

1 Like

I used the latest version. Under Windows 11, the installation immediately aborts with the error message posted above, see above.

Got the code, tried it in the Homey app but doesn’t work unfortunate

Is there any news on this? Advertising that they all work like monitoring, control, and alarms is more than misleading…

I just asked the AI assistant to remove KIA and Hyundai from the Best Buy guide, as they are no longer a Best Buy :slight_smile: