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
-
willemd
- Posts: 738
- 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
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- 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
-
willemd
- Posts: 738
- 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.
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
The linked api has some recent updates I notice
- waltervl
- Posts: 6685
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- 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
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
Yeah, I also found it. Let's wait a 'bit at first
- gizmocuz
- Posts: 2710
- 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!
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
Is it still working?
The update first worked, but I read on tweakers that Kia now only supports its own app.
Tibber also has issues with connecting to Kia.
Edi: looks like there is an update commited fix 4 days ago), lets test it tomorrow.
The update first worked, but I read on tweakers that Kia now only supports its own app.
Tibber also has issues with connecting to Kia.
Edi: looks like there is an update commited fix 4 days ago), lets test it tomorrow.
-
willemd
- Posts: 738
- 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
When I read the issues of the kia/hyundai API program, there is currently no solution because KIA has built in a reCaptcha mechanism into their web access.
As long as that API is not functioning, then also the kia/hyundai Domoticz plugin will not work unfortunately.
I tested it just now and indeed I get the same error of the API.
As long as that API is not functioning, then also the kia/hyundai Domoticz plugin will not work unfortunately.
I tested it just now and indeed I get the same error of the API.
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
update didn't work indeed
-
willemd
- Posts: 738
- 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
Good news, it is now possible to activate the API again to the Hyundai Kia web data. As result the Domoticz Hyundai Kia plugin can then link to the API again and get your data.
You will need to get a refresh token as explained here for European KIA users:
https://github.com/Hyundai-Kia-Connect/ ... Login-Flow
Have a look at the issues at the git repository for description off alternatives for Hyundai.
The refresh token then needs to be used in the Domoticz Hyundai Kia plugin instead of the password.
I also had to perform parts of the installation of the plugin again because in the meantime I upgraded to Bookworm, Python 3.11 and the latest Domoticz version. To be sure, best to remove the previous API installation and start from scratch. No need to change the plugin installation, other than pasting the refresh token as password.
I hope this continues working. It seems a cat and mouse game between Hyundai/KIA and the API developers. For now, I am getting my data again into Domoticz.
You will need to get a refresh token as explained here for European KIA users:
https://github.com/Hyundai-Kia-Connect/ ... Login-Flow
Have a look at the issues at the git repository for description off alternatives for Hyundai.
The refresh token then needs to be used in the Domoticz Hyundai Kia plugin instead of the password.
I also had to perform parts of the installation of the plugin again because in the meantime I upgraded to Bookworm, Python 3.11 and the latest Domoticz version. To be sure, best to remove the previous API installation and start from scratch. No need to change the plugin installation, other than pasting the refresh token as password.
I hope this continues working. It seems a cat and mouse game between Hyundai/KIA and the API developers. For now, I am getting my data again into Domoticz.
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
After reading. Tried this some weeks ago. Did not work for me then.
-
willemd
- Posts: 738
- 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
What kind of problems did you run into?jannl wrote: Friday 17 October 2025 16:58 After reading. Tried this some weeks ago. Did not work for me then.
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
One of the steps delivered a white screen. I will test again soon, but since a lot of manual action is needed I propably will remove it from Domoticz soon.
- gizmocuz
- Posts: 2710
- 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
Had the same issue. Somehow I got it working after many attempts. Maybe I cleared the browser cache as well.jannl wrote: Saturday 18 October 2025 22:20 One of the steps delivered a white screen. I will test again soon, but since a lot of manual action is needed I propably will remove it from Domoticz soon.
Followed the document down to the letter and got it working.
It indeed is a big hassle ! Tibber also has issues supporting the Kia/Hyundai:
https://status.tibber.com/
Maybe they want to limit the GSM usage
Quality outlives Quantity!
-
jannl
- Posts: 823
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.5.x
- Location: Geleen
- Contact:
Re: Kia and Hyundai plugin
Thx. Yrs I know Tibber had the same issue. The amount of api calls was already limited. But even no paid account so you can choose.
Who is online
Users browsing this forum: No registered users and 1 guest