hyundai-kia-connect-api 3.18.0__tar.gz → 3.19.1__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.18.0 → hyundai_kia_connect_api-3.19.1}/PKG-INFO +1 -1
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/ApiImplType1.py +2 -1
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py +60 -2
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/PKG-INFO +1 -1
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/setup.py +1 -1
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/CONTRIBUTING.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/HISTORY.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/MANIFEST.in +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/README.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/Makefile +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/authors.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/conf.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/contributing.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/history.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/index.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/installation.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/make.bat +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/readme.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/docs/usage.rst +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/ApiImpl.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/KiaUvoAPIUSA.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/KiaUvoApiAU.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/KiaUvoApiCA.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/KiaUvoApiCN.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/KiaUvoApiEU.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/Token.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/Vehicle.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/VehicleManager.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/__init__.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/const.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/exceptions.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/utils.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/SOURCES.txt +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/dependency_links.txt +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/not-zip-safe +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/requires.txt +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api.egg-info/top_level.txt +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/requirements.txt +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/setup.cfg +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/tests/__init__.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/tests/au_login_test.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/tests/ca_login_test.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/tests/eu_check_response_for_errors_test.py +0 -0
- {hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/tests/eu_login_test.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.19.1
|
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
|
@@ -44,8 +44,9 @@ class ApiImplType1(ApiImpl):
|
|
44
44
|
|
45
45
|
def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None:
|
46
46
|
if get_child_value(state, "Date"):
|
47
|
+
# `Date` field is in UTC time
|
47
48
|
vehicle.last_updated_at = parse_datetime(
|
48
|
-
get_child_value(state, "Date"),
|
49
|
+
get_child_value(state, "Date"), dt.timezone.utc
|
49
50
|
)
|
50
51
|
else:
|
51
52
|
vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
|
@@ -636,7 +636,65 @@ class HyundaiBlueLinkAPIUSA(ApiImpl):
|
|
636
636
|
_LOGGER.debug(f"{DOMAIN} - Stop engine response: {response.text}")
|
637
637
|
|
638
638
|
def start_charge(self, token: Token, vehicle: Vehicle) -> None:
|
639
|
-
|
639
|
+
if vehicle.engine_type != ENGINE_TYPES.EV:
|
640
|
+
return {}
|
641
|
+
|
642
|
+
_LOGGER.debug(f"{DOMAIN} - Start charging..")
|
643
|
+
|
644
|
+
url = self.API_URL + "evc/charge/start"
|
645
|
+
headers = self._get_vehicle_headers(token, vehicle)
|
646
|
+
_LOGGER.debug(f"{DOMAIN} - Start charging headers: {headers}")
|
647
|
+
|
648
|
+
response = self.sessions.post(url, headers=headers)
|
649
|
+
_LOGGER.debug(
|
650
|
+
f"{DOMAIN} - Start charge response status code: {response.status_code}"
|
651
|
+
)
|
652
|
+
_LOGGER.debug(f"{DOMAIN} - Start charge response: {response.text}")
|
640
653
|
|
641
654
|
def stop_charge(self, token: Token, vehicle: Vehicle) -> None:
|
642
|
-
|
655
|
+
if vehicle.engine_type != ENGINE_TYPES.EV:
|
656
|
+
return {}
|
657
|
+
|
658
|
+
_LOGGER.debug(f"{DOMAIN} - Stop charging..")
|
659
|
+
|
660
|
+
url = self.API_URL + "evc/charge/stop"
|
661
|
+
headers = self._get_vehicle_headers(token, vehicle)
|
662
|
+
_LOGGER.debug(f"{DOMAIN} - Stop charging headers: {headers}")
|
663
|
+
|
664
|
+
response = self.sessions.post(url, headers=headers)
|
665
|
+
_LOGGER.debug(
|
666
|
+
f"{DOMAIN} - Stop charge response status code: {response.status_code}"
|
667
|
+
)
|
668
|
+
_LOGGER.debug(f"{DOMAIN} - Stop charge response: {response.text}")
|
669
|
+
|
670
|
+
def set_charge_limits(
|
671
|
+
self, token: Token, vehicle: Vehicle, ac: int, dc: int
|
672
|
+
) -> str:
|
673
|
+
if vehicle.engine_type != ENGINE_TYPES.EV:
|
674
|
+
return {}
|
675
|
+
|
676
|
+
_LOGGER.debug(f"{DOMAIN} - Setting charge limits..")
|
677
|
+
url = self.API_URL + "evc/charge/targetsoc/set"
|
678
|
+
headers = self._get_vehicle_headers(token, vehicle)
|
679
|
+
_LOGGER.debug(f"{DOMAIN} - Setting charge limits: {headers}")
|
680
|
+
|
681
|
+
data = {
|
682
|
+
"targetSOClist": [
|
683
|
+
{
|
684
|
+
"plugType": 0,
|
685
|
+
"targetSOClevel": int(dc),
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"plugType": 1,
|
689
|
+
"targetSOClevel": int(ac),
|
690
|
+
},
|
691
|
+
]
|
692
|
+
}
|
693
|
+
|
694
|
+
_LOGGER.debug(f"{DOMAIN} - Setting charge limits body: {data}")
|
695
|
+
|
696
|
+
response = self.sessions.post(url, json=data, headers=headers)
|
697
|
+
_LOGGER.debug(
|
698
|
+
f"{DOMAIN} - Setting charge limits response status code: {response.status_code}"
|
699
|
+
)
|
700
|
+
_LOGGER.debug(f"{DOMAIN} - Setting charge limits: {response.text}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.19.1
|
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
|
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.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/ApiImpl.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/Token.py
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/Vehicle.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/hyundai_kia_connect_api/const.py
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.18.0 → hyundai_kia_connect_api-3.19.1}/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
|