hyundai-kia-connect-api 3.20.3__py2.py3-none-any.whl → 3.20.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/KiaUvoAPIUSA.py +70 -59
- hyundai_kia_connect_api/utils.py +0 -1
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/METADATA +2 -1
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/RECORD +8 -8
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/top_level.txt +0 -0
@@ -11,6 +11,7 @@ import time
|
|
11
11
|
import typing
|
12
12
|
from datetime import datetime
|
13
13
|
|
14
|
+
import certifi
|
14
15
|
import pytz
|
15
16
|
import requests
|
16
17
|
from requests import RequestException, Response
|
@@ -41,6 +42,7 @@ class KiaSSLAdapter(HTTPAdapter):
|
|
41
42
|
ciphers="DEFAULT:@SECLEVEL=1", ssl_version=ssl.PROTOCOL_TLSv1_2
|
42
43
|
)
|
43
44
|
kwargs["ssl_context"] = context
|
45
|
+
kwargs["ca_certs"] = certifi.where()
|
44
46
|
return super().init_poolmanager(*args, **kwargs)
|
45
47
|
|
46
48
|
|
@@ -629,51 +631,6 @@ class KiaUvoAPIUSA(ApiImpl):
|
|
629
631
|
options.defrost = False
|
630
632
|
if options.duration is None:
|
631
633
|
options.duration = 5
|
632
|
-
if options.front_left_seat is None:
|
633
|
-
options.front_left_seat = 0
|
634
|
-
if options.front_right_seat is None:
|
635
|
-
options.front_right_seat = 0
|
636
|
-
if options.rear_left_seat is None:
|
637
|
-
options.rear_left_seat = 0
|
638
|
-
if options.rear_right_seat is None:
|
639
|
-
options.rear_right_seat = 0
|
640
|
-
|
641
|
-
front_left_heatVentType = 0
|
642
|
-
front_right_heatVentType = 0
|
643
|
-
rear_left_heatVentType = 0
|
644
|
-
rear_right_heatVentType = 0
|
645
|
-
front_left_heatVentLevel = 0
|
646
|
-
front_right_heatVentLevel = 0
|
647
|
-
rear_left_heatVentLevel = 0
|
648
|
-
rear_right_heatVentLevel = 0
|
649
|
-
|
650
|
-
# heated
|
651
|
-
if options.front_left_seat in (6, 7, 8):
|
652
|
-
front_left_heatVentType = 1
|
653
|
-
front_left_heatVentLevel = options.front_left_seat - 4
|
654
|
-
if options.front_right_seat in (6, 7, 8):
|
655
|
-
front_right_heatVentType = 1
|
656
|
-
front_right_heatVentLevel = options.front_right_seat - 4
|
657
|
-
if options.rear_left_seat in (6, 7, 8):
|
658
|
-
rear_left_heatVentType = 1
|
659
|
-
rear_left_heatVentLevel = options.rear_left_seat - 4
|
660
|
-
if options.rear_right_seat in (6, 7, 8):
|
661
|
-
rear_right_heatVentType = 1
|
662
|
-
rear_right_heatVentLevel = options.rear_right_seat - 4
|
663
|
-
|
664
|
-
# ventilated
|
665
|
-
if options.front_left_seat in (3, 4, 5):
|
666
|
-
front_left_heatVentType = 2
|
667
|
-
front_left_heatVentLevel = options.front_left_seat - 1
|
668
|
-
if options.front_right_seat in (3, 4, 5):
|
669
|
-
front_right_heatVentType = 2
|
670
|
-
front_right_heatVentLevel = options.front_right_seat - 1
|
671
|
-
if options.rear_left_seat in (3, 4, 5):
|
672
|
-
rear_left_heatVentType = 2
|
673
|
-
rear_left_heatVentLevel = options.rear_left_seat - 1
|
674
|
-
if options.rear_right_seat in (3, 4, 5):
|
675
|
-
rear_right_heatVentType = 2
|
676
|
-
rear_right_heatVentLevel = options.rear_right_seat - 1
|
677
634
|
|
678
635
|
body = {
|
679
636
|
"remoteClimate": {
|
@@ -681,19 +638,74 @@ class KiaUvoAPIUSA(ApiImpl):
|
|
681
638
|
"unit": 1,
|
682
639
|
"value": str(options.set_temp),
|
683
640
|
},
|
641
|
+
"airCtrl": options.climate,
|
642
|
+
"defrost": options.defrost,
|
643
|
+
"heatingAccessory": {
|
644
|
+
"rearWindow": int(options.heating),
|
645
|
+
"sideMirror": int(options.heating),
|
646
|
+
"steeringWheel": int(options.heating),
|
647
|
+
},
|
648
|
+
"ignitionOnDuration": {
|
649
|
+
"unit": 4,
|
650
|
+
"value": options.duration,
|
651
|
+
},
|
684
652
|
},
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
653
|
+
}
|
654
|
+
|
655
|
+
# Kia seems to now be checking if you can set the heated/vented seats at the car level
|
656
|
+
# only add to body if the option is not none for any of the seats
|
657
|
+
if (
|
658
|
+
options.front_left_seat is not None
|
659
|
+
or options.front_right_seat is not None
|
660
|
+
or options.rear_left_seat is not None
|
661
|
+
or options.rear_right_seat is not None
|
662
|
+
):
|
663
|
+
if options.front_left_seat is None:
|
664
|
+
options.front_left_seat = 0
|
665
|
+
if options.front_right_seat is None:
|
666
|
+
options.front_right_seat = 0
|
667
|
+
if options.rear_left_seat is None:
|
668
|
+
options.rear_left_seat = 0
|
669
|
+
if options.rear_right_seat is None:
|
670
|
+
options.rear_right_seat = 0
|
671
|
+
|
672
|
+
front_left_heatVentType = 0
|
673
|
+
front_right_heatVentType = 0
|
674
|
+
rear_left_heatVentType = 0
|
675
|
+
rear_right_heatVentType = 0
|
676
|
+
front_left_heatVentLevel = 0
|
677
|
+
front_right_heatVentLevel = 0
|
678
|
+
rear_left_heatVentLevel = 0
|
679
|
+
rear_right_heatVentLevel = 0
|
680
|
+
|
681
|
+
# heated
|
682
|
+
if options.front_left_seat in (6, 7, 8):
|
683
|
+
front_left_heatVentType = 1
|
684
|
+
front_left_heatVentLevel = options.front_left_seat - 4
|
685
|
+
if options.front_right_seat in (6, 7, 8):
|
686
|
+
front_right_heatVentType = 1
|
687
|
+
front_right_heatVentLevel = options.front_right_seat - 4
|
688
|
+
if options.rear_left_seat in (6, 7, 8):
|
689
|
+
rear_left_heatVentType = 1
|
690
|
+
rear_left_heatVentLevel = options.rear_left_seat - 4
|
691
|
+
if options.rear_right_seat in (6, 7, 8):
|
692
|
+
rear_right_heatVentType = 1
|
693
|
+
rear_right_heatVentLevel = options.rear_right_seat - 4
|
694
|
+
|
695
|
+
# ventilated
|
696
|
+
if options.front_left_seat in (3, 4, 5):
|
697
|
+
front_left_heatVentType = 2
|
698
|
+
front_left_heatVentLevel = options.front_left_seat - 1
|
699
|
+
if options.front_right_seat in (3, 4, 5):
|
700
|
+
front_right_heatVentType = 2
|
701
|
+
front_right_heatVentLevel = options.front_right_seat - 1
|
702
|
+
if options.rear_left_seat in (3, 4, 5):
|
703
|
+
rear_left_heatVentType = 2
|
704
|
+
rear_left_heatVentLevel = options.rear_left_seat - 1
|
705
|
+
if options.rear_right_seat in (3, 4, 5):
|
706
|
+
rear_right_heatVentType = 2
|
707
|
+
rear_right_heatVentLevel = options.rear_right_seat - 1
|
708
|
+
body["remoteClimate"]["heatVentSeat"] = {
|
697
709
|
"driverSeat": {
|
698
710
|
"heatVentType": front_left_heatVentType,
|
699
711
|
"heatVentLevel": front_left_heatVentLevel,
|
@@ -714,8 +726,7 @@ class KiaUvoAPIUSA(ApiImpl):
|
|
714
726
|
"heatVentLevel": rear_right_heatVentLevel,
|
715
727
|
"heatVentStep": 1,
|
716
728
|
},
|
717
|
-
}
|
718
|
-
}
|
729
|
+
}
|
719
730
|
_LOGGER.debug(f"{DOMAIN} - Planned start_climate payload: {body}")
|
720
731
|
response = self.post_request_with_logging_and_active_session(
|
721
732
|
token=token, url=url, json_body=body, vehicle=vehicle
|
hyundai_kia_connect_api/utils.py
CHANGED
{hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.20.
|
3
|
+
Version: 3.20.5
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/fuatakgun/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
@@ -19,6 +19,7 @@ Requires-Dist: beautifulsoup4 >=4.10.0
|
|
19
19
|
Requires-Dist: curlify >=2.2.1
|
20
20
|
Requires-Dist: python-dateutil
|
21
21
|
Requires-Dist: pytz >=2021.3
|
22
|
+
Requires-Dist: certifi >=2024.6.2
|
22
23
|
|
23
24
|
Code Maintainers Wanted
|
24
25
|
=======================
|
{hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/RECORD
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=Feago4yTEgen2CpAzwNnAjUpz_5STLG1G7lesGlEy6o,5955
|
2
2
|
hyundai_kia_connect_api/ApiImplType1.py,sha256=pCFDFF1nN9eRun5zT462af5Xxu-Q0zYAUUStcoy5DJI,12037
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=wFdn-IzrJ4V3jwoPeysV72wlx7Rnnxu4kRkjXEY77Q0,28066
|
4
|
-
hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=
|
4
|
+
hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=GeoOi63Qttz5xsfGsyQ5vtAhcgcAVZ3HuUtmGF3bfzo,31105
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=FeK502Zysgcg3Yx31mjTh4rivFRuGB2sS07TldBzchk,48014
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=4gglRrGj6y4cw0ekRx0ELhIjfkPlbjmJyKUZwQbUFpU,29681
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cW9YRmt5CPUTB9dHEO7B1ev8SnLjeyzuLN9o50V7JXc,46852
|
@@ -12,10 +12,10 @@ hyundai_kia_connect_api/VehicleManager.py,sha256=YWWr47xqrXKfGk3f4AYFc3orupuixPT
|
|
12
12
|
hyundai_kia_connect_api/__init__.py,sha256=i2kXYjBEKSvT1e8FoQ7V7oqAyL22w3XzF2rAFpyietc,578
|
13
13
|
hyundai_kia_connect_api/const.py,sha256=ofi_ZfGxJYo0FWIcGFbIMSMRdKRtaK4GUDhFiQRvZeI,2007
|
14
14
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
15
|
-
hyundai_kia_connect_api/utils.py,sha256=
|
16
|
-
hyundai_kia_connect_api-3.20.
|
17
|
-
hyundai_kia_connect_api-3.20.
|
18
|
-
hyundai_kia_connect_api-3.20.
|
19
|
-
hyundai_kia_connect_api-3.20.
|
20
|
-
hyundai_kia_connect_api-3.20.
|
21
|
-
hyundai_kia_connect_api-3.20.
|
15
|
+
hyundai_kia_connect_api/utils.py,sha256=n8ynwDwo3N_hdIBe386Q-IyuIHcxYpiqEsfnOj6Gdj0,1710
|
16
|
+
hyundai_kia_connect_api-3.20.5.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
17
|
+
hyundai_kia_connect_api-3.20.5.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
18
|
+
hyundai_kia_connect_api-3.20.5.dist-info/METADATA,sha256=_wsJ5SdzepoSm5PNTfe9JFQqyJCLZSgB0mjrcRL_6Ho,6045
|
19
|
+
hyundai_kia_connect_api-3.20.5.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
20
|
+
hyundai_kia_connect_api-3.20.5.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
21
|
+
hyundai_kia_connect_api-3.20.5.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.20.3.dist-info → hyundai_kia_connect_api-3.20.5.dist-info}/top_level.txt
RENAMED
File without changes
|