Code Monkey home page Code Monkey logo

Comments (52)

vicar82 avatar vicar82 commented on June 29, 2024 3

Same problem. Password change in LG ThinQ app doesn't help.
After integration delete not possible to login: Error connecting to SmartThinQ. Try again, and make sure you can access the ThinQ app on your phone.
But everything ok in LG ThinQ app

from ha-smartthinq-sensors.

ErikProductions avatar ErikProductions commented on June 29, 2024 2

I'm getting the same.

from ha-smartthinq-sensors.

Druidblack avatar Druidblack commented on June 29, 2024 2

There is a pattern in the failure of integration. According to the +3 time zone, the integration starts working at night and works during the day. The shutdown occurs in the evenings and into the night.

from ha-smartthinq-sensors.

Taronaga avatar Taronaga commented on June 29, 2024 2

Hello everyone, this problem also appeared after rebooting the system. The APP works without failures, notifications are received, devices are available.

2023-12-27 18:06:42.138 WARNING (MainThread) [custom_components.smartthinq_sensors] Connection not available. ThinQ platform not ready
Traceback (most recent call last):
  File "/config/custom_components/smartthinq_sensors/__init__.py", line 252, in async_setup_entry
    client = await lge_auth.create_client_from_token(refresh_token, oauth2_url)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/__init__.py", line 151, in create_client_from_token
    return await ClientAsync.from_token(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1446, in from_token
    await client.refresh()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1366, in refresh
    await self._load_devices()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1283, in _load_devices
    new_devices = await self._session.get_devices()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1065, in get_devices
    self._common_lang_pack_url = dashboard.get("langPackCommonUri")
                                 ^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

from ha-smartthinq-sensors.

LeonidPY avatar LeonidPY commented on June 29, 2024 1

I can't login into account via HA.
If i just put mail and pass, getting this
image

If i try token - this
image

I've edited core_async.py like

1063         dashboard = await self.get2("service/application/dashboard")
1064         _LOGGER.info(dashboard)
1065         if self._common_lang_pack_url is None:

Here is the log

2023-12-24 01:19:33.439 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 222, in _check_connection
    client = await lge_auth.create_client_from_token(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/__init__.py", line 151, in create_client_from_token
    return await ClientAsync.from_token(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1447, in from_token
    await client.refresh()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1367, in refresh
    await self._load_devices()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1284, in _load_devices
    new_devices = await self._session.get_devices()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1066, in get_devices
    self._common_lang_pack_url = dashboard.get("langPackCommonUri")
                                 ^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

I've changer password, logged out /in in App, same trouble.

from ha-smartthinq-sensors.

golds69 avatar golds69 commented on June 29, 2024 1

This morning I woke up and was surprised to see that the devices were connected. But I was happy early. After some time, the devices disconnect again and the error repeated.

from ha-smartthinq-sensors.

LeonidPY avatar LeonidPY commented on June 29, 2024

Same here.

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

This is strange. I will add an additional check to this part of code to avoid this error, hoping that there are no other changes in API.

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

Uhm, wait, does not make sense. If dashboard is type str it doesn't contain all the info related to devices, this would be a problem. There are someone with this problem able to add a line a of log at line 1064 of core_asyng.py module to get the content of variable dashboard?

Just a line like this:

_LOGGER.info(dashboard)

from ha-smartthinq-sensors.

LeonidPY avatar LeonidPY commented on June 29, 2024

Looks like LG fixed something on their side. Successfully logged in by login and password.

from ha-smartthinq-sensors.

ErikProductions avatar ErikProductions commented on June 29, 2024

IMG_0087
I still can't log in.

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

I think that there are some problem LG server side. Wait some days to see if they fix.
BTW at my side everything working properly till now.

from ha-smartthinq-sensors.

LeonidPY avatar LeonidPY commented on June 29, 2024

Rebooted HA, took error again. Before reboot all worked ok.

2023-12-24 20:34:30.406 WARNING (MainThread) [custom_components.smartthinq_sensors] Connection not available. ThinQ platform not ready
Traceback (most recent call last):
  File "/config/custom_components/smartthinq_sensors/__init__.py", line 252, in async_setup_entry
    client = await lge_auth.create_client_from_token(refresh_token, oauth2_url)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/__init__.py", line 151, in create_client_from_token
    return await ClientAsync.from_token(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1447, in from_token
    await client.refresh()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1367, in refresh
    await self._load_devices()
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1284, in _load_devices
    new_devices = await self._session.get_devices()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1066, in get_devices
    self._common_lang_pack_url = dashboard.get("langPackCommonUri")
                                 ^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
2023-12-24 20:34:30.456 ERROR (MainThread) [homeassistant.components.homekit.type_thermostats] climate.dc07rh: Received invalid HVAC mode: unavailable

from ha-smartthinq-sensors.

diahellfire avatar diahellfire commented on June 29, 2024

Did it work for anyone?
Same problem...

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

Please enable integration debug and provide debug log.

from ha-smartthinq-sensors.

LeonidPY avatar LeonidPY commented on June 29, 2024

Please enable integration debug and provide debug log.

home-assistant_smartthinq_sensors_2023-12-25T22-14-08.307Z.log

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

Looks like the endpoint https://ruic-service.lgthinq.com:46030/v1/service/application/dashboard is returning an empty string instead of a dict with device information. Also fixing this will not fix the problem because integration will not be able to discover registered device.
I do not understand if there are some changes at API level, but seems that this issue is limited to some region. If the app is still working could someone try to analyze the traffic using instruction provided here ?

from ha-smartthinq-sensors.

ErikProductions avatar ErikProductions commented on June 29, 2024

Looks like the endpoint https://ruic-service.lgthinq.com:46030/v1/service/application/dashboard is returning an empty string instead of a dict with device information. Also fixing this will not fix the problem because integration will not be able to discover registered device. I do not understand if there are some changes at API level, but seems that this issue is limited to some region. If the app is still working could someone try to analyze the traffic using instruction provided here ?

The app is not working for me.

from ha-smartthinq-sensors.

ollo69 avatar ollo69 commented on June 29, 2024

The app is not working for me.

In this case I think that you could try to contact LG support and ask for clarification.

from ha-smartthinq-sensors.

vicar82 avatar vicar82 commented on June 29, 2024

I don't know how, but integration is working!!!!
I was able to login through integrations. But yesterday it definitely didn’t work as I tried several times.
It seems to me that this is not related to integration and the problem was on LG's side.

from ha-smartthinq-sensors.

wantsoftat avatar wantsoftat commented on June 29, 2024

I confirm, but it started recently

from ha-smartthinq-sensors.

freest555 avatar freest555 commented on June 29, 2024

There is a pattern in the failure of integration. According to the +3 time zone, the integration starts working at night and works during the day. The shutdown occurs in the evenings and into the night.

Changing the region in the same situation helped me for this moment.

from ha-smartthinq-sensors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.