ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.06k stars 154 forks source link

LGE Devices Failed Setup, Will retry: ThinQ platform not ready #772

Open FarouqDin opened 2 weeks ago

FarouqDin commented 2 weeks ago

Describe the bug LGE Devices Failed Setup, Will retry: ThinQ platform not ready

Expected behavior several weeks i keep getting this bug

Screenshots Error Log LG 1 Error Log LG 2

Environment details: Core - 2024.7.1 Supervisor- 2024.06.2 Operating System- 12.4 Frontend - 20240705.

Output of HA logs Logger: custom_components.smartthinq_sensors Source: custom_components/smartthinq_sensors/init.py:269 integration: SmartThinQ LGE Sensors (documentation, issues) First occurred: 10:11:45 (1 occurrences) Last logged: 10:11:45

Connection not available. ThinQ platform not ready Traceback (most recent call last): File "/config/custom_components/smartthinq_sensors/init.py", line 269, in async_setup_entry client = await lge_auth.create_client_from_token( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 153, in create_client_from_token return await ClientAsync.from_token( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1605, in from_token await client.refresh() File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1513, in refresh self._auth = await self.auth.refresh(True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 989, in refresh access_token, token_validity = await self._gateway.core.refresh_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 707, in refresh_auth out = await self._auth_request( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 675, in _auth_request raise exc.TokenError() custom_components.smartthinq_sensors.wideq.core_exceptions.TokenError: Token Error

Additional context looking at the error log, looks like token error, what i have read via this forum, something might be blocking. I have Deco Mesh system and use as router as well. Would be great if can get some assistance to get this up and running again.

SpudsterZ commented 2 weeks ago

Been having this same type of token error with my stove for quite some time now.

createthisnl commented 1 week ago

Same here since this morning with my washing machine. LG has changed something in the terms and conditions that I first had to accept in their LG TinQ app. After this was done, nothing changed. I tried to re-verify the integration (with the suggested repair button), but it didn't work. Then restart Home Assistant, also without success.

Then I added the integration again, without removing the old one (with this error message). Normally this is not possible, but if you now click the "Add Hub" (as shown on @FarouqDin second screenshot) button and log in again, this will bring the old hub back to life. That was the case with me.

Again, you don't have to delete anything. Simply click "Add Hub" on the integration details page and log in again. Be sure to first check the LG TinQ app for any changes to the general terms and conditions.

jshatch commented 1 week ago

I can't get it to reconnect at all. Upon first trying it failed with invalid credentials, then I used the URL redirection method and that took me to a login page that accepted my creds but made me accept TOS and then forced me to rotate my password. After doing that, it will login but finds no devices...

image image

Having MyQ flashbacks. :)

**edit After disabling the integration and opening the app on my phone I saw it wanted me to accept the TOS there as well. After doing that I re enabled the integration and it worked immediately thereafter.

FarouqDin commented 1 week ago

@createthisnl your suggestion worked. Integration is now working. Many thanks

tismofied commented 1 week ago

This is has been my fix every time I see an issue with the integration for the last year. I immediately open the app on my phone, accept the terms and reload the integration.

jchonig commented 1 week ago

The disable/enable work around did not work for me.

Before disabling, I changed my password and accepted the new TOS in the app

I then tried the URL redirection link and at it took me back to the login page. On the second try it posted "This URL not found". Both on a desktop and mobile.

Now I'm in the Failed to set up: ThinQ platform not ready state with no options except disabling or deleting the integration.

Mechotronic commented 1 week ago

The disable/enable work around did not work for me.

Before disabling, I changed my password and accepted the new TOS in the app

I then tried the URL redirection link and at it took me back to the login page. On the second try it posted "This URL not found". Both on a desktop and mobile.

Now I'm in the Failed to set up: ThinQ platform not ready state with no options except disabling or deleting the integration.

I have the same issue on my end, but I still have the reconfigure option. EDIT: Actually, I needed to disable and re-enable the integration and it's connected now.

ollo69 commented 1 week ago

When LG change TOS is necessary to accept on LG app to be able to connect again with integration. I understand that request to login again on integration confuse many user, I'll try to understand if there is a way to recognize the specific issue and eventually accept TOS without manual requests.

nunoarias commented 1 week ago

Even recreating the account it continues to gives the error "Failed Setup, Will retry: ThinQ platform not ready", I have tried delete integration, reboot HA, reload, etc. even recreate LG account