ha-smartthinq-sensors: Login flow not working
Another login issue. I am not able to authenticate.
I am trying to connect using a Local LG account (NL,en-NL). I can log into the android app and there are no further TOS I can accept. I am running v0.24.2
If I follow the “redirect url method” I can log into the LG site, which redirects me to another login form. If I use that url in HA, it says “Error connecting to SmartThinQ. Try again, and make sure you can access the ThinQ app on your phone”. If I try to login again on the second form, it tells me that the account has already been registered for services in NL and if I want to use the UK services I need to register another account. The console shows :
2022-10-04 11:50:35.874 ERROR (MainThread) [custom_components.smartthinq_sensors.config_flow] Error connecting to ThinQ
Traceback (most recent call last):
File "/config/custom_components/smartthinq_sensors/config_flow.py", line 206, in _check_connection
client = await lge_auth.create_client_from_token(
File "/config/custom_components/smartthinq_sensors/__init__.py", line 127, in create_client_from_token
return await ClientAsync.from_token(
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1255, in from_token
await client.refresh()
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1194, in refresh
self._auth = await self.auth.refresh(True)
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 777, in refresh
access_token, token_validity = await self._gateway.core.refresh_auth(
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 585, in refresh_auth
out = await self._auth_request(
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 552, in _auth_request
raise exc.TokenError()
custom_components.smartthinq_sensors.wideq.core_exceptions.TokenError
2022-10-04 11:50:35.875 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2022-10-04 11:50:35.876 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 20 (9 by maintainers)
Because LG is the provider of the service connected with their devices, I think that this will never happen. Most probably LG could choose to change something and totally block access by “not official” devices. LG cloud is not open source, and they can do what they prefer,
This thread is quite old and I don’t see any update from the user who open this. Because in last release I implement some improvement in
url connectionmethod, I hope that this issue is solved.If not please open a new one with the current problems.👍