Git Product home page Git Product logo

domoticz-hyundai-kia's People

Contributors

creasoltech avatar willemd61 avatar z1mek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

domoticz-hyundai-kia's Issues

Commands not send to vehicle (EV6)

Hi all,
First of all, nice piece of software!!
I own a KIA EV6. Since last update it finally connects to KIA Connect and get all the vehicle info. But when I try to change a value (AC or DC charge percentage) or when I want to turn on defreezing/airco then there is a error message in the logs. Can I fix it myself?
Thanks in advance!

2023-12-18 08:21:10.537 KIA: onCommand(Unit=223, Command=Set Level, Level=100, Hue=)
2023-12-18 08:21:10.537 KIA: Device Name=KIA EV6 Charge limit AC
2023-12-18 08:21:10.524 Status: User: Admin (IP: 192.168.1.53) initiated a switch command (172/KIA EV6 Charge limit AC/Set Level)
2023-12-18 08:21:10.539 Error: KIA: Call to function 'onCommand' failed, exception details:
2023-12-18 08:21:10.541 Error: KIA: Traceback (most recent call last):
2023-12-18 08:21:10.541 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 969, in onCommand
2023-12-18 08:21:10.541 Error: KIA: _plugin.onCommand(Unit, Command, Level, Hue)
2023-12-18 08:21:10.541 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 317, in onCommand
2023-12-18 08:21:10.541 Error: KIA: vehicleId=self.getVehicleId(Unit) # get name and id for the vehicle
2023-12-18 08:21:10.541 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 150, in getVehicleId
2023-12-18 08:21:10.541 Error: KIA: name=re.findall(f"{Parameters['Name']} - ([a-zA-Z0-9-_]+) .*", Devices[Unit].Name)[0]
2023-12-18 08:21:10.541 Error: KIA: IndexError: list index out of range
2023-12-18 08:21:13.760 KIA: onCommand(Unit=224, Command=Set Level, Level=80, Hue=)
2023-12-18 08:21:13.760 KIA: Device Name=KIA EV6 Charge limit DC
2023-12-18 08:21:13.751 Status: User: Admin (IP: 192.168.1.53) initiated a switch command (173/KIA EV6 Charge limit DC/Set Level)
2023-12-18 08:21:13.760 Error: KIA: Call to function 'onCommand' failed, exception details:
2023-12-18 08:21:13.761 Error: KIA: Traceback (most recent call last):
2023-12-18 08:21:13.761 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 969, in onCommand
2023-12-18 08:21:13.761 Error: KIA: _plugin.onCommand(Unit, Command, Level, Hue)
2023-12-18 08:21:13.761 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 317, in onCommand
2023-12-18 08:21:13.761 Error: KIA: vehicleId=self.getVehicleId(Unit) # get name and id for the vehicle
2023-12-18 08:21:13.761 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 150, in getVehicleId
2023-12-18 08:21:13.761 Error: KIA: name=re.findall(f"{Parameters['Name']} - ([a-zA-Z0-9-_]+) .*", Devices[Unit].Name)[0]
2023-12-18 08:21:13.761 Error: KIA: IndexError: list index out of range

2023-12-18 08:28:12.637 KIA: onCommand(Unit=206, Command=On, Level=0, Hue=)
2023-12-18 08:28:12.638 KIA: Device Name=KIA EV6 ontdooien
2023-12-18 08:28:12.625 Status: User: Admin (IP: 192.168.1.53) initiated a switch command (182/KIA EV6 ontdooien/On)
2023-12-18 08:28:12.638 Error: KIA: Call to function 'onCommand' failed, exception details:
2023-12-18 08:28:12.638 Error: KIA: Traceback (most recent call last):
2023-12-18 08:28:12.638 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 969, in onCommand
2023-12-18 08:28:12.638 Error: KIA: _plugin.onCommand(Unit, Command, Level, Hue)
2023-12-18 08:28:12.638 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 317, in onCommand
2023-12-18 08:28:12.638 Error: KIA: vehicleId=self.getVehicleId(Unit) # get name and id for the vehicle
2023-12-18 08:28:12.639 Error: KIA: File "/home/bbossink/domoticz/plugins/domoticz-hyundai-kia/plugin.py", line 150, in getVehicleId
2023-12-18 08:28:12.639 Error: KIA: name=re.findall(f"{Parameters['Name']} - ([a-zA-Z0-9-_]+) .*", Devices[Unit].Name)[0]
2023-12-18 08:28:12.639 Error: KIA: IndexError: list index out of range

[Feature Question] : possibility to start and stop charging

Hello, thank you for your plugin.

I will have soon a Ioniq 5.

Is your plugin allows to start and stop the charging while the supplied "domestic" cable is plugged?
My purpose is to start the charging only when I have enough Solar panel Autocumsumption.
I alredy do that successfully with my "water heater", using the Enphase plugin to detect auto consumption.
(then I will have to set priorities between the 2 devices...)

Is it dangerous to start and stop it often ?

thanks and best regards

Plugin not loading

Hello,

I have a Kia e-Niro, 2021 and at home I have Domoticz running on a Raspberry Pi.

I am trying to install the domoticz-hyndai-kia plugin as described in the staps. I can find the plugin in the "hardware" tab, but for some reason it is not loaded and I cannot find any of the devices.

Raspberry: Pi B+
OS: Version 11, Bullseye
Domoticz: 2022.1

This I have found in the Domoticz log:

DomoticzErrorLog

I have found several forum posts about such kind of error, but I can not solve it.
Is there someone who can help me?
Sorry if it is because of my lack of knowledge!

