evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Since Kia API update: vehicle soc: timeout

Open Andes1984 opened this issue 1 year ago • 105 comments

Describe the bug

Since the KIA API changed and evcc got updated, the SoC of my Kia Niro EV is not getting reported to the wallbox. In the evcc log, I have this message:

[lp-1 ] ERROR 2025/08/21 16:53:45 vehicle soc: timeout

Charging works fine but the SOC is not getting shown.

Steps to reproduce

  1. Connect car
  2. Look at log
  3. See the error ...

Configuration details

vehicles:
- type: template
  template: kia
  title: Kia Niro EV
  user: xxxxxxxxxxxxxxxxxxxxxxx
  password: xxxxxxxxxxxxxxx
  vin: KNACRxxxxxxxxxxxx
  capacity: 64
  language: en
  name: niroev

Log details

[site ] DEBUG 2025/08/21 16:55:15 battery 1 soc: 97%
[site ] DEBUG 2025/08/21 16:55:15 site power: -724W
[lp-1 ] DEBUG 2025/08/21 16:55:15 charger status: C
[lp-1 ] ERROR 2025/08/21 16:55:15 vehicle soc: timeout
[lp-1 ] DEBUG 2025/08/21 16:55:15 pv charge current: 8.22A = 7.17A + 1.05A (-724W @ 3p)
[lp-1 ] DEBUG 2025/08/21 16:55:15 set charge current limit: 8.22A
[site ] DEBUG 2025/08/21 16:55:15 solar forecast: accumulated 0.012Wh from 2025-08-21 16:55:05 +0200 CEST to 2025-08-21 16:55:15 +0200 CEST
[site ] DEBUG 2025/08/21 16:55:15 solar forecast: produced 1985.132
[site ] DEBUG 2025/08/21 16:55:15 solar forecast: accumulated 1779.505kWh, produced 1985.132kWh, scale 1.116

What type of operating system or environment does evcc run on?

Docker container

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

v0.207.3

Andes1984 avatar Aug 21 '25 14:08 Andes1984

I'm a fresh user migrating from OpenWB, where no one seems to care about the Kia support, and I'm getting also an error in my fresh setup:

cannot create vehicle type 'template': cannot create vehicle type 'kia': login failed: missing code

I guess Kia/Hyundai are not yet finished tinkering with their API…

AndiH avatar Aug 21 '25 15:08 AndiH

Habe das selbe Problem mit der selben Fehlermeldung. Ich hatte das auch mit der HomeAssistant Integration vor ein paar Wochen, KIA hat wohl was an der Login Methode geändert.

CaptainChaos09 avatar Aug 21 '25 18:08 CaptainChaos09

Habe das gleiche Problem mit meinem Kia Soul. Cloud-Verbindung funktioniert wieder nicht.

musikus24 avatar Aug 21 '25 20:08 musikus24

Same for Hyundai Bluelink - since weekend there is a 50% chance of getting a connection. First guess: maybe the api calls limits have been lowered or an IP-address rate limit was implemented, because: Typically, one of two cars being plugged in is connected properly here, but over night they flip roles and the other one is shown connected instead. Today is the first day since weekend both are well connected simultaneously - did they change something again? ;)

hstammlerj avatar Aug 22 '25 03:08 hstammlerj

Kia hat auf der Login-Seite ein Captcha eingebaut (https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/855), das führt bis auf weiteres zu einem Ende aller nicht-interaktiven Anmeldeversuche... Kann man sehen, wenn man sich einmal aus der ach so großartigen neuen Kia-App abmeldet und neu anmeldet.

Hyundai scheint (im Moment) noch zu funktionieren.

pencoe avatar Aug 22 '25 06:08 pencoe

Ja, das Captcha ist wohl die Ursache. So lange man evcc nicht neu startet scheint es noch zu funktionieren, da dann nur die bereits existierenden Tokens erneuert werden. Bei einem Neustart schlägt dann direkt der Login fehl. Siehe auch https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/1260#issuecomment-3213350542.

RustyDust avatar Aug 22 '25 08:08 RustyDust

yes, same to me. unfortunately did this read too late... so after update and restart evcc - my kia ev3 couldn't connect ... hope there will be a chance kia uses a friendly captcha API?!

fklapro avatar Aug 22 '25 10:08 fklapro

