Page 1 of 1

Domoticz Hyundai Kia connect plugin – 2.1

Posted: Sunday 04 August 2024 9:40
by DiaDomo
To the makers of this plugin (creasol @psubiaco?):

First thanks for the nice plugin!
I want to use the plugin to automate the charging process of my kia via domoticz.
In the Niro EV settings in the car it is possible to set the current supplied by the AC charging to 60%, 90% 100%.

So, setting the AC current to 60% will take a longer charging time, but I can use this setting to use my available solar power as efficient as possible and minimize net delivery.
Can the selection of the AC current settings also be implemented in the plugin?

Re: Domoticz Hyundai Kia connect plugin – 2.1

Posted: Sunday 04 August 2024 14:04
by willemd
The plugin is the connection between Domoticz and the API.

The API code is here
https://github.com/Hyundai-Kia-Connect/ ... onnect_api

In order to include the "charge current" setting in the plugin, it has to be present in the API first. I have not found the corresponding field in the API (yet). However, I see there is a function in the APi called "set charging current".

So it might be possible, but it will take some time to investigate further.

Re: Domoticz Hyundai Kia connect plugin – 2.1

Posted: Sunday 04 August 2024 14:27
by DiaDomo
I found indeed this in the api code of hyundai_kia_connect_api/ApiImpl.py:

Code: Select all

def set_charging_current(self, token: Token, vehicle: Vehicle, level: int) -> str:
        """Sets charge current level (1=100%, 2=90%, 3=60%). Returns the tracking ID"""
        pass
Does this mean that this setting is already coded but not used?

Re: Domoticz Hyundai Kia connect plugin – 2.1

Posted: Sunday 04 August 2024 16:20
by willemd
DiaDomo wrote: Sunday 04 August 2024 14:27 I found indeed this in the api code of hyundai_kia_connect_api/ApiImpl.py:

Code: Select all

def set_charging_current(self, token: Token, vehicle: Vehicle, level: int) -> str:
        """Sets charge current level (1=100%, 2=90%, 3=60%). Returns the tracking ID"""
        pass
Does this mean that this setting is already coded but not used?
It is available in the API but not coded into the plugin so not available yet from domoticz.

The plugin was originally developed by Creasoltech / @psubiaco and I got co-development permission and added some fields,
but I am reluctant to make large changes until I full understand the code.
I will look into it but it might take some time.

What I can see so far is that the API provides a function that can set the "charge_current" value but it does not read it back into a field that can be picked up by the plugin.