Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to reenter login credentials #776

Closed
hros opened this issue Jul 11, 2024 · 12 comments
Closed

Unable to reenter login credentials #776

hros opened this issue Jul 11, 2024 · 12 comments

Comments

@hros
Copy link

hros commented Jul 11, 2024

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](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
Copy link

SiboutVanLoo commented Jul 11, 2024 via email

@hros
Copy link
Author

hros commented Jul 11, 2024

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
Copy link

Same issue here

@jonare77
Copy link

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

@michelbieleveld
Copy link

Same here :/

@michelbieleveld
Copy link

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

@hros
Copy link
Author

hros commented Jul 12, 2024

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
Copy link
Contributor

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
Copy link

thewellington commented Jul 13, 2024

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
Copy link

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

@hros
Copy link
Author

hros commented Jul 13, 2024

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
Copy link
Author

hros commented Jul 13, 2024

image

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

no idea why it is called a "hub"

@hros hros closed this as completed Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants