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.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?
Kia and Hyundai plugin
Moderator: leecollings
-
- Posts: 662
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Kia and Hyundai plugin
-
- Posts: 685
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
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.
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
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)...
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
-
- Posts: 662
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Kia and Hyundai plugin
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.
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.
-
- Posts: 685
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
The linked api has some recent updates I notice
- waltervl
- Posts: 5979
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Kia and Hyundai plugin
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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 685
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
Yeah, I also found it. Let's wait a 'bit at first
- gizmocuz
- Posts: 2577
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Kia and Hyundai plugin
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!
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!

Quality outlives Quantity!
Who is online
Users browsing this forum: Bing [Bot] and 1 guest