hyundai-kia-connect-api 3.24.2__tar.gz → 3.25.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/CONTRIBUTING.rst +2 -2
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/PKG-INFO +5 -5
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/README.rst +3 -3
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/installation.rst +4 -4
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/ApiImpl.py +8 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/KiaUvoAPIUSA.py +3 -3
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/KiaUvoApiEU.py +30 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/VehicleManager.py +8 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/PKG-INFO +5 -5
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/setup.py +2 -2
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/HISTORY.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/MANIFEST.in +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/Makefile +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/authors.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/conf.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/contributing.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/history.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/index.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/make.bat +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/readme.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/docs/usage.rst +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/ApiImplType1.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/KiaUvoApiAU.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/KiaUvoApiCA.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/KiaUvoApiCN.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/Token.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/Vehicle.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/__init__.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/const.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/exceptions.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/utils.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/SOURCES.txt +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/dependency_links.txt +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/not-zip-safe +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/requires.txt +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api.egg-info/top_level.txt +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/requirements.txt +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/setup.cfg +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/tests/__init__.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/tests/au_login_test.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/tests/ca_login_test.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/tests/eu_check_response_for_errors_test.py +0 -0
- {hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/tests/eu_login_test.py +0 -0
@@ -15,7 +15,7 @@ Types of Contributions
|
|
15
15
|
Report Bugs
|
16
16
|
~~~~~~~~~~~
|
17
17
|
|
18
|
-
Report bugs at https://github.com/
|
18
|
+
Report bugs at https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues.
|
19
19
|
|
20
20
|
If you are reporting a bug, please include:
|
21
21
|
|
@@ -45,7 +45,7 @@ articles, and such.
|
|
45
45
|
Submit Feedback
|
46
46
|
~~~~~~~~~~~~~~~
|
47
47
|
|
48
|
-
The best way to send feedback is to file an issue at https://github.com/
|
48
|
+
The best way to send feedback is to file an issue at https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues.
|
49
49
|
|
50
50
|
If you are proposing a feature:
|
51
51
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.25.0
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
|
-
Home-page: https://github.com/
|
5
|
+
Home-page: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
7
7
|
Author-email: fuatakgun@gmail.com
|
8
8
|
License: MIT license
|
@@ -29,14 +29,14 @@ I no longer have a Kia or Hyundai so don't maintain this like I used to. Others
|
|
29
29
|
Introduction
|
30
30
|
============
|
31
31
|
|
32
|
-
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/
|
32
|
+
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/Hyundai-Kia-Connect/kia_uvo. Much of this base code came from reading bluelinky (https://github.com/Hacksore/bluelinky) and contributions to the kia_uvo home assistant project.
|
33
33
|
|
34
34
|
Usage
|
35
35
|
=====
|
36
36
|
|
37
37
|
This package is designed to simplify the complexity of using multiple regions. It attempts to standardize the usage regardless of what brand or region the car is in. That isn't always possible though, in particular some features differ from one to the next.
|
38
38
|
|
39
|
-
Python 3.
|
39
|
+
Python 3.10 or newer is required to use this package. Vehicle manager is the key class that is called to manage the vehicle lists. One vehicle manager should be used per login. Key data points required to instantiate vehicle manager are::
|
40
40
|
|
41
41
|
region: int
|
42
42
|
brand: int,
|
@@ -44,7 +44,7 @@ Python 3.9 or newer is required to use this package. Vehicle manager is the key
|
|
44
44
|
password: str
|
45
45
|
pin: str (required for CA, and potentially USA, otherwise pass a blank string)
|
46
46
|
|
47
|
-
Key values for the int exist in the constant(https://github.com/
|
47
|
+
Key values for the int exist in the constant(https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/master/hyundai_kia_connect_api/const.py) file as::
|
48
48
|
|
49
49
|
REGIONS = {1: REGION_EUROPE, 2: REGION_CANADA, 3: REGION_USA, 4: REGION_CHINA, 5: REGION_AUSTRALIA}
|
50
50
|
BRANDS = {1: BRAND_KIA, 2: BRAND_HYUNDAI, 3: BRAND_GENESIS}
|
@@ -6,14 +6,14 @@ I no longer have a Kia or Hyundai so don't maintain this like I used to. Others
|
|
6
6
|
Introduction
|
7
7
|
============
|
8
8
|
|
9
|
-
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/
|
9
|
+
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/Hyundai-Kia-Connect/kia_uvo. Much of this base code came from reading bluelinky (https://github.com/Hacksore/bluelinky) and contributions to the kia_uvo home assistant project.
|
10
10
|
|
11
11
|
Usage
|
12
12
|
=====
|
13
13
|
|
14
14
|
This package is designed to simplify the complexity of using multiple regions. It attempts to standardize the usage regardless of what brand or region the car is in. That isn't always possible though, in particular some features differ from one to the next.
|
15
15
|
|
16
|
-
Python 3.
|
16
|
+
Python 3.10 or newer is required to use this package. Vehicle manager is the key class that is called to manage the vehicle lists. One vehicle manager should be used per login. Key data points required to instantiate vehicle manager are::
|
17
17
|
|
18
18
|
region: int
|
19
19
|
brand: int,
|
@@ -21,7 +21,7 @@ Python 3.9 or newer is required to use this package. Vehicle manager is the key
|
|
21
21
|
password: str
|
22
22
|
pin: str (required for CA, and potentially USA, otherwise pass a blank string)
|
23
23
|
|
24
|
-
Key values for the int exist in the constant(https://github.com/
|
24
|
+
Key values for the int exist in the constant(https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/master/hyundai_kia_connect_api/const.py) file as::
|
25
25
|
|
26
26
|
REGIONS = {1: REGION_EUROPE, 2: REGION_CANADA, 3: REGION_USA, 4: REGION_CHINA, 5: REGION_AUSTRALIA}
|
27
27
|
BRANDS = {1: BRAND_KIA, 2: BRAND_HYUNDAI, 3: BRAND_GENESIS}
|
@@ -32,13 +32,13 @@ You can either clone the public repository:
|
|
32
32
|
|
33
33
|
.. code-block:: console
|
34
34
|
|
35
|
-
$ git clone git://github.com/
|
35
|
+
$ git clone git://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
36
36
|
|
37
37
|
Or download the `tarball`_:
|
38
38
|
|
39
39
|
.. code-block:: console
|
40
40
|
|
41
|
-
$ curl -OJL https://github.com/
|
41
|
+
$ curl -OJL https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/tarball/master
|
42
42
|
|
43
43
|
Once you have a copy of the source, you can install it with:
|
44
44
|
|
@@ -47,5 +47,5 @@ Once you have a copy of the source, you can install it with:
|
|
47
47
|
$ python setup.py install
|
48
48
|
|
49
49
|
|
50
|
-
.. _Github repo: https://github.com/
|
51
|
-
.. _tarball: https://github.com/
|
50
|
+
.. _Github repo: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
51
|
+
.. _tarball: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/tarball/master
|
{hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/ApiImpl.py
RENAMED
@@ -212,3 +212,11 @@ class ApiImpl:
|
|
212
212
|
Schedule charging and climate control. Returns the tracking ID
|
213
213
|
"""
|
214
214
|
pass
|
215
|
+
|
216
|
+
def start_hazard_lights(self, token: Token, vehicle: Vehicle) -> str:
|
217
|
+
"""Turns on the hazard lights for 30 seconds"""
|
218
|
+
pass
|
219
|
+
|
220
|
+
def start_hazard_lights_and_horn(self, token: Token, vehicle: Vehicle) -> str:
|
221
|
+
"""Turns on the hazard lights and horn for 30 seconds"""
|
222
|
+
pass
|
@@ -648,9 +648,9 @@ class KiaUvoAPIUSA(ApiImpl):
|
|
648
648
|
"airCtrl": options.climate,
|
649
649
|
"defrost": options.defrost,
|
650
650
|
"heatingAccessory": {
|
651
|
-
"rearWindow":
|
652
|
-
"sideMirror":
|
653
|
-
"steeringWheel":
|
651
|
+
"rearWindow": 1 if options.heating in [3, 4] else 0,
|
652
|
+
"sideMirror": 1 if options.heating == 4 else 0,
|
653
|
+
"steeringWheel": 1 if options.heating in [2, 4] else 0,
|
654
654
|
},
|
655
655
|
"ignitionOnDuration": {
|
656
656
|
"unit": 4,
|
@@ -1035,6 +1035,36 @@ class KiaUvoApiEU(ApiImplType1):
|
|
1035
1035
|
token.device_id = self._get_device_id(self._get_stamp())
|
1036
1036
|
return response["msgId"]
|
1037
1037
|
|
1038
|
+
def start_hazard_lights(self, token: Token, vehicle: Vehicle) -> str:
|
1039
|
+
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/ccs2/control/light"
|
1040
|
+
|
1041
|
+
payload = {"command": "on"}
|
1042
|
+
_LOGGER.debug(f"{DOMAIN} - Start Hazard Lights Request: {payload}")
|
1043
|
+
response = requests.post(
|
1044
|
+
url,
|
1045
|
+
json=payload,
|
1046
|
+
headers=self._get_control_headers(token, vehicle),
|
1047
|
+
).json()
|
1048
|
+
_LOGGER.debug(f"{DOMAIN} - Start Hazard Lights Response: {response}")
|
1049
|
+
_check_response_for_errors(response)
|
1050
|
+
token.device_id = self._get_device_id(self._get_stamp())
|
1051
|
+
return response["msgId"]
|
1052
|
+
|
1053
|
+
def start_hazard_lights_and_horn(self, token: Token, vehicle: Vehicle) -> str:
|
1054
|
+
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/ccs2/control/hornlight"
|
1055
|
+
|
1056
|
+
payload = {"command": "on"}
|
1057
|
+
_LOGGER.debug(f"{DOMAIN} - Start Hazard Lights and Horn Request: {payload}")
|
1058
|
+
response = requests.post(
|
1059
|
+
url,
|
1060
|
+
json=payload,
|
1061
|
+
headers=self._get_control_headers(token, vehicle),
|
1062
|
+
).json()
|
1063
|
+
_LOGGER.debug(f"{DOMAIN} - Start Hazard Lights and Horn Response: {response}")
|
1064
|
+
_check_response_for_errors(response)
|
1065
|
+
token.device_id = self._get_device_id(self._get_stamp())
|
1066
|
+
return response["msgId"]
|
1067
|
+
|
1038
1068
|
def _get_charge_limits(self, token: Token, vehicle: Vehicle) -> dict:
|
1039
1069
|
# Not currently used as value is in the general get.
|
1040
1070
|
# Most likely this forces the car the update it.
|
@@ -160,6 +160,14 @@ class VehicleManager:
|
|
160
160
|
def stop_charge(self, vehicle_id: str) -> str:
|
161
161
|
return self.api.stop_charge(self.token, self.get_vehicle(vehicle_id))
|
162
162
|
|
163
|
+
def start_hazard_lights(self, vehicle_id: str) -> str:
|
164
|
+
return self.api.start_hazard_lights(self.token, self.get_vehicle(vehicle_id))
|
165
|
+
|
166
|
+
def start_hazard_lights_and_horn(self, vehicle_id: str) -> str:
|
167
|
+
return self.api.start_hazard_lights_and_horn(
|
168
|
+
self.token, self.get_vehicle(vehicle_id)
|
169
|
+
)
|
170
|
+
|
163
171
|
def set_charge_limits(self, vehicle_id: str, ac: int, dc: int) -> str:
|
164
172
|
return self.api.set_charge_limits(
|
165
173
|
self.token, self.get_vehicle(vehicle_id), ac, dc
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.25.0
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
|
-
Home-page: https://github.com/
|
5
|
+
Home-page: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
7
7
|
Author-email: fuatakgun@gmail.com
|
8
8
|
License: MIT license
|
@@ -29,14 +29,14 @@ I no longer have a Kia or Hyundai so don't maintain this like I used to. Others
|
|
29
29
|
Introduction
|
30
30
|
============
|
31
31
|
|
32
|
-
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/
|
32
|
+
This is a Kia UVO, Hyundai Bluelink, Genesis Connect(Canada Only) written in python. It is primary consumed by home assistant. If you are looking for a home assistant Kia / Hyundai implementation please look here: https://github.com/Hyundai-Kia-Connect/kia_uvo. Much of this base code came from reading bluelinky (https://github.com/Hacksore/bluelinky) and contributions to the kia_uvo home assistant project.
|
33
33
|
|
34
34
|
Usage
|
35
35
|
=====
|
36
36
|
|
37
37
|
This package is designed to simplify the complexity of using multiple regions. It attempts to standardize the usage regardless of what brand or region the car is in. That isn't always possible though, in particular some features differ from one to the next.
|
38
38
|
|
39
|
-
Python 3.
|
39
|
+
Python 3.10 or newer is required to use this package. Vehicle manager is the key class that is called to manage the vehicle lists. One vehicle manager should be used per login. Key data points required to instantiate vehicle manager are::
|
40
40
|
|
41
41
|
region: int
|
42
42
|
brand: int,
|
@@ -44,7 +44,7 @@ Python 3.9 or newer is required to use this package. Vehicle manager is the key
|
|
44
44
|
password: str
|
45
45
|
pin: str (required for CA, and potentially USA, otherwise pass a blank string)
|
46
46
|
|
47
|
-
Key values for the int exist in the constant(https://github.com/
|
47
|
+
Key values for the int exist in the constant(https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/blob/master/hyundai_kia_connect_api/const.py) file as::
|
48
48
|
|
49
49
|
REGIONS = {1: REGION_EUROPE, 2: REGION_CANADA, 3: REGION_USA, 4: REGION_CHINA, 5: REGION_AUSTRALIA}
|
50
50
|
BRANDS = {1: BRAND_KIA, 2: BRAND_HYUNDAI, 3: BRAND_GENESIS}
|
@@ -43,7 +43,7 @@ setup(
|
|
43
43
|
),
|
44
44
|
test_suite="tests",
|
45
45
|
tests_require=test_requirements,
|
46
|
-
url="https://github.com/
|
47
|
-
version="3.
|
46
|
+
url="https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api",
|
47
|
+
version="3.25.0",
|
48
48
|
zip_safe=False,
|
49
49
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/Token.py
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/Vehicle.py
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/const.py
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.2 → hyundai_kia_connect_api-3.25.0}/hyundai_kia_connect_api/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|