Closed fuatakgun closed 1 year ago
A draft of this exists here: https://github.com/fuatakgun/kia_uvo/tree/externalAPI
Manual install will be required for this.
Key warnings to be aware of for those that want to try it:
Now the good.
@MrDadoo I have added all those missing sensors you have mentioned except the AC one. Services are still ongoing.
I now have 2 US Kia's and would be happy to help with testing. 2020 Telluride & 2022 K5. Currently both are on same account.
Awesome! This is the one un-tested region so help would be greatly appreciated. To "install" copy the full contents of the externalAPI data replacing the files currently in home assistant. Please make sure you are aware of the risks above. I fully expect an error on the first attempt. Please enable debug logs and provide them. At which point I will correct the item and move on to the next error.
2022-02-02 10:55:14 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: 'Token' object has no attribute 'vehicle_regid'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 196, in update_vehicle_with_cached_state
state = self._get_cached_vehicle_state(token, vehicle.id)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 327, in _get_cached_vehicle_state
"vinKey": [token.vehicle_regid],
AttributeError: 'Token' object has no attribute 'vehicle_regid'
2022-02-02 10:55:14 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 2.380 seconds (success: False)
2022-02-02 10:55:25 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: 'Token' object has no attribute 'vehicle_regid'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 196, in update_vehicle_with_cached_state
state = self._get_cached_vehicle_state(token, vehicle.id)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 327, in _get_cached_vehicle_state
"vinKey": [token.vehicle_regid],
AttributeError: 'Token' object has no attribute 'vehicle_regid'
2022-02-02 10:55:25 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 1.649 seconds (success: False)
2022-02-02 10:55:46 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: 'Token' object has no attribute 'vehicle_regid'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 196, in update_vehicle_with_cached_state
state = self._get_cached_vehicle_state(token, vehicle.id)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 327, in _get_cached_vehicle_state
"vinKey": [token.vehicle_regid],
AttributeError: 'Token' object has no attribute 'vehicle_regid'
2022-02-02 10:55:46 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 1.084 seconds (success: False)
Made some API updates to deal with that. The manifest.json file now should have the API as version: 1.21.7
After the revised manifest.json:
2022-02-02 15:05:36 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 87, in check_and_refresh_token
if self.token.valid_until <= dt.datetime.now(pytz.utc):
TypeError: can't compare offset-naive and offset-aware datetimes
2022-02-02 15:05:36 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 4.267 seconds (success: False)
2022-02-02 15:05:36 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Kia USA xxxx@xxxx.net' for kia_uvo integration not ready yet: can't compare offset-naive and offset-aware datetimes; Retrying in background
2022-02-02 15:05:41 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 87, in check_and_refresh_token
if self.token.valid_until <= dt.datetime.now(pytz.utc):
TypeError: can't compare offset-naive and offset-aware datetimes
2022-02-02 15:05:41 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 4.732 seconds (success: False)
2022-02-02 15:05:55 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 87, in check_and_refresh_token
if self.token.valid_until <= dt.datetime.now(pytz.utc):
TypeError: can't compare offset-naive and offset-aware datetimes
2022-02-02 15:05:55 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 3.761 seconds (success: False)
2022-02-02 15:06:19 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 87, in check_and_refresh_token
if self.token.valid_until <= dt.datetime.now(pytz.utc):
TypeError: can't compare offset-naive and offset-aware datetimes
2022-02-02 15:06:19 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 4.062 seconds (success: False)
1.22.1 is the next version.
1.22.1 results below (and just verifying all I'm changing is the manifest.json file which calls the api's?)
2022-02-02 18:10:41 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 202, in update_vehicle_with_cached_state
vehicle.last_updated_at = self.get_last_updated_at(
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 313, in get_last_updated_at
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
File "/usr/local/lib/python3.9/re.py", line 191, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
2022-02-02 18:10:41 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 3.021 seconds (success: False)
2022-02-02 18:10:41 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Kia USA xxxx@xxxx.xxx' for kia_uvo integration not ready yet: expected string or bytes-like object; Retrying in background
2022-02-02 18:10:43 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 202, in update_vehicle_with_cached_state
vehicle.last_updated_at = self.get_last_updated_at(
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 313, in get_last_updated_at
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
File "/usr/local/lib/python3.9/re.py", line 191, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
2022-02-02 18:10:43 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 2.685 seconds (success: False)
2022-02-02 18:10:56 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 202, in update_vehicle_with_cached_state
vehicle.last_updated_at = self.get_last_updated_at(
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 313, in get_last_updated_at
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
File "/usr/local/lib/python3.9/re.py", line 191, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
2022-02-02 18:10:56 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 2.820 seconds (success: False)
2022-02-02 18:11:19 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 202, in update_vehicle_with_cached_state
vehicle.last_updated_at = self.get_last_updated_at(
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 313, in get_last_updated_at
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
File "/usr/local/lib/python3.9/re.py", line 191, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
2022-02-02 18:11:19 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 2.703 seconds (success: False)
2022-02-02 18:12:02 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/kia_uvo/coordinator.py", line 81, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 104, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 86, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 51, in initialize
self.update_all_vehicles_with_cached_state()
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 58, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(self.get_vehicle(vehicle_id))
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 61, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 202, in update_vehicle_with_cached_state
vehicle.last_updated_at = self.get_last_updated_at(
File "/usr/local/lib/python3.9/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 313, in get_last_updated_at
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
File "/usr/local/lib/python3.9/re.py", line 191, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
2022-02-02 18:12:02 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 3.120 seconds (success: False)
Yes that is correct just the manifest file. We know the actual new integration works on new regions so this is just getting the API packaged addressed for Kia USA.
1.22.2 is uploaded now. Good news is based on this last error we are past the login and moving into data mapping.
2022-02-02 19:41:35 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 32.858 seconds (success: True)
I don't see anything else in log :-)
Haven't looked at the entities yet, but looking good so far!
Great work BTW - thanks for your efforts!
Some "very quick" observations re: entities. As you expected, some minor work to do here.
Temp unit and lock should be fixed in 1.22.3. The data entity was removed as the Core Home Assistant team requested it be removed in our core submission. The code you are running is modeled after that but closer to feature parity. Did you use the data entity before? I am starting to wonder if the core submission will get approved or if we continue on here.
Could you browse through these two files and see what sensors your a missing that you have data in debug logging for? https://github.com/fuatakgun/kia_uvo/blob/externalAPI/custom_components/kia_uvo/binary_sensor.py https://github.com/fuatakgun/kia_uvo/blob/externalAPI/custom_components/kia_uvo/sensor.py
Enable debug logging for the new API is outlined here at the bottom: https://github.com/fuatakgun/kia_uvo/tree/externalAPI it is a new line in the config.
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Entity | In single-vehicle app | In multi-vehicle app |
---|---|---|
Fuel level % | Yes | No |
Range by Fuel | Yes | No |
Air Conditioner | Yes | No |
Location | Yes | No |
Odometer | Yes | No |
Smart Key Battery Warning | Yes | No |
Tire Pressure All | Yes | No |
Washer fluid warning | Yes | No |
Set Temp and lock verified corrected with 1.22.3
https://pypi.org/project/hyundai-kia-connect-api/ https://github.com/fuatakgun/hyundai_kia_connect_api
repository is set to generate a new release for each commit and deploy each new release into pypi