Closed tobixx closed 1 year ago
This behaviour is also with my Ioniq 5 since last night.
Same issue here. KIA SORENTO PHEV
After restart integration fails setup due to missing device id:
Logger: custom_components.kia_uvo.coordinator
Source: custom_components/kia_uvo/coordinator.py:166
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 09:31:56 (6 occurrences)
Last logged: 09:35:44
Unexpected error fetching kia_uvo data: Undefined Error - notNull Violation: devices.device_id cannot be null
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 108, in _check_response_for_errors
raise error_code_mapping[response["resCode"]](response["resMsg"])
hyundai_kia_connect_api.exceptions.RequestTimeoutError: Undefined Error - notNull Violation: devices.device_id cannot be null
I think I have same problem here.
2023-06-29 09:36:44.964 DEBUG (SyncWorker_10) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_stamp 2023-06-29 05:02:58.607000+00:00 120000 76 998 76.88631513333333 2023-06-29 09:37:00.123 ERROR (MainThread) [custom_components.kia_uvo.config_flow] 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 108, in _check_response_for_errors raise error_code_mappingresponse["resCode"] hyundai_kia_connect_api.exceptions.RequestTimeoutError: Undefined Error - notNull Violation: devices.device_id cannot be null
Same problem. All entities showing unavailable.
I'm having the same issue. Relevant issue in the underlying API wrapper: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/348
I think the reason for this could be that the Kia cloud server is not available (as a suggestion). When adding the integration and checking the logfile in parallel with "tail -f" it needs some time - about 5 to 10 seconds" after the "get_stamp" line. That could be an indicator for a non existing answer from some server or a server which does not respond at all.
I tested the connection to to the hyundai server with the bluelink app. There was a normal response from this side.
MYG63 @.***> schrieb am Do., 29. Juni 2023, 10:21:
I think the reason for this could be that the Kia cloud server is not available. When adding the integration and checking the logfile in parallel with "tail -f" it needs some time - about 5 to 10 seconds" after the "get_stamp" line. That could be an indicator for a non existing answer from some server or a server which does not respond at all.
— Reply to this email directly, view it on GitHub https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/660#issuecomment-1612615448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW4X5BU6VGPBGQTGYZTHWQTXNU3HVANCNFSM6AAAAAAZYDRKNA . You are receiving this because you commented.Message ID: @.***>
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.
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
Same Here, also the Power App from tibber is not working 😂
Same here.
Same problem here. Home assistant is not receiving the information anymore.
Thank you for your help in fixing this.
Same problem here. Ioniq 5 placed in Denmark
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.
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?
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.
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.
Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.' Traceback (most recent call last):
Same server issue here after HA update. Tried a re-config of the integration when I noticed the error. From that re-config: Is this problem linked to the extra configuration parameter 'pin' ? I can't remember having that in the config before.
Same here. EU/KIA/E-NIRO
Same here. UK/HY/IONIQ5_23
Same here IONIQ5_23, tried to remove and reinstall but authentication fails... It was better just to have left it I assume
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.'
Is it really that difficult: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/660#issuecomment-1615157981
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.
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.
We are getting close to an update on this everyone. Thanks for the patience. Hope to have this working in the next few days.
Same problem with my Kia eNero. Worked perfect in the past and suddenly stops working. Hope to have a working update soon. Thanx in advance
The "master" branch has an update that may help Hyundai users. Another item is needed for Kia users for sure.
Latest patch confirmed as working for UK IONIQ5 MY23 🥳 Thanks for all such a quick turnaround on this 👍🏻
Confirmed working in Denmark Hyundai Kona. Thanks a lot guys.
I wonder when Hyundai /Kia will stop this "cat and mouse" game
Another item is needed for Kia users for sure.
Do you need a Kia user to get this Item or is this already found?
If still needed, I can try to get the Info If you guide me.
Another item is needed for Kia users for sure.
Do you need a Kia user to get this Item or is this already found?
If still needed, I can try to get the Info If you guide me.
We have it but it is in another repo and need that owner to merge.
Fix is working in Denmark for Ioniq 5 aswell.
Problem should be fixed for Hyundai users, at least as of now. For Kia, the expected files are generated but the issue still persists.
Great work to solve it for many. Working by installing the master (didn't realise I was using a Beta) from HACS on a 2022 UK Hyundai.
In HACS, integrations then open the kia/hyundai intergration. Select re-download from the top right menu icon of HACS in HASS. Then select master. With a restart of HASS afterwards for good measure.
Cheers
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.'
With the latest patch (api version 3.3.8) for a Kia EV6 UK - HA log gives: 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 199, in login device_id = self._get_device_id(stamp) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1107, in _get_device_id _check_response_for_errors(response) File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 111, in _check_response_for_errors raise APIError(f"Server returned: '{response['resMsg']}'") hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Block the UVO app id.'
That is expected for the time being @rikl64 and @rikardkjell as it is only resolved for Hyundai. Not yet for Kia. Please see the message of @fuatakgun earlier
Problem should be fixed for Hyundai users, at least as of now. For Kia, the expected files are generated but the issue still persists.
Same here, i think:
Deze fout is ontstaan door een aangepaste integratie.
Logger: custom_components.kia_uvo.coordinator Source: custom_components/kia_uvo/coordinator.py:166 Integration: Kia Uvo / Hyundai Bluelink (documentation, issues) First occurred: 29 juni 2023 om 16:04:12 (4301 occurrences) Last logged: 16:01:33
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.'
please try again with latest version, it works locally and cloud tests for Kia EU.
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! :)
No, no, stopped working in Denmark for Hyundai Kona
Sorry, I tested with my Kia. Indeed, it seems that the fix for the Kia broke the fix for Hyundai. See https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/354.
Confirmed. Recent Master now work for Kia...
Well done, works again like a charm. Thank you so much :-)
Will there be a new version (2.10.4) with the new patch for both Kia and Hyundai?
Damn, the first fix worked fine for my Hyundai, then I saw the notification for 2.0.3 and stupidly thinking it was just the official patch applied it.
Now it's stopped working like before. Can't revert, even tried re-applying master, rebooted/shutdown both HA and the HA OS, nothing fixes it again.
Wow, it's so bad it's causing my whole HA to keep restarting with out of memory errors, so have disabled it for now. I'm such an idiot. d'oh
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.
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
To Reproduce Nothing special. Working integration just stopped working this night.
Expected behavior Well, that it can connect.