hyundai-kia-connect-api 3.33.4__py2.py3-none-any.whl → 3.33.5__py2.py3-none-any.whl
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/ApiImplType1.py +26 -0
- hyundai_kia_connect_api/KiaUvoApiAU.py +0 -15
- hyundai_kia_connect_api/KiaUvoApiEU.py +0 -26
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/RECORD +10 -10
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/top_level.txt +0 -0
@@ -22,6 +22,7 @@ from .const import (
|
|
22
22
|
ENGINE_TYPES,
|
23
23
|
SEAT_STATUS,
|
24
24
|
TEMPERATURE_UNITS,
|
25
|
+
VEHICLE_LOCK_ACTION,
|
25
26
|
)
|
26
27
|
|
27
28
|
from .exceptions import (
|
@@ -480,3 +481,28 @@ class ApiImplType1(ApiImpl):
|
|
480
481
|
_LOGGER.debug(f"{DOMAIN} - Set Charge Limits Response: {response}")
|
481
482
|
_check_response_for_errors(response)
|
482
483
|
return response["msgId"]
|
484
|
+
|
485
|
+
def lock_action(
|
486
|
+
self, token: Token, vehicle: Vehicle, action: VEHICLE_LOCK_ACTION
|
487
|
+
) -> str:
|
488
|
+
if not vehicle.ccu_ccs2_protocol_support:
|
489
|
+
url = self.SPA_API_URL + "vehicles/" + vehicle.id + "/control/door"
|
490
|
+
|
491
|
+
payload = {"action": action.value, "deviceId": token.device_id}
|
492
|
+
headers = self._get_authenticated_headers(
|
493
|
+
token, vehicle.ccu_ccs2_protocol_support
|
494
|
+
)
|
495
|
+
|
496
|
+
else:
|
497
|
+
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/ccs2/control/door"
|
498
|
+
|
499
|
+
payload = {"command": action.value}
|
500
|
+
headers = self._get_control_headers(token, vehicle)
|
501
|
+
|
502
|
+
_LOGGER.debug(f"{DOMAIN} - Lock Action Request: {payload}")
|
503
|
+
|
504
|
+
response = requests.post(url, json=payload, headers=headers).json()
|
505
|
+
_LOGGER.debug(f"{DOMAIN} - Lock Action Response: {response}")
|
506
|
+
_check_response_for_errors(response)
|
507
|
+
token.device_id = self._get_device_id(self._get_stamp())
|
508
|
+
return response["msgId"]
|
@@ -38,7 +38,6 @@ from .const import (
|
|
38
38
|
DISTANCE_UNITS,
|
39
39
|
TEMPERATURE_UNITS,
|
40
40
|
SEAT_STATUS,
|
41
|
-
VEHICLE_LOCK_ACTION,
|
42
41
|
CHARGE_PORT_ACTION,
|
43
42
|
ENGINE_TYPES,
|
44
43
|
OrderStatus,
|
@@ -631,20 +630,6 @@ class KiaUvoApiAU(ApiImplType1):
|
|
631
630
|
mapped_response["vehicleStatus"] = response["resMsg"]
|
632
631
|
return mapped_response
|
633
632
|
|
634
|
-
def lock_action(
|
635
|
-
self, token: Token, vehicle: Vehicle, action: VEHICLE_LOCK_ACTION
|
636
|
-
) -> str:
|
637
|
-
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/control/door"
|
638
|
-
|
639
|
-
payload = {"action": action.value, "deviceId": token.device_id}
|
640
|
-
_LOGGER.debug(f"{DOMAIN} - Lock Action Request: {payload}")
|
641
|
-
response = requests.post(
|
642
|
-
url, json=payload, headers=self._get_control_headers(token, vehicle)
|
643
|
-
).json()
|
644
|
-
_LOGGER.debug(f"{DOMAIN} - Lock Action Response: {response}")
|
645
|
-
_check_response_for_errors(response)
|
646
|
-
return response["msgId"]
|
647
|
-
|
648
633
|
def set_windows_state(
|
649
634
|
self, token: Token, vehicle: Vehicle, options: WindowRequestOptions
|
650
635
|
) -> str:
|
@@ -45,7 +45,6 @@ from .const import (
|
|
45
45
|
OrderStatus,
|
46
46
|
SEAT_STATUS,
|
47
47
|
TEMPERATURE_UNITS,
|
48
|
-
VEHICLE_LOCK_ACTION,
|
49
48
|
VALET_MODE_ACTION,
|
50
49
|
)
|
51
50
|
from .exceptions import (
|
@@ -844,31 +843,6 @@ class KiaUvoApiEU(ApiImplType1):
|
|
844
843
|
mapped_response["vehicleStatus"] = response["resMsg"]
|
845
844
|
return mapped_response
|
846
845
|
|
847
|
-
def lock_action(
|
848
|
-
self, token: Token, vehicle: Vehicle, action: VEHICLE_LOCK_ACTION
|
849
|
-
) -> str:
|
850
|
-
if not vehicle.ccu_ccs2_protocol_support:
|
851
|
-
url = self.SPA_API_URL + "vehicles/" + vehicle.id + "/control/door"
|
852
|
-
|
853
|
-
payload = {"action": action.value, "deviceId": token.device_id}
|
854
|
-
headers = self._get_authenticated_headers(
|
855
|
-
token, vehicle.ccu_ccs2_protocol_support
|
856
|
-
)
|
857
|
-
|
858
|
-
else:
|
859
|
-
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/ccs2/control/door"
|
860
|
-
|
861
|
-
payload = {"command": action.value}
|
862
|
-
headers = self._get_control_headers(token, vehicle)
|
863
|
-
|
864
|
-
_LOGGER.debug(f"{DOMAIN} - Lock Action Request: {payload}")
|
865
|
-
|
866
|
-
response = requests.post(url, json=payload, headers=headers).json()
|
867
|
-
_LOGGER.debug(f"{DOMAIN} - Lock Action Response: {response}")
|
868
|
-
_check_response_for_errors(response)
|
869
|
-
token.device_id = self._get_device_id(self._get_stamp())
|
870
|
-
return response["msgId"]
|
871
|
-
|
872
846
|
def charge_port_action(
|
873
847
|
self, token: Token, vehicle: Vehicle, action: CHARGE_PORT_ACTION
|
874
848
|
) -> str:
|
{hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.33.
|
3
|
+
Version: 3.33.5
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
{hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/RECORD
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=PUZfRVb_I3uC6KaY2HK4TxBFfXyVqaXAgGO1GOAb1Hc,9344
|
2
|
-
hyundai_kia_connect_api/ApiImplType1.py,sha256=
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=P379_E59c-AeE2xt1XRxvr3ks3B-uSkuzHLtg3Sae8A,18889
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=FGYyrS3dSq8Plfu8DQMwVG1LM3nmRv8Y4vrN7wZ4oVY,36988
|
4
|
-
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=
|
4
|
+
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=hsm3PYQho9oT_TpPl7XzgcIPQjqcUL9TBv9R6ftvFiI,44267
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=XBya0yHZ2MC3TBVQLSc6N-SzmGt_s3l4nGVyNgmjl9Q,32514
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cwIPZ0dU6HolKdooUQeQKlLAic6YU8dQmNs0VQDBgpQ,47035
|
7
|
-
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=
|
7
|
+
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=4CvmOU7Mj0kJm7eqwSCI6nXsETcigskj366-5nEUU1I,64773
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=8DP7iOORHtU98LipcAYEPdtJvubBlUP2-jlDxAhTDhQ,30548
|
9
9
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
10
10
|
hyundai_kia_connect_api/Vehicle.py,sha256=hZT0wU7-mMi85bgqNHMu6CyhQQ5h-Jfmoc1ce2uPhYM,18867
|
@@ -14,10 +14,10 @@ hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn
|
|
14
14
|
hyundai_kia_connect_api/const.py,sha256=dXEh-lpthH8000nUXFoRZpQXkTxVHDAgDe_KqnSZhZw,2280
|
15
15
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
16
16
|
hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
|
17
|
-
hyundai_kia_connect_api-3.33.
|
18
|
-
hyundai_kia_connect_api-3.33.
|
19
|
-
hyundai_kia_connect_api-3.33.
|
20
|
-
hyundai_kia_connect_api-3.33.
|
21
|
-
hyundai_kia_connect_api-3.33.
|
22
|
-
hyundai_kia_connect_api-3.33.
|
23
|
-
hyundai_kia_connect_api-3.33.
|
17
|
+
hyundai_kia_connect_api-3.33.5.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
18
|
+
hyundai_kia_connect_api-3.33.5.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
19
|
+
hyundai_kia_connect_api-3.33.5.dist-info/METADATA,sha256=lfmiqa4yNlYoWXDCp13c9nFeDhSKAzUHfnxcZGLQHQo,7142
|
20
|
+
hyundai_kia_connect_api-3.33.5.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
21
|
+
hyundai_kia_connect_api-3.33.5.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
22
|
+
hyundai_kia_connect_api-3.33.5.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
23
|
+
hyundai_kia_connect_api-3.33.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.33.5.dist-info}/top_level.txt
RENAMED
File without changes
|