Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
417 stars 85 forks source link

Integration unavailable #424

Closed rindlerblabla closed 1 year ago

rindlerblabla commented 1 year ago

EU EV6 2.0.20

Describe the bug Lately my car tends to be unavailable several times a day. Reloading the integration solves the issue.

Debug logs if an error occurred

Logger: custom_components.kia_uvo.coordinator Source: custom_components/kia_uvo/coordinator.py:82 Integration: Kia Uvo / Hyundai Bluelink (documentation, issues) First occurred: 12:07:20 (5 occurrences) Last logged: 13:08:10

Unexpected error fetching kia_uvo data: string indices must be integers Unexpected error fetching kia_uvo data: 'vehicleStatusInfo' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/kia_uvo/coordinator.py", line 82, in _async_update_data await self.hass.async_add_executor_job( File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 73, in check_and_force_update_vehicles self.force_refresh_vehicle_state(vehicle) File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 83, in force_refresh_vehicle_state self.api.force_refresh_vehicle_state(self.token, vehicle) File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 185, in force_refresh_vehicle_state state = self._get_forced_vehicle_state(token, vehicle) File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 416, in _get_forced_vehicle_state return response["resMsg"]["vehicleStatusInfo"] TypeError: string indices must be integers

cdnninja commented 1 year ago

I am thinking I am going to close this thread. It has fixed multiple issues. If others are still fighting with stability issues please open a new issue. The initial item way up in this thread was long ago resolved.