hyundai-kia-connect-api 3.33.4__py2.py3-none-any.whl → 3.34.0__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/ApiImpl.py +9 -0
- hyundai_kia_connect_api/ApiImplType1.py +44 -0
- hyundai_kia_connect_api/KiaUvoApiAU.py +0 -15
- hyundai_kia_connect_api/KiaUvoApiEU.py +0 -26
- hyundai_kia_connect_api/VehicleManager.py +5 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/RECORD +12 -12
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/top_level.txt +0 -0
@@ -275,3 +275,12 @@ class ApiImpl:
|
|
275
275
|
Activate or Deactivate valet mode. Returns the tracking ID
|
276
276
|
"""
|
277
277
|
pass
|
278
|
+
|
279
|
+
def set_vehicle_to_load_discharge_limit(
|
280
|
+
self, token: Token, vehicle: Vehicle, limit: int
|
281
|
+
) -> str:
|
282
|
+
"""
|
283
|
+
feature only available for some regions.
|
284
|
+
Set the vehicle to load limit. Returns the tracking ID
|
285
|
+
"""
|
286
|
+
pass
|
@@ -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,46 @@ 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 set_vehicle_to_load_discharge_limit(
|
486
|
+
self, token: Token, vehicle: Vehicle, limit: int
|
487
|
+
) -> str:
|
488
|
+
url = (
|
489
|
+
self.SPA_API_URL + "vehicles/" + vehicle.id + "/ccs2/charge/dischargelimit"
|
490
|
+
)
|
491
|
+
|
492
|
+
body = {"dischargingLimit": int(limit)}
|
493
|
+
response = requests.post(
|
494
|
+
url,
|
495
|
+
json=body,
|
496
|
+
headers=self._get_authenticated_headers(
|
497
|
+
token, vehicle.ccu_ccs2_protocol_support
|
498
|
+
),
|
499
|
+
).json()
|
500
|
+
_LOGGER.debug(f"{DOMAIN} - Set v2l limit Response: {response}")
|
501
|
+
_check_response_for_errors(response)
|
502
|
+
|
503
|
+
def lock_action(
|
504
|
+
self, token: Token, vehicle: Vehicle, action: VEHICLE_LOCK_ACTION
|
505
|
+
) -> str:
|
506
|
+
if not vehicle.ccu_ccs2_protocol_support:
|
507
|
+
url = self.SPA_API_URL + "vehicles/" + vehicle.id + "/control/door"
|
508
|
+
|
509
|
+
payload = {"action": action.value, "deviceId": token.device_id}
|
510
|
+
headers = self._get_authenticated_headers(
|
511
|
+
token, vehicle.ccu_ccs2_protocol_support
|
512
|
+
)
|
513
|
+
|
514
|
+
else:
|
515
|
+
url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/ccs2/control/door"
|
516
|
+
|
517
|
+
payload = {"command": action.value}
|
518
|
+
headers = self._get_control_headers(token, vehicle)
|
519
|
+
|
520
|
+
_LOGGER.debug(f"{DOMAIN} - Lock Action Request: {payload}")
|
521
|
+
|
522
|
+
response = requests.post(url, json=payload, headers=headers).json()
|
523
|
+
_LOGGER.debug(f"{DOMAIN} - Lock Action Response: {response}")
|
524
|
+
_check_response_for_errors(response)
|
525
|
+
token.device_id = self._get_device_id(self._get_stamp())
|
526
|
+
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:
|
@@ -289,6 +289,11 @@ class VehicleManager:
|
|
289
289
|
self.token, self.get_vehicle(vehicle_id), VALET_MODE_ACTION.DEACTIVATE
|
290
290
|
)
|
291
291
|
|
292
|
+
def set_vehicle_to_load_discharge_limit(self, vehicle_id: str, limit: int) -> str:
|
293
|
+
return self.api.set_vehicle_to_load_discharge_limit(
|
294
|
+
self.token, self.get_vehicle(vehicle_id), limit
|
295
|
+
)
|
296
|
+
|
292
297
|
@staticmethod
|
293
298
|
def get_implementation_by_region_brand(
|
294
299
|
region: int, brand: int, language: str
|
{hyundai_kia_connect_api-3.33.4.dist-info → hyundai_kia_connect_api-3.34.0.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.34.0
|
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.34.0.dist-info}/RECORD
RENAMED
@@ -1,23 +1,23 @@
|
|
1
|
-
hyundai_kia_connect_api/ApiImpl.py,sha256=
|
2
|
-
hyundai_kia_connect_api/ApiImplType1.py,sha256=
|
1
|
+
hyundai_kia_connect_api/ApiImpl.py,sha256=smtAOUzjmO3ci2LHoNiEmTe2UR1f0SqmVUQiweZ6je4,9610
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=3qettOJ8TRMXmESYcJLJx4dtYYJSIkcOxljsLgjGgy8,19502
|
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
|
11
|
-
hyundai_kia_connect_api/VehicleManager.py,sha256=
|
11
|
+
hyundai_kia_connect_api/VehicleManager.py,sha256=JQLh9Tq1wIRz_CdrqiQAQBLMv1DTO_yNASIWWqZWksg,11731
|
12
12
|
hyundai_kia_connect_api/__init__.py,sha256=IkyVeIMbcFJZgLaiiNnUVA1Ferxvrm1bXHKVg01cxvc,319
|
13
13
|
hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn-rYEjI,19730
|
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.
|
18
|
-
hyundai_kia_connect_api-3.
|
19
|
-
hyundai_kia_connect_api-3.
|
20
|
-
hyundai_kia_connect_api-3.
|
21
|
-
hyundai_kia_connect_api-3.
|
22
|
-
hyundai_kia_connect_api-3.
|
23
|
-
hyundai_kia_connect_api-3.
|
17
|
+
hyundai_kia_connect_api-3.34.0.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
18
|
+
hyundai_kia_connect_api-3.34.0.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
19
|
+
hyundai_kia_connect_api-3.34.0.dist-info/METADATA,sha256=v8AkcefIFpuzobVsT5KL0W_jWdEn_evVIqZ1_l9SBAc,7142
|
20
|
+
hyundai_kia_connect_api-3.34.0.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
21
|
+
hyundai_kia_connect_api-3.34.0.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
22
|
+
hyundai_kia_connect_api-3.34.0.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
23
|
+
hyundai_kia_connect_api-3.34.0.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.34.0.dist-info}/top_level.txt
RENAMED
File without changes
|