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)

Most upvoted comments

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.

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

2023-09-14 23:58:43.524 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546903271872] Invalid request body - Invalid deviceId. 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/services.py", line 70, in async_handle_start_climate
    await coordinator.async_start_climate(vehicle_id, climate_request_options)
  File "/config/custom_components/kia_uvo/coordinator.py", line 198, in async_start_climate
    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 133, in start_climate
    return self.api.start_climate(self.token, self.get_vehicle(vehicle_id), options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 835, in start_climate
    _check_response_for_errors(response)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 113, in _check_response_for_errors
    raise error_code_mapping[response["resCode"]](response["resMsg"])

same again - ługi kia_uvo/update. Invalid request body - Invalid deviceId.

EU/KIA/NIRO

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 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 👍🏻

For info my Android UVO app isn’t working either, coming up with a network error popup. The UVO app has gone from the play store, there is now just Kia Connect which works.

Confirmed by Kia support when I contacted them that the Kia UVO app have been closed down. The Kia Connect is the app to use. The Connect app has been the goto app for 1 year atleast.

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:

2023-07-01 08:44:50.731 WARNING (MainThread) [hyundai_kia_connect_api.KiaUvoApiEU] Unsupported language: en-GB, fallback to en
2023-07-01 08:44:51.058 DEBUG (SyncWorker_34) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_stamp 2023-07-01 05:01:41.828000+00:00 120000 51 998 51.57691609166667
2023-07-01 08:44:51.298 ERROR (MainThread) [custom_components.kia_uvo.coordinator] 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.'
2023-07-01 08:44:51.315 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 0.577 seconds (success: False)

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