kia_uvo: Integration stopped working - EU - Invalid Application/Device Id
Region and Brand of car EU/KIA/EV6
Version of the integration 2.10.2
Describe the bug Can’t connect anymore. Started just this night after months of no issues. No other changes were done.
Debug logs if an error occurred
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/kia_uvo/coordinator.py:151
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 06:29:50 (3 occurrences)
Last logged: 09:18:43
[546552013968] Server returned: 'Invalid request value - Invalid Application Id.'
[546910811920] Server returned: 'Invalid request body - Invalid deviceId. '
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/kia_uvo/services.py", line 54, in async_handle_update
await coordinator.async_update_all()
File "/config/custom_components/kia_uvo/coordinator.py", line 151, in async_update_all
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 75, in update_all_vehicles_with_cached_state
self.update_vehicle_with_cached_state(vehicle_id)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 80, in update_vehicle_with_cached_state
self.api.update_vehicle_with_cached_state(self.token, vehicle)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 296, in update_vehicle_with_cached_state
state = self._get_cached_vehicle_state(token, vehicle)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 710, in _get_cached_vehicle_state
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request value - Invalid Application Id.'
To Reproduce Nothing special. Working integration just stopped working this night.
Expected behavior Well, that it can connect.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 55
- Comments: 70 (3 by maintainers)
Please let’s keep the comment stream clean as much as possible so in case something important pops up, we don’t miss it.
I am working on this and trying to figure out what has changed in the login flow.
Also checking other repositories if they have a solution in place.
Me too
style comments are not helpful, while i understand the frustration here, let’s be patient.We are getting close to an update on this everyone. Thanks for the patience. Hope to have this working in the next few days.
Is it really that difficult: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/660#issuecomment-1615157981
The “master” branch has an update that may help Hyundai users. Another item is needed for Kia users for sure.
please try again with latest version, it works locally and cloud tests for Kia EU.
sorry to say, I got this problem after the update. Tried to unlock the door, it worked, then to lock the door, I got this message:
Filed to call service lock/lock. Server returned: ‘Invalid request body - invalid device ID’
Same here. EU/KIA/E-NIRO
Unexpected error fetching kia_uvo data: Server returned: ‘Invalid request body - Invalid parameter.’ Traceback (most recent call last):
If you have the same error, please just tag the original issue with a reaction. Replying I have the same issue just clutters the actual discussion around resolvng the issue. This makes it harder and take longer to fix the actual problem.
Error still occurs. I get this error when trying to call any service. Works first time after reloading integration, but not for next call and forward.
Edit: KIA EV6 EU
same again - ługi kia_uvo/update. Invalid request body - Invalid deviceId.
EU/KIA/NIRO
Same for me. It works once (e.g. start charge) the second request failes (e.g. stop charge) Error is also “hyundai_kia_connect_api.exceptions.DeviceIDError: Invalid request body - Invalid deviceId.”
v2.10.4 works great with my KIA XCeed 2019! 😀Also from my side many thanks to all for the hard work and super fast fix!
v2.10.4 is working now, awesome my friend, btw the tibber people also got it to work
Yes. Master branch now has that version. I am not by a pc so can’t generate the release package. I’ll do that today though.
You can close this one - https://github.com/Hyundai-Kia-Connect/kia_uvo/pull/667 seems to have fixed it. Thanks a lot for your hard work! 😃
As of now when trying to add integration… EU/KIA/E-Niro/Master
Logger: custom_components.kia_uvo.config_flow Source: custom_components/kia_uvo/config_flow.py:63 Integration: Kia Uvo / Hyundai Bluelink (documentation, issues) First occurred: 12:38:22 (3 occurrences) Last logged: 13:10:52
Unexpected exception Traceback (most recent call last): File “/config/custom_components/kia_uvo/config_flow.py”, line 159, in async_step_user await validate_input(self.hass, user_input) File “/config/custom_components/kia_uvo/config_flow.py”, line 63, in validate_input token: Token = await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 198, in login device_id = self._get_device_id(stamp) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 1104, in _get_device_id _check_response_for_errors(response) File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 110, in _check_response_for_errors raise APIError(f"Server returned: ‘{response[‘resMsg’]}’") hyundai_kia_connect_api.exceptions.APIError: Server returned: ‘Invalid request body - Invalid parameter.’
Problem should be fixed for Hyundai users, at least as of now. For Kia, the expected files are generated but the issue still persists.
Latest patch confirmed as working for UK IONIQ5 MY23 🥳 Thanks for all such a quick turnaround on this 👍🏻
Unfortunately same problem here. EU. Kia XCeed (2019)
Logger: custom_components.kia_uvo.coordinator Source: custom_components/kia_uvo/coordinator.py:166 Integration: Hyundai / Kia Connect (documentation, issues) First occurred: 1. Juli 2023 um 06:52:21 (1122 occurrences) Last logged: 07:54:25
Unexpected error fetching kia_uvo data: Server returned: ‘Invalid request body - Invalid parameter.’ Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/kia_uvo/coordinator.py”, line 107, in _async_update_data await self.async_check_and_refresh_token() File “/config/custom_components/kia_uvo/coordinator.py”, line 166, in async_check_and_refresh_token await self.hass.async_add_executor_job( File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py”, line 120, in check_and_refresh_token self.initialize() File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py”, line 64, in initialize self.token: Token = self.api.login(self.username, self.password) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 198, in login device_id = self._get_device_id(stamp) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 1104, in _get_device_id _check_response_for_errors(response) File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 110, in _check_response_for_errors raise APIError(f"Server returned: ‘{response[‘resMsg’]}’") hyundai_kia_connect_api.exceptions.APIError: Server returned: ‘Invalid request body - Invalid parameter.’
Same here IONIQ5_23, tried to remove and reinstall but authentication fails… It was better just to have left it I assume
Same here. UK/HY/IONIQ5_23
Some here, Integration stopped working then on checking UVO app now not working and kia website pointing to Kia Connect as the replacement. Kia Connect installed and working but assume API endpoints may have changed given app changed.
I have a similar issue since 2 days, however I get a different error message:
Debug logging doesn’t really seem to add any interesting information, even from the API debug logs. It might be interesting to see what the request body now actually is to figure out what the API is choking on?
Same problem here. Ioniq 5 placed in Denmark
Same problem here. Home assistant is not receiving the information anymore.
Thank you for your help in fixing this.
Same here.
Same Here, also the Power App from tibber is not working 😂
Same problem here. After enjoying this integration for 9 days, today it stopped working and when I tried to readd the integration the error nvalid Application Id… Popped up. Hyundai EU user