Page 2 of 2
Re: Kia and Hyundai plugin
Posted: Sunday 18 August 2024 14:14
by willemd
Alain wrote: ↑Sunday 18 August 2024 1:03
I'm having trouble getting my plugin running. I am trying to connect an Ioniq 5 (2023 model). During the install everything went fine. I followed all the steps in the instructions and had no issues.
I'm running the latest stable version of Domoticz (2024.7), Python 3.8 on Ubuntu 20.04 LTS.
Code: Select all
2024-08-18 00:50:55.065 Error: IONIQ 5: (domoticz-hyundai-kia) failed to load 'plugin.py', Python Path used was '/home/alain/domoticz/plugins/HyundaiKiaConnect/:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/local/lib/python3.8/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.8/dist-packages'.
2024-08-18 00:50:55.066 Error: IONIQ 5: Traceback (most recent call last):
2024-08-18 00:50:55.067 Error: IONIQ 5: File "/home/alain/domoticz/plugins/HyundaiKiaConnect/plugin.py", line 74, in <module>
2024-08-18 00:50:55.067 Error: IONIQ 5: from hyundai_kia_connect_api import *
2024-08-18 00:50:55.067 Error: IONIQ 5: File "/usr/local/lib/python3.8/dist-packages/hyundai_kia_connect_api/__init__.py", line 4, in <module>
2024-08-18 00:50:55.067 Error: IONIQ 5: from .ApiImpl import (
2024-08-18 00:50:55.067 Error: IONIQ 5: File "/usr/local/lib/python3.8/dist-packages/hyundai_kia_connect_api/ApiImpl.py", line 10, in <module>
2024-08-18 00:50:55.067 Error: IONIQ 5: from requests.exceptions import JSONDecodeError
2024-08-18 00:50:55.067 Error: IONIQ 5: ImportError: cannot import name 'JSONDecodeError' from 'requests.exceptions' (/usr/lib/python3/dist-packages/requests/exceptions.py)
Can someone tell me what is causing this?
It looks like the "requests" package is not installed or not completely installed on your system. Try installating that and see whether it solves the problem.
Re: Kia and Hyundai plugin
Posted: Thursday 31 July 2025 13:17
by jannl
I just noticed the plugin is not updating anymore. It started some days ago. Updating looks to work (date/time stamp is updated), but not the values.
Code: Select all
2025-07-31 13:11:37.130 Status: E-NIRO: onCommand(Unit=11, Command=On, Level=0, Color=)
2025-07-31 13:11:37.153 Status: E-NIRO: Force update command
2025-07-31 13:11:37.153 Status: E-NIRO: *** check_and_refresh_token()...
2025-07-31 13:11:38.567 Status: E-NIRO: Unknown error
2025-07-31 13:11:38.567 Status: E-NIRO: *** check_and_force_update_vehicles(30)...
Above the only error I see.
Anyone else sees this issue or do I have to debug my setup a bit further?
Edit: I noticed I did not have the latest version, but updating did not help.
Edit2: Not sure if this has anything to do with the new (updated) Kia app
Re: Kia and Hyundai plugin
Posted: Thursday 31 July 2025 15:58
by willemd
I am getting the same error. I had a quick look.
The interface to the KIA web consists of two parts:
1) the API that reads data from the web, more info on
https://github.com/Hyundai-Kia-Connect/ ... onnect_api
2) the Domoticz plugin that uses information from the API to load it onto Domoticz devices.
The problem is also reported by other users that use the API (step 1 above) and then interface it into Home Assistant for example. So it is not the Domoticz plugin that is causing it.
It seems that indeed KIA has changed something on their web related to new versions yesterday which causes step 1 to malfunction already, so then step 2 will not work either. We have to wait and see (and maybe try to help in analysing) to get step 1 solved. Problem is the original developer does not have a KIA anymore so I understand priority might be low.
Re: Kia and Hyundai plugin
Posted: Thursday 31 July 2025 17:03
by jannl
The linked api has some recent updates I notice
Re: Kia and Hyundai plugin
Posted: Thursday 31 July 2025 17:35
by waltervl
jannl wrote: ↑Thursday 31 July 2025 17:03
The linked api has some recent updates I notice
Only some automated changes, nothing serious.
Check out the following issue (do not respond unless you have something that helps solving the issue)
https://github.com/Hyundai-Kia-Connect/ ... ssues/1209
Re: Kia and Hyundai plugin
Posted: Thursday 31 July 2025 19:01
by jannl
Yeah, I also found it. Let's wait a 'bit at first
Re: Kia and Hyundai plugin
Posted: Saturday 02 August 2025 15:42
by gizmocuz
Kia also has a new mobile application. Maybe they indeed changed some API calls.
I am not using the plugin but wrote my own python implementation that is using MQTT-AD
Same issue here to login (Europe)
There is a new version of the hyundai_kia_connect_api that solves the issue
https://github.com/Hyundai-Kia-Connect/ ... ts/master/
After updating this, it is indeed working again!
