oyvindwe / connectlife-ha

ConnectLife integration for Home Assistant
GNU General Public License v3.0
62 stars 24 forks source link

ConnectLife login error due to updated terms #157

Open delumerlino opened 1 week ago

delumerlino commented 1 week ago

Good day... starting from today my air conditioning system devices are unavailable, with this error:

Error setting up entry ConnectLife (my username) for connectlife
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/connectlife/__init__.py", line 34, in async_setup_entry
    await api.login()
  File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 66, in login
    await self._fetch_access_token()
  File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 107, in _fetch_access_token
    await self._initial_access_token()
  File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 125, in _initial_access_token
    login_token = body["sessionInfo"]["cookieValue"]
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^

Trying to set again username and password with no success, redownloaded with no success...

Thank you :)

delumerlino commented 1 week ago

It seems also the connectlife app is broken

oyvindwe commented 1 week ago

I got the same issue. Enabled debug logging and got this message:

  "errorDetails": "Missing required fields for registration: preferences.terms.connectlife_terms_conditions.isConsentGranted, preferences.privacy.connectlife_privacy_policy.isConsentGranted",
  "errorMessage": "Account Pending Registration",

Fix was to open the ConnectLife app on my iPhone, and accept the new terms.

ogabrielnadai commented 1 week ago

After relogging I had a problem accepting the new terms, it seems that the application is broken, even after clearing the data and cache. I am using Android

delumerlino commented 1 week ago

On android I receive errori when accepting

Il Mar 12 Nov 2024, 15:30 GabrielNadai @.***> ha scritto:

After relogging I had a problem accepting the new terms, it seems that the application is broken, even after clearing the data and cache. I am using Android

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2470689699, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ3BY5HRG47ZQT5V4NHTXD2AIGITAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZQGY4DSNRZHE . You are receiving this because you authored the thread.Message ID: @.***>

oyvindwe commented 1 week ago

I don't have Android, so I can't help out there.

I see another issue though - it now takes more than 10 seconds to retrieve data from the ConnectLife API after logging in, and the integration has a 10 second timeout. I'm working on a fix for this.

ogabrielnadai commented 1 week ago

Even logging in through website and accepting the new terms does not seem to log in to Android.

oyvindwe commented 1 week ago

Have you tried to reinstall the app after accepting the new terms?

ogabrielnadai commented 1 week ago

Yes, image

It seems like they're really having problems, I'll wait for a solution here for my case. For those who want to try this is the link indicated in the email. ASKO Pro Web (connectlife.io)

oyvindwe commented 1 week ago

It seems that integrations are flooding ConnectLife with logins due to this issue.

I'm working on handling this issue more robust in the integration.

In the meantime, please disable your ConnectLife integration!

oyvindwe commented 1 week ago

Improved handling of this error and increased timeout is implemented in PR #158

Included in version 0.20.2

This will stop the integration from trying to login more than once, and the error message is displayed on the integration page:

image

After accepting the new terms in the app, you need to reload the plugin.

marsdeat commented 1 week ago

Accepting terms in iOS app and reloading fixed this for me.

ohhfem commented 1 week ago

Has anyone solved it? On Android it does not work, and from the link sent by ogabrielnadai I do not have the "login" button.

delumerlino commented 1 week ago

On Android the problem persist, and if you log into the web page (start or inizia in italian) the "accepting terms" is not transferred on Android, btw you cannot use the already registered devices in Android app..

Il giorno mer 13 nov 2024 alle ore 11:01 Samuele @.***> ha scritto:

Has anyone solved it? On Android it does not work, and from the link sent by ogabrielnadai I do not have the "login" button.

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2473048676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ3BYZI4LQ5DZZ5DLOE4632AMPQTAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGA2DQNRXGY . You are receiving this because you authored the thread.Message ID: @.***>

ohhfem commented 1 week ago

On Android the problem persist, and if you log into the web page (start or inizia in italian) the "accepting terms" is not transferred on Android, btw you cannot use the already registered devices in Android app..

Il giorno mer 13 nov 2024 alle ore 11:01 Samuele @.***> ha scritto:

Has anyone solved it? On Android it does not work, and from the link sent by ogabrielnadai I do not have the "login" button.

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2473048676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ3BYZI4LQ5DZZ5DLOE4632AMPQTAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGA2DQNRXGY . You are receiving this because you authored the thread.Message ID: @.***>

So the only thing is.. what? Waiting for Hisense to update the android app or something?

ohhfem commented 1 week ago

It seems that on the Play Store people are complaining about login errors. Hisense answers to them that they are aware of this error and they are working on a fix. So we have to wait

delumerlino commented 1 week ago

I have tried this morning and everything works, both app and Home assistant :)

Il giorno mer 13 nov 2024 alle ore 17:11 Samuele @.***> ha scritto:

It seems that on the Play Store people are complaining about login errors. Hisense answers to them that they are aware of this error and they are working on a fix. So we have to wait

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2474065025, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ3BY6CABMTH7N4OQ6YQ3L2AN22VAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZUGA3DKMBSGU . You are receiving this because you authored the thread.Message ID: @.***>

ohhfem commented 1 week ago

Not for me:(

Il gio 14 nov 2024, 09:00 delumerlino @.***> ha scritto:

I have tried this morning and everything works, both app and Home assistant :)

Il giorno mer 13 nov 2024 alle ore 17:11 Samuele @.***> ha scritto:

It seems that on the Play Store people are complaining about login errors. Hisense answers to them that they are aware of this error and they are working on a fix. So we have to wait

— Reply to this email directly, view it on GitHub < https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2474065025>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACQ3BY6CABMTH7N4OQ6YQ3L2AN22VAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZUGA3DKMBSGU>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2475658405, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5D6HHKNEPM723USVX4FZGD2ARKB5AVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGY2TQNBQGU . You are receiving this because you commented.Message ID: @.***>

Monacoslo commented 1 week ago

For users where it still does not work, try different options and let me know if it helps:

I am not sure anymore which option worked for me

ohhfem commented 1 week ago

You mean, change language on the phone?

Il ven 15 nov 2024, 12:10 AndrejR @.***> ha scritto:

For users where it still does not work, try different options and let me know if it helps:

  • change language to your local language and confirm
  • change language to english and confirm

I am not sure anymore which option worked for me

— Reply to this email directly, view it on GitHub https://github.com/oyvindwe/connectlife-ha/issues/157#issuecomment-2478580054, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5D6HHLOGJBEUKQ42KZGJYL2AXJBFAVCNFSM6AAAAABRT26JHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZYGU4DAMBVGQ . You are receiving this because you commented.Message ID: @.***>

ohhfem commented 1 week ago

Ok guys so here's my experience. I wrote a review on Play Store like other people, and Hisense contacted me saying that they are sorry etc etc.. Then, they asked me to provide my email account connected to Connect life via email, and they just fixed the problem. Now I'm able to connect both app and home assistant.