KIA ist echt ein absoluter Drecksladen (geworden). Mein erster und letzter KIA bei dem was die zZ abziehen :(

dMopp avatar Aug 22 '25 13:08 dMopp

I have the same problem , I can't connect with evcc to my kia ev3. But the kia connect app works fine, in evcc yaml i use the same user & pasword. I even reinstalled the kia app and there is no problem it just works but evcc still refuse to connect. hopelfully is there a clever user who solves this problem!!!

Robert28021962 avatar Aug 22 '25 14:08 Robert28021962

cannot create vehicle type 'template': cannot create vehicle type 'kia': login failed: missing code That seems to be the problem , before the evcc update and restart it worked great!

Robert28021962 avatar Aug 22 '25 14:08 Robert28021962

@Robert28021962

cannot create vehicle type 'template': cannot create vehicle type 'kia': login failed: missing code That seems to be the problem , before the evcc update and restart it worked great!

That's the result of the problem, not the problem itself. The problem was and still is that Kia introduced a Captcha during login which can't be solved by the login routines used by evcc. The reason it stopped working for you is the restart of evcc. Without the restart evcc would have kept on refreshing the old token it had acquired during the previous run while there was no captcha active on the Kia side of things. You can easily verify this by logging out of your Kia app. On the next login you'll be asked to solve a Captcha request.

RustyDust avatar Aug 22 '25 15:08 RustyDust

Thank you for your response. I already understood that this is the result of an other problem.
The question now is of Kia or EVCC kan work around this.
lets see whats happens ....

Robert28021962 avatar Aug 22 '25 16:08 Robert28021962

The guys of the Kia/Hyundai/Uvo integration are also busy with the same problem: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/1260

And they have just solved it!!

TheBrankman avatar Aug 23 '25 21:08 TheBrankman

Here's the solution they came up with: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/pull/871/files (plus, consenting to a banner when logging in to the German Kia website)

AndiH avatar Aug 24 '25 12:08 AndiH

Where do you consent to the Banner? Can you please share a Link or explain where to Login?

Andreas Herten @.***> schrieb am So., 24. Aug. 2025, 14:10:

AndiH left a comment (evcc-io/evcc#23147) https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218060438

Here's the solution they came up with: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/pull/871/files (plus, consenting to a banner when logging in to the German Kia website)

— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218060438, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTVJI6KZWK33PB5IAM33PGTUVAVCNFSM6AAAAACEO7FWPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJYGA3DANBTHA . You are receiving this because you authored the thread.Message ID: @.***>

Andes1984 avatar Aug 24 '25 12:08 Andes1984

Where do you consent to the Banner? Can you please share a Link or explain where to Login?

Andreas Herten @.***> schrieb am So., 24. Aug. 2025, 14:10: …

Log in to https://www.kia.com/de and grant access to the account

wjasperse avatar Aug 24 '25 12:08 wjasperse

OK but that doesn't solve the Problem that my evcc instance doesn't Show the soc.

wjasperse @.***> schrieb am So., 24. Aug. 2025, 14:44:

wjasperse left a comment (evcc-io/evcc#23147) https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218080820

Where do you consent to the Banner? Can you please share a Link or explain where to Login?

Andreas Herten @.***> schrieb am So., 24. Aug. 2025, 14:10: … <#m_4209768559813033689_>

Log in to https://www.kia.com/de and grant access to the account

— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218080820, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTV2LPZM6OITMXQ64UT3PGXSZAVCNFSM6AAAAACEO7FWPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJYGA4DAOBSGA . You are receiving this because you authored the thread.Message ID: @.***>

Andes1984 avatar Aug 24 '25 12:08 Andes1984

This is step 1, step 2 is a code change that is needed. As referred earlier;

The guys of the Kia/Hyundai/Uvo integration are also busy with the same problem: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/1260

wjasperse avatar Aug 24 '25 12:08 wjasperse

OK so evcc needs to be fixed first? I don"t use the Kia Home Assistant Integration from HACS, only the evcc Integration

wjasperse @.***> schrieb am So., 24. Aug. 2025, 14:52:

wjasperse left a comment (evcc-io/evcc#23147) https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218086011

This is step 1, step 2 is a code change that is needed. As referred earlier;

The guys of the Kia/Hyundai/Uvo integration are also busy with the same problem: Hyundai-Kia-Connect/kia_uvo#1260 https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/1260

— Reply to this email directly, view it on GitHub https://github.com/evcc-io/evcc/issues/23147#issuecomment-3218086011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNYTV7DUK7X2LYMCZ7XPD3PGYR3AVCNFSM6AAAAACEO7FWPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJYGA4DMMBRGE . You are receiving this because you authored the thread.Message ID: @.***>

Andes1984 avatar Aug 24 '25 13:08 Andes1984

kia_uvo obviously has a solution with v2.43.9: https://github.com/Hyundai-Kia-Connect/kia_uvo/releases/tag/v2.43.9 See also https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/commit/4cb75697485f846063b5a658118c651b40f0ecfe for what needs to be changed.

0x3d13f avatar Aug 24 '25 15:08 0x3d13f