ollo69 / ha-smartthinq-sensors

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

Unable to reenter login credentials #776

Closed hros closed 2 months ago

hros commented 3 months ago

Describe the bug The integration failed to login to my LG account and gave an option in the settings screen to "repair" by entering the login credentials. I restarted home-assistant. After that, the repair message was gone, but the integration continuously failed to login (loop of "initializing," "failed setup, retry") I don't see the option to reneter the login credentials, reconfigure the integration

Environment details:

Output of HA logs

Logger: custom_components.smartthinq_sensors
Source: custom_components/smartthinq_sensors/__init__.py:269
integration: SmartThinQ LGE Sensors ([documentation](https://github.com/ollo69/ha-smartthinq-sensors), [issues](https://github.com/ollo69/ha-smartthinq-sensors/issues))
First occurred: 9:18:42 PM (1 occurrences)
Last logged: 9:18:42 PM

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
SiboutVanLoo commented 3 months ago

Open up the LG Thinq app, and accept new legal stuff. I had to change PW to, to comply with standards.

Op do 11 jul 2024 20:30 schreef hros @.***>:

Describe the bug The integration failed to login to my LG account and gave an option in the settings screen to "repair" by entering the login credentials. I restarted home-assistant. After that, the repair message was gone, but the integration continuously failed to login (loop of "initializing," "failed setup, retry") I don't see the option to reneter the login credentials, reconfigure the integration

Environment details:

  • Environment (HASSIO, Raspbian, etc): TrueCharts app (container in TrueNAS)
  • Home Assistant version installed: Core - 2024.5.5
  • Component version installed: 0.39.2
  • Last know working version: 0.39.2
  • LG device type and model with issue: various
  • LG devices connected (list): a/c, tv, washing machine, ...

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: 9:18:42 PM (1 occurrences) Last logged: 9:18:42 PM

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

— Reply to this email directly, view it on GitHub https://github.com/ollo69/ha-smartthinq-sensors/issues/776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCKJFP66QE3FD4JHGXZIWLZL3FN3AVCNFSM6AAAAABKXQOVV6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDGOBTGY4TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hros commented 3 months ago

Open up the LG Thinq app, and accept new legal stuff. I had to change PW to, to comply with standards.

Thanks. I already accepted everything in the mobile app, and it is working. But, the home-assistant integration is not working (unable to login)

How can get to the configuration window of the integration to perform the login from scratch?

engpedrorafael commented 3 months ago

Same issue here

jonare77 commented 3 months ago

Same here too, invalid flow is the message I get in the integration. New legal information is accepted.

michelbieleveld commented 3 months ago

Same here :/

michelbieleveld commented 3 months ago

never mind user error, reset password and reconnect seemed to work .

hros commented 3 months ago

never mind user error, reset password and reconnect seemed to work .

Where did you reset the password? In the ThinQ app/site? or in the integration? I would like to make the modification only in the integration. How do you reset its password

jose1711 commented 2 months ago

Open up the LG Thinq app, and accept new legal stuff. I had to change PW to, to comply with standards. Op do 11 jul 2024 20:30 schreef hros @.>: Describe the bug The integration failed to login to my LG account and gave an option in the settings screen to "repair" by entering the login credentials. I restarted home-assistant. After that, the repair message was gone, but the integration continuously failed to login (loop of "initializing," "failed setup, retry") I don't see the option to reneter the login credentials, reconfigure the integration Environment details: - Environment (HASSIO, Raspbian, etc): TrueCharts app (container in TrueNAS) - Home Assistant version installed: Core - 2024.5.5 - Component version installed: 0.39.2 - Last know working version: 0.39.2 - LG device type and model with issue: various - LG devices connected (list): a/c, tv, washing machine, ... 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: 9:18:42 PM (1 occurrences) Last logged: 9:18:42 PM 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 — Reply to this email directly, view it on GitHub <#776>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCKJFP66QE3FD4JHGXZIWLZL3FN3AVCNFSM6AAAAABKXQOVV6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDGOBTGY4TINY . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you, this resolved the issue for me.

thewellington commented 2 months ago

I reset my password, but I am not able to authenticate the HA integration. I continue to get "invalid flow"

EDIT: After restarting HA, it connected just fine. even though it had been telling me "invalid flow" when I tried to reenter the credentials.... Whatever, it seems to be working now.....

ethagnawl commented 2 months ago

Can confirm that downloading the Android app, logging in, accepting T&C and restarting HA solved this for me.

hros commented 2 months ago

The ThinQ Android App is working, but the integration is not

Is there anyway of getting back to the log-in phase of the integration, other than removing it and reinstalling it?

hros commented 2 months ago

image

did the trick... Clicking "ADD HUB" opens a login window. Everything is working now...

no idea why it is called a "hub"