No devices are created logs shows connectivity

I'm trying to get the plugin up and running and have updated python, installed several modules, but now i'm facing the following error in domoticz while the logs show connectivity and getting the correct information:

2022-12-28 15:28:30.624 Error: EV6: Call to function 'onHeartbeat' failed, exception details:
2022-12-28 15:28:30.637 Error: EV6: Traceback (most recent call last):
2022-12-28 15:28:30.637 Error: EV6: File "/config/plugins/domoticz-hyundai-kia/plugin.py", line 680, in onHeartbeat
2022-12-28 15:28:30.638 Error: EV6: _plugin.onHeartbeat()
2022-12-28 15:28:30.638 Error: EV6: File "/config/plugins/domoticz-hyundai-kia/plugin.py", line 233, in onHeartbeat
2022-12-28 15:28:30.638 Error: EV6: self.vm.force_refresh_all_vehicles_states() # suggested by P.Levres: fetch data from vehicle to the cloud
2022-12-28 15:28:30.638 Error: EV6: File "/usr/local/lib/python3.9/dist-packages/hyundai_kia_connect_api/VehicleManager.py", line 80, in force_refresh_all_vehicles_states
2022-12-28 15:28:30.638 Error: EV6: self.force_refresh_vehicle_state(self.get_vehicle(vehicle_id))
2022-12-28 15:28:30.638 Error: EV6: File "/usr/local/lib/python3.9/dist-packages/hyundai_kia_connect_api/VehicleManager.py", line 83, in force_refresh_vehicle_state
2022-12-28 15:28:30.638 Error: EV6: self.api.force_refresh_vehicle_state(self.token, vehicle)
2022-12-28 15:28:30.638 Error: EV6: File "/usr/local/lib/python3.9/dist-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 185, in force_refresh_vehicle_state
2022-12-28 15:28:30.638 Error: EV6: state = self._get_forced_vehicle_state(token, vehicle)
2022-12-28 15:28:30.638 Error: EV6: File "/usr/local/lib/python3.9/dist-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 398, in _get_forced_vehicle_state
2022-12-28 15:28:30.638 Error: EV6: return response["resMsg"]["vehicleStatusInfo"]
2022-12-28 15:28:30.638 Error: EV6: KeyError: 'vehicleStatusInfo'

Log:

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): prd.eu-ccapi.kia.com:8080
DEBUG:urllib3.connectionpool:https://prd.eu-ccapi.kia.com:8080 "POST /api/v1/user/oauth2/token HTTP/1.1" 200 668
DEBUG:hyundai_kia_connect_api.KiaUvoApiEU:hyundai_kia_connect_api - Get Refresh Token Response {'access_token': 'eyJhbGciOiJSUzI1NiIsInR5*************************************zA0MTk0MzZlYzQiLCJ1aWQiOiI0OGE3ZTc0Zi0wYTlkLTQyYTgtYTg2Yi00ZGRhYmFjMDU0OGEiLCJzaWQiOiJmZGM4NWMwMC0wYTJmLTjQwOTQsImlhdCI6MTY3MjIzNzY5NCwiaXNzpay19r1juy1TgVyvS6LoRual5RhFkMw_Ty7tsW_-Oqz0Mt8sld7qLqIs8ZZT1X4M8CKz40bFph54SPAxtmEwsr3VC78ZcP2p_aZ7aTskBUtrktN1T69jXJhVgG1zZMT6qeilbuozyqnMsEYDnXkcn0A9Hy2h0K6agryuDynpU******************8yji13QZmmyTu9DiQnhrUdnw94h4gnnWuaA', 'token_type': 'Bearer', 'expires_in': 86400}
DEBUG:hyundai_kia_connect_api.KiaUvoApiEU:hyundai_kia_connect_api - get_stamp 2022-12-28 13:04:10.396000+00:00 120000 42 998 42.032297191666665
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): prd.eu-ccapi.kia.com:8080
DEBUG:urllib3.connectionpool:https://prd.eu-ccapi.kia.com:8080 "GET /api/v1/spa/vehicles HTTP/1.1" 200 399
DEBUG:hyundai_kia_connect_api.KiaUvoApiEU:hyundai_kia_connect_api - Get Vehicles Response {'retCode': 'S', 'resCode': '0000', 'resMsg': {'vehicles': [{'vin': 'KNAC
AFN6', 'vehicleId': 'fb0f-1
-d-bf-c43e
e7b', 'vehicleName': 'EV6', 'type': 'EV', 'nickname': 'EV6', 'master': True, 'carShare': 0, 'regDate': '2022-09-30 22:28:04.311', 'detailInfo': {'inColor': 'WK', 'outColor': 'B4U', 'saleCarmdlCd': 'AS', 'bodyType': '2', 'saleCarmdlEnNm': 'EV6'}}]}, 'msgId': '2d4bec0f-1371-4609-b125-9179fc83404f'}
DEBUG:hyundai_kia_connect_api.KiaUvoApiEU:hyundai_kia_connect_api - get_stamp 2022-12-28 13:04:10.396000+00:00 120000 42 998 42.033621883333325

No devices created

Hello.

I am using almost the latest DZ beta version with Docker.
I have instantiated the plugin using python plugin manager, enter my credentials for blue link, activated it and ... Nothing : no devices created, almost no logs (but I maybe need to raise my log level).

Translation in French

Hello,

the car status (Status VE) labels are currently :

  • disconnectd
  • connected
  • charging

in french it should be :

"non branché"
"branché
"en charge"

if there is other status, like "slow charge" or "normal charge" and /or "fast charge", I could translate as well

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.