meross-homeassistant: Version v1.2.10 does not support MFA

After installing v1.2.10 when i try to set up the component, it show me “An unexpected error occurred”. I tired to reinstall it removing meross_cloud folder from custom_components but nothing happened. Then I switched back to v1.2.8 and it worked.

Home Assistant 2023.10.3 Supervisor 2023.10.0 Operating System 11.0 Frontend 20231005.0 Hardware environment: Raspberry Pi 4

LOG:

Error Message: "An exception occurred while setting up the meross manager. Setup will be retried..."
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 350, in _async_authenticated_post
    error = ErrorCodes(code)
            ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1128, in __new__
    raise ve_exc
ValueError: 1033 is not a valid ErrorCodes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/__init__.py", line 470, in async_setup_entry
    await meross_coordinator.initial_setup()
  File "/config/custom_components/meross_cloud/__init__.py", line 150, in initial_setup
    self._client, http_devices, creds_renewed = await get_or_renew_creds(
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/meross_cloud/__init__.py", line 340, in get_or_renew_creds
    http_client = await MerossHttpClient.async_from_user_password(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 117, in async_from_user_password
    creds = await cls.async_login(email=email,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 246, in async_login
    response_data = await MerossHttpClient._async_authenticated_post(url=url,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/meross_iot/http_api.py", line 352, in _async_authenticated_post
    raise AuthenticatedPostException(f"Unknown/Unhandled response code received from API. "
meross_iot.model.http.exception.AuthenticatedPostException: Unknown/Unhandled response code received from API. Response was: {'apiStatus': 1033, 'sysStatus': 0, 'info': '', 'timestamp': 1697888019, 'data': {}}

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Error 1033 stands for “MFA is required”. That means you have enabled multi-factor authentication and that is not yet supported by the current version. You should either downgrade to previous version (which relied on a different API endpoint) or wait for a new release.

I just tried to skip MQTT validation and it seems to work (it asked 2FA code and everything is working)

Error 1033 stands for “MFA is required”. That means you have enabled multi-factor authentication and that is not yet supported by the current version. You should either downgrade to previous version (which relied on a different API endpoint) or wait for a new release.

Yes, I confirm that I have 2FA enabled on Meross account. Thanks for your reply.