meross-homeassistant: Meross component becomes unresponsive after losing and restoring Internet connection (20200419.2)

Since I’m frequently losing internet connection, I realized that my meross devices becomes unreponsive in HA with the latest version…

Latest release 20200419.2

Home Assistant: 0.108.6 with Supervisor 217 HassOS 3.13 Devices: mss510 1.0.0 / firmware 1.1.15 (1) mss110 1.0.0 / firmware 1.1.28 (2)

Here the log after 10 minutes with Internet connection restored :

2020-04-21 12:42:12 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

2020-04-21 12:44:12 WARNING (Thread-5) [pychromecast.socket_client] [Chromecast:8009] Heartbeat timeout, resetting connection

2020-04-21 12:44:15 ERROR (SyncWorker_2) [custom_components.meross_cloud.common] Component version: 0.3.4.3-2, Message: "A command timeout occurred while handling cloud_io function."
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/common.py", line 83, in func_wrapper
    return func(*args, **kwargs)
  File "/config/custom_components/meross_cloud/switch.py", line 101, in turn_on
    self._device.turn_on_channel(self._channel_id)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 160, in turn_on_channel
    return self._channel_control_impl(c, 1, callback=callback)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 30, in _channel_control_impl
    return self._togglex(channel, status, callback=callback)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 24, in _togglex
    return self.execute_command("SET", TOGGLEX, payload, callback=callback)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 116, in execute_command
    return self.__cloud_client.execute_cmd(self.uuid, command, namespace, payload, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line 294, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK: %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A timeout occurred while waiting for the ACK: 10

2020-04-21 12:44:40 WARNING (Thread-2) [meross.connection] Client has been disconnected, however auto_reconnect flag is set. Won't stop the looping thread, as it will retry to connect.

2020-04-21 12:44:40 WARNING (Thread-2) [meross.connection] Client has been disconnected, however auto_reconnect flag is set. Won't stop the looping thread, as it will retry to connect.

2020-04-21 12:44:42 ERROR (Thread-5) [pychromecast.socket_client] [Chromecast:8009] Failed to connect to service Chromecast-xxxxxxxxxxxxxxx._googlecast._tcp.local., retrying in 5.0s

2020-04-21 12:55:09 ERROR (MainThread) [homeassistant.components.system_log.external] manual log

Regards, Mathieu

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (1 by maintainers)

Most upvoted comments

The author already said he’s working on a complete rewrite of the library and this component (https://github.com/albertogeniola/MerossIot/issues/97#issuecomment-626038232) Please be patient 🙂

I suggest a more accurate title since the issue seems to also happen with stable internet connection.

I must also add that this issue completely breaks my installation to the point where it won’t boot, not even in safe mode when the custom component is loaded.

I’m available for any testing.