albertogeniola / meross-homeassistant

Custom component that leverages the Meross IoT library to integrate with Homeassistant
MIT License
730 stars 83 forks source link

Not able to log-in #508

Closed robsonma1984 closed 4 months ago

robsonma1984 commented 4 months ago

Describe the bug I have Downloaded the Meross Integration using HACS, I then restarted Home Assistant and Click Settings>Decices and Services Add Integration and then Search for Meross, Click on Meross Cloud IoT . Click Connect to Meross Official Enter my details

Screenshot 2024-07-09 100737

Then i get an error

Screenshot 2024-07-09 100746

Core 2024.7.1 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240705.0

Logs taken when the issue happened


This error originated from a custom integration.

Logger: custom_components.meross_cloud.config_flow
Source: custom_components/meross_cloud/config_flow.py:283
integration: Meross Cloud IoT
First occurred: 10:11:51 (2 occurrences)
Last logged: 10:11:53

Unable to connect to Meross HTTP api, ex: 'mfaLockExpire'
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/config_flow.py", line 283, in async_step_configure_manager
    creds = await self._test_authorization(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/meross_cloud/config_flow.py", line 383, in _test_authorization
    client = await MerossHttpClient.async_from_user_password(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/http_api.py", line 119, in async_from_user_password
    creds = await cls.async_login(email=email,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/http_api.py", line 280, in async_login
    mfa_lock_expire=response_data["mfaLockExpire"],
                    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'mfaLockExpire'
Axsgranted commented 4 months ago

I can't either on the website and the integration has gone down. The service availability page shows everything is fine... and yet.

I actually have several cloud dependent services down right now. I did a search for AWS outage and there are indicators that something is going on right now. #useAzureinstead

Agosh13 commented 4 months ago

Same issue..

DRSchlaubi commented 4 months ago

Worked for me today, maybe meross reverted whatever caused this?

robsonma1984 commented 4 months ago

Yes I can confirm this is now fixed.