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
421 stars 85 forks source link

Failed setup, will retry: Config Not Ready: Login Failed #891

Closed 123go closed 3 months ago

123go commented 3 months ago

Region and Brand of car Australia Kia Niro EV

Version of the integration 2.24.5

Describe the bug The integration has been working well until approx 4.30am AEST today, 13th June 2024. Now all the sensors are showing as "unavailable".

I am still able to use the Kia Connect app with the same credentials. No issues there.

Neither restarting HA nor reloading the integration seem to fix the problem.

Debug logs if an error occurred

2024-06-13 15:46:13.452 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - Get Device ID request: {'ccsp-service-id': '***snip***', 'ccsp-application-id': '***snip***', 'Stamp': '***snip***', 'Content-Type': 'application/json;charset=UTF-8', 'Host': 'au-apigw.ccs.kia.com.au:8082', 'Connection': 'Keep-Alive', 'Accept-Encoding': 'gzip', 'User-Agent': 'okhttp/3.12.0'} {'pushRegId': '***snip***', 'pushType': 'GCM', 'uuid': '***snip***'}
2024-06-13 15:46:13.984 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - Get Device ID response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'deviceId': '***snip***'}, 'msgId': ''***snip***'}
2024-06-13 15:46:13.984 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - Get cookies request: https://au-apigw.ccs.kia.com.au:8082/api/v1/user/oauth2/authorize?response_type=code&client_id='***snip***&redirect_uri=https://au-apigw.ccs.kia.com.au:8082/api/v1/user/oauth2/redirect&lang=en
2024-06-13 15:46:14.555 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - Get cookies response: {'account': ''***snip***'}
2024-06-13 15:46:15.074 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - Sign In Response: {'step': 5, 'upgrade': False}
2024-06-13 15:46:15.074 DEBUG (SyncWorker_4) [hyundai_kia_connect_api.KiaUvoApiAU] hyundai_kia_connect_api - get_authorization_code_with_redirect_url failed
2024-06-13 15:46:15.076 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 1.625 seconds (success: False)

To Reproduce

Reload the integration

Expected behavior

Integration should be able to connect and fetch data and update the sensors.

Screenshots

image image

Additional context

123go commented 3 months ago

Seems like this might have been an issue on the server side.

As mentioned earlier, there were no problems in the Kia Connect app on my phone - I was able to view and control the vehicle. But one thing I hadn't tried was to log out of the Kia Connect app on my phone and log back in again. I did this today and it forced me to change my password. It didn't give me a reason why... I changed the password in the app and then changed the password in the Home Assistant integration and now it all seems to be working again.

For reference, the Kia Connect integration password can be updated in the following file in Home Assistant: config/.storage/core.config_entries (search for "kia" and you'll see it)

Closing this issue now.

PS. Thanks to all who built and support this integration!

Codiwr commented 3 months ago

This issue is not resolved - please reactivate.

Entities became unavailable last night.

Neither most recent not downgrading works.

Logging in and out of Kia app didn't work (no prompt to change password)