albertogeniola / meross-homeassistant

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

[DEV Testers] Volunteers for new releases tests #67

Closed albertogeniola closed 4 years ago

albertogeniola commented 4 years ago

Hi all, I need someone to test this new development release. Install it manually by unpacking it within your /config/custom_components folder.

meross_cloud-DEV-0.3.4.1-1.zip

When reporting back you results, please mention:

Also, please reboot hassio after the custom component installation. Some users have reported that the component crashes after a reboot.

webs86 commented 4 years ago

@albertogeniola For me this version work. With latest Home Assistant update devices had stopped working. I have 2 power plug mss310r 2.0.0 with Firmware 2.1.4 Home Assistant 0.108.5 My Home Assistant environment is Raspberry PI 4 4gb RAM with raspbian and home assistant on docker

albertogeniola commented 4 years ago

@webs86 : I'm a bit confused. You mean that with "official" latest component relase (20200413.1) devices stopped working while with the one I attached on this thread (meross_cloud-DEV-0.3.4.1-1) everything works, right?

webs86 commented 4 years ago

Hi @albertogeniola, with 0.108.5 release 20200413.1 version stopped working (entities are present in HA but no action working). I tried to restart power plugs and HA but this not resolved issue.

With this dev version seems working with 0.108.5 HA version

albertogeniola commented 4 years ago

Nice, that's good news. Let's wait for someone else to confirm that the dev version works. Thanks!

override80 commented 4 years ago

Hi @albertogeniola , i have 8 mss310, HA 0.108.5. I still see this in logs: 2020-04-17 09:31:07 ERROR (SyncWorker_3) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update self._device.get_status(force_status_refresh=True) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status self._state = self._get_status_impl() File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl data = self.get_sys_data()['all'] File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data return self.execute_command("GET", ALL, {}, online_check=False) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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

meross_info_gather returns the same

pavel-vrba1 commented 4 years ago

Hi, I have tested meross_cloud-DEV-0.3.4.1-1.zip on HA version 0.108.4 with these results: 1) Meross Smart plug mss620 works OK (it worked with previous version as well) 2) Meross Temperature and Humidity sensor ms100 connected via Smart hub does not show in Hassio. It is the same as in previous version of merros cloud. It is this device: (https://www.meross.com/product/51/article/) I have reported this issue in a separate thread here and would appreciate if you can have a look on it. If needed for testing I could give you temporarily access to my Meross cloud :) hassio1 IMG_0604

albertogeniola commented 4 years ago

Hi @pavel-vrba1 ,

at the moment I don't have any meross humidity device to test. As soon as I receive one, I'll implement support for it.

@override80 : I think the only thing we can do now in your case is to debug within your sepcific environemnt. If you are willing to share your account, here's what we can do:

  1. You change your current meross account password
  2. Send a PM to me with the credentials
  3. I'll try to register your account on my env and see what's wrong (if anything).

Before that, I'd ask you to test using another internet connection, such as tethering with your mobile 4g. There might be some issue with your ISP...

mirkochip88 commented 4 years ago

Hassio 108.5 on Docker CE OpenMediaVault 4

UI not showing ups

020-04-17 10:28:35 ERROR (SyncWorker_10) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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
gianky69 commented 4 years ago

After installing DEV in HA 0.108.5 (Supervisor 217, HassOS 3.13) with 3 MSS425 and 2 MSS310, the HA UI not showing up and I get this errors in log, every 10 seconds:

2020-04-17 10:46:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartir 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-17 10:46:37 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-17 10:46:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs 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-17 10:46:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for shelly 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-17 10:46:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for enigma 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-17 10:46:49 WARNING (MainThread) [homeassistant.components.automation] The 'hide_entity' option (with value 'True') is deprecated, please remove it from your configuration. This option will become invalid in version 0.110
2020-04-17 10:46:49 WARNING (MainThread) [homeassistant.components.automation] The 'hide_entity' option (with value 'True') is deprecated, please remove it from your configuration. This option will become invalid in version 0.110
2020-04-17 10:46:49 WARNING (MainThread) [homeassistant.components.automation] The 'hide_entity' option (with value 'True') is deprecated, please remove it from your configuration. This option will become invalid in version 0.110
2020-04-17 10:47:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_salotto_main_switch is taking over 10 seconds
2020-04-17 10:47:07 ERROR (SyncWorker_10) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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
pavel-vrba1 commented 4 years ago

Hi Alberto,

no problem with sharing my merros cloud password, my email is pavel.vrba1@gmail.com. Regarding changing the internet connection - do you mean reconnecting Merros smart hub to a Wi-Fi hotspot created on my mobile or reconnecting Homeassistant device (I have Odroid XU4) to a hotspot (or both)? thanks, Pavel

Fulch commented 4 years ago

2 x mss310: Firmware 2.1.14: Hardware 2.0.0: HA 0.107.7: Dev 0.3.4.1-1: Running on i5.NUC.

Both switches and sensors discovered and working. This is the first release that has functioned for me in quite some time, I'm looking forward to using and testing!

override80 commented 4 years ago

Hi @albertogeniola , no problem for me - can you please add me to LinkedIn? Otherwise https://t.me/override_80

albertogeniola commented 4 years ago

@Hi @pavel-vrba1 I mean connecting the homeassistant device to a different network/hotspot to check if the problem is somehow related to the particular ISP. I'll drop you an email as soon as I have some time to dedicate to the debugging.

@override80 : I've added you on linkedin.

@Fulch : can you reoob the Homeassistant/hassio device at test if the component boots correctly?

gianky69 commented 4 years ago

I'm creating a new installation of latest HA, when it'll go up I'll test the DEV. On my "production" raspi I get the starting loop 10 seconds error...

pavel-vrba1 commented 4 years ago

@albertogeniola My homeassistant is running on Odroid XU4, which unfortunatelly does not have Wi-Fi, only Ethernet so I will not be able to test it. Just drop me an email once you have time and let's see if you can debug it somehow remotely with my Merros cloud login :) Many thanks.

mattiabaca commented 4 years ago

I have installed it on HA 108.4, HassOS 3.12, running on a Raspberry PI 3b+. I have 2 mss310 and one mss425e, and all switches and sensors have been discovered and are working, also after system reboot

gianky69 commented 4 years ago

OK, new HA machine created. It's running HA 0.108.5, supervisor 217, HassOS 3.13, on Raspberry Pi3 B+, 3 MSS425 and 2 MSS310. Only HA and Samba plugin, installed DEV Meross-cloud-IoT, the problem is the same... This is the log:

2020-04-17 15:09:05 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-17 15:12:02 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform meross_cloud is taking over 10 seconds.
2020-04-17 15:12:03 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up meross_cloud platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/meross_cloud/sensor.py", line 176, in async_setup_entry
    sensor_entities = await hass.async_add_executor_job(sync_logic)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/meross_cloud/sensor.py", line 164, in sync_logic
    elif plug.type.startswith("mss310") or plug.supports_consumption_reading():
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 154, in supports_consumption_reading
    return CONSUMPTIONX in self.get_abilities()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 126, in get_abilities
    self._abilities = self.execute_command("GET", ABILITY, {})['ability']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.bagnokreuth is taking over 10 seconds
2020-04-17 15:12:07 ERROR (SyncWorker_3) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.cucinakreuth is taking over 10 seconds
2020-04-17 15:12:17 ERROR (SyncWorker_0) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:27 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_main_switch is taking over 10 seconds
2020-04-17 15:12:27 ERROR (SyncWorker_9) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_switch_1 is taking over 10 seconds
2020-04-17 15:12:37 ERROR (SyncWorker_19) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_switch_2 is taking over 10 seconds
2020-04-17 15:12:47 ERROR (SyncWorker_7) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:12:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_modem is taking over 10 seconds
2020-04-17 15:12:57 ERROR (SyncWorker_4) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:13:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_usb_kreuth is taking over 10 seconds
2020-04-17 15:13:07 ERROR (SyncWorker_17) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:13:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.bagnokreuth is taking over 10 seconds
2020-04-17 15:13:21 ERROR (SyncWorker_13) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:13:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.cucinakreuth is taking over 10 seconds
2020-04-17 15:13:31 ERROR (SyncWorker_15) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-17 15:13:41 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_kreuth_main_switch is taking over 10 seconds
2020-04-17 15:13:41 ERROR (SyncWorker_5) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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
gianky69 commented 4 years ago

You can find me on Telegram https://t.me/medioman. I speak italian ;-)

Fulch commented 4 years ago

Rebooted Home Assistant(Docker/Ubuntu) 2 times and all was ok until the 3rd reboot failed with this log.

2020-04-17 14:07:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.meross_bedroom_plug is taking over 10 seconds 2020-04-17 14:07:09 ERROR (SyncWorker_17) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update self._device.get_status(force_status_refresh=True) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status self._state = self._get_status_impl() File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl data = self.get_sys_data()['all'] File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data return self.execute_command("GET", ALL, {}, online_check=False) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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

scott-crs commented 4 years ago

No resolution for me on the new build, nothing in the logs either. Updated to latest supervisor and homeassistant to see if that resolved.

Dashboard fails to load until the component is removed.

~ $ ha info arch: armv7 channel: stable hassos: "3.13" homeassistant: 0.108.5 hostname: hassio logging: info machine: raspberrypi2 supervisor: "217" supported_arch:

2020-04-17 09:51:40 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-17 09:52:02 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds. 2020-04-17 09:52:02 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds. 2020-04-17 09:52:03 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds. 2020-04-17 09:52:07 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.

Scialla commented 4 years ago

Before this, all working for me but log returned error in cover.py, in HA 0.108.4 Whit your DEV version all works and no error in log

upgraded HA to 0.108.6, all works and no error in log

i've only one meross multi switch

thanks

albertogeniola commented 4 years ago

Hi guys,

I've been working hard on a new dev-release which should fix many errors in the code. Please try this one and report if that's working or not.

Form now on, you can also use HACS to install the new DEV versions without manually messing up with folders. Simply enable "Show beta". This release is the 20200418.4.

mirkochip88 commented 4 years ago

Same result for me. Ui not loading. Same ack error.

020-04-18 18:23:11 ERROR (SyncWorker_12) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.2-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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 134, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 88, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 119, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  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-18 18:23:11 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_multimediale_usb is taking over 10 seconds
gianky69 commented 4 years ago

I confirm, UI not loading in my test installation HA (Raspi 3B+, 0.108.5), with latest today DEV "beta" This is log (via Samba):

2020-04-18 18:30:04 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-18 18:30:26 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform meross_cloud is taking over 10 seconds.
2020-04-18 18:30:26 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up meross_cloud platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/meross_cloud/sensor.py", line 177, in async_setup_entry
    sensor_entities = await hass.async_add_executor_job(sync_logic)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/meross_cloud/sensor.py", line 165, in sync_logic
    elif plug.type.startswith("mss310") or plug.supports_consumption_reading():
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 154, in supports_consumption_reading
    return CONSUMPTIONX in self.get_abilities()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 126, in get_abilities
    self._abilities = self.execute_command("GET", ABILITY, {})['ability']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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-18 18:30:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.ciabatta_salotto_main_switch is taking over 10 seconds
2020-04-18 18:30:26 ERROR (SyncWorker_15) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.2-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 37, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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
Fulch commented 4 years ago

2 x mss310: Firmware 2.1.14: Hardware 2.0.0: HA 0.107.7: 20200418.4: Installed with HACS, Running on i5.NUC. (Docker/Ubuntu)

Installed OK, survived 3 reboots then failed on the 4th. Same error as other reports. CommandTimeoutException: A timeout occurred while waiting for the ACK: 10 Front end unresponsive needs a docker restart to reboot.

albertogeniola commented 4 years ago

Ok guys, please install the 20200418.5 and make sure to reboot the system. For some reason HACS does not update the dependencies (or at least I was having huge problems until I've manually removed the meross_cloud folder and reinstalled again).

I wait for your results and logs.

override80 commented 4 years ago

Unfortunately it still does not work :( could it be the number of devices since I have 8 of them?

2020-04-18 19:22:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.meross7 is taking over 10 seconds 2020-04-18 19:22:21 ERROR (SyncWorker_7) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.2-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 37, in update self._device.get_status(force_status_refresh=True) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status self._state = self._get_status_impl() File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl data = self.get_sys_data()['all'] File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data return self.execute_command("GET", ALL, {}, online_check=False) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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

gianky69 commented 4 years ago

UI not loading in my test installation HA (Raspi 3B+, 0.108.5) also with latest 20200418.5

2020-04-18 19:55:33 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-18 19:56:06 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform meross_cloud is taking over 10 seconds.
2020-04-18 19:56:06 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up meross_cloud platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/meross_cloud/sensor.py", line 177, in async_setup_entry
    sensor_entities = await hass.async_add_executor_job(sync_logic)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/meross_cloud/sensor.py", line 165, in sync_logic
    elif plug.type.startswith("mss310") or plug.supports_consumption_reading():
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 152, in supports_consumption_reading
    return CONSUMPTIONX in self.get_abilities()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 124, in get_abilities
    self._abilities = self.execute_command("GET", ABILITY, {})['ability']
  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-18 19:56:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.bagnokreuth is taking over 10 seconds
2020-04-18 19:56:12 ERROR (SyncWorker_0) [custom_components.meross_cloud.common] Component version: DEV-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 37, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 134, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 88, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 119, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  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
mirkochip88 commented 4 years ago

Same result...

Fulch commented 4 years ago

2 x mss310: Firmware 2.1.14: Hardware 2.0.0: HA 0.107.7: 20200418.5: Installed with HACS, Running on i5.NUC. (Docker/Ubuntu)

Sorry but no change in behaviour vs 20200418.4.

Installed OK, survived 2 reboots then failed on the 3rd. Same error as other reports. CommandTimeoutException: A timeout occurred while waiting for the ACK: 10 Front end unresponsive needs a docker restart to reboot.

gianky69 commented 4 years ago

Just an idea: Why not testing only a switch app without climate, garage cover, temp, ecc.?

mattiabaca commented 4 years ago

Installed the latest version 20200418.5 on Raspberry PI 3B+, HA 108.4, HassOS 3.12, and it works well also after 3 reboots. I have 2 mss310 and one mss425e. No errors in the log

CestLaGalere commented 4 years ago

RPi 4: downloaded & copied meross_cloud-DEV-0.3.4.1-1.zip as instructed & restarted - R Pi completely unresponsive - any way to avoid rebuilding? have 2xmss710 which were not working previously so installed to see if this helped.

I can connect through samba and - log has: 2020-04-19 23:37:20 ERROR (SyncWorker_5) [custom_components.meross_cloud.common] Component version: DEV-0.3.4.1-1, 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 35, in update def update(self): File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 139, in get_status self._state = self._get_status_impl() File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 93, in _get_status_impl data = self.get_sys_data()['all'] File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 121, in get_sys_data return self.execute_command("GET", ALL, {}, online_check=False) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 118, 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

scott-crs commented 4 years ago

Latest build worked for me. 2 plugs connected and operational through 4+ restarts v0.108.5 hassio in docker rpi4. Thank you!

Ok guys, please install the 20200418.5 and make sure to reboot the system. For some reason HACS does not update the dependencies (or at least I was having huge problems until I've manually removed the meross_cloud folder and reinstalled again).

I wait for your results and logs.

albertogeniola commented 4 years ago

Hi Guys, after some investigation, I might be closer to the problem. It looks like the issue is somehow linked to Meross Devices with newer HW revision. For confirmation, I'd need you to report exactly which meross devices are you connecting and their Hardware/Firmware revision.

I suspect the problem is linked with MSS310 HW revision 2.0, but might be extended to other devices too. Please use the following example template:

ENVIRONEMNT: Raspberry PI 4
HA Version: XXX
HASSIO Version: XXX 
Devices:
  - 1x MSS310 [HW 2.0.0 FW 2.1.14]
  - 2x MSL120 [HW 1.0.0 FW 1.1.8]
Problem/stability: 
  UI unresponsible, Timeout error from logs

This will help me identifying the root cause of the problem. Thank you all

scott-crs commented 4 years ago

ENVIRONMENT: Raspberry Pi 4 HA Version: 0.108.5 HASSIO Version: 217 Devices:

Never mind, latest build 20200418.5 still causing lockup issues on multiple reboots.

2020-04-19 20:43:27 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross_cloud which has not been tested by H$ 2020-04-19 20:43:33 ERROR (SyncWorker_8) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND 2020-04-19 20:43:38 WARNING (SyncWorker_1) [custom_components.meross_cloud.sensor] The plug bedroom lamp is offline; it's impossible to determine $ 2020-04-19 20:44:35 ERROR (SyncWorker_16) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND 2020-04-19 20:44:39 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:re$ 2020-04-19 20:45:36 ERROR (SyncWorker_13) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND 2020-04-19 20:46:37 ERROR (SyncWorker_7) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND 2020-04-19 20:47:37 ERROR (SyncWorker_11) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND 2020-04-19 20:48:38 ERROR (SyncWorker_10) [homeassistant.components.command_line.sensor] Command failed: SENSOR_COMMAND

Fulch commented 4 years ago

ENVIRONMENT: i5 NUC (Docker/Ubuntu) Build 20200418.5 HA Version: 0.107.7 HASSIO Version: XXX Devices:

Works ok after reboot sometimes but not all the time. UI unresponsive, CommandTimeoutException: A timeout occurred while waiting for the ACK: 10

CestLaGalere commented 4 years ago

UI unresponsive, waiting fow the ack 10 as per post in github. I have the smart switch Mss710 hardware 3.0.0 Firmware 3.1.5

Chris

Sent from my mobile

On Mon, 20 Apr 2020, 00:53 Alberto Geniola, notifications@github.com wrote:

Hi Guys, after some investigation, I might be closer to the problem. It looks like the issue is somehow linked to Meross Devices with newer HW revision. For confirmation, I'd need you to report exactly which meross devices are you connecting and their Hardware/Firmware revision.

I suspect the problem is linked with MSS310 HW revision 2.0, but might be extended to other devices too. Please use the following example template:

ENVIRONEMNT: Raspberry PI 4HA Version: XXXHASSIO Version: XXX Devices:

  • 1x MSS310 [HW 2.0.0 FW 2.1.14]
  • 2x MSL120 [HW 1.0.0 FW 1.1.8]Problem/stability: UI unresponsible, Timeout error from logs

This will help me identifying the root cause of the problem. Thank you all

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/albertogeniola/meross-homeassistant/issues/67#issuecomment-616239070, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADU6BUGMXJTUGMFSXQYOX7LRNN6H5ANCNFSM4MKKGXRA .

gianky69 commented 4 years ago

ENVIRONEMNT: Raspberry PI 3 B+ HA Version: 0.108.6 HASSIO Version: 3.13 Devices:

aferraz commented 4 years ago

ENVIRONEMNT: Docker on Centos7 HA Version: 0.108.6 Devices: msh300 Last working version: 20200412.1

@albertogeniola with last version 20200419.2 I have this error: _ERROR (MainThread) [homeassistant.config] Invalid config for [meross_cloud]: expected int for dictionary value @ data['meross_cloud']['username']. Got 'EMAILADDRESS'. (See /config/configuration.yaml, line 55). Please check the docs at https://www.home-assistant.io/components/meross_cloud_

Thanks Alessandro

mirkochip88 commented 4 years ago

Version 20200419.2 working for me

ENVIRONEMNT: Intel Xeon HA Version: 0.108.6 HASSIO Version: 217 Device: mss425e 1.0.0 Firmware: 1.1.9

mattiabaca commented 4 years ago

I have no problem with 20200418.5 release and no problem with 20200419.2 release

ENVIRONEMNT: Raspberry PI 3B+
HA Version: 108.4
HASSIO Version: 3.12 (Supervisor 217)
Devices:
  - 2x MSS310 [HW 1.0.0 FW 1.1.18]
  - 1x MSS425E [HW 2.0.0 FW 2.1.3]
Problem/stability: 
  No problem with the latest 20200419.2 release

With the latest 20200419.2, the log shows this error, but the switches are still working.

2020-04-20 11:04:14 ERROR (SyncWorker_15) [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/sensor.py", line 30, in update self._device.get_status(force_status_refresh=self._device.online) File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 134, in get_status self._state = self._get_status_impl() File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 88, in _get_status_impl data = self.get_sys_data()['all'] File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 119, in get_sys_data return self.execute_command("GET", ALL, {}, online_check=False) 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

pavel-vrba1 commented 4 years ago

Hi, I have tested the latest release (20200419.2) with the following results - one merros outdoor plug works fine, the temperarute and humidity sensor is still not found.

ENVIRONMENT: Odroid XU4
HA Version: 0.108.4
HASSIO Version: N/A 
Devices:
  - 1x MSS620 [HW 3.0.0 FW 3.1.5]
  - 1x MSH300 [4.0.0 FW 4.1.20] - Smart hub
  - 1x MS100 [N/A as it does not show in hassio] - Temperature and humidity sensor
Problem/stability: 
No issues with stability, UI is showing up. Neither Smat hub nor temperature sensor found.
gianky69 commented 4 years ago

After some tests these are the results: 1st ENVIRONMENT: Raspberry PI 3 B+ ("Production" HA) HA Version: 0.108.6 HASSIO: Version: 3.13 Meross-homeassistant: 20200412.1 Devices: 2x MSS310 [HW 1.0.0 FW 1.1.18] 1x MSS425e [HW 2.0.0 FW 2.1.3] 3x MSS425e [HW 3.0.0 FW 3.1.2] Problem/stability: Working also after 5-6 restart/reboot but in log I always get:

2020-04-20 13:57:52 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry giancarlo.massari@gmail.com for cover
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/cover/__init__.py", line 148, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 154, in async_setup_entry
    platform_type,
  File "/usr/src/homeassistant/homeassistant/setup.py", line 244, in async_prepare_setup_platform
    platform = integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 277, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/meross_cloud/cover.py", line 18, in <module>
    class OpenGarageCover(CoverDevice):
  File "/config/custom_components/meross_cloud/cover.py", line 41, in OpenGarageCover
    @cloud_io()
NameError: name 'cloud_io' is not defined
2020-04-20 13:58:00 WARNING (SyncWorker_6) [custom_components.meross_cloud.sensor] The plug Tavolino2 is offline; it's impossible to determine if it supports any ability
2020-04-20 13:58:03 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform meross_cloud is taking over 10 seconds.
2020-04-20 13:58:06 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 
2020-04-20 13:58:10 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform meross_cloud is taking over 10 seconds.
2020-04-20 13:58:11 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up meross_cloud platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/meross_cloud/sensor.py", line 172, in async_setup_entry
    sensor_entities = await hass.async_add_executor_job(sync_logic)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/meross_cloud/sensor.py", line 160, in sync_logic
    elif plug.type.startswith("mss310") or plug.supports_consumption_reading():
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 179, in supports_consumption_reading
    return CONSUMPTIONX in self.get_abilities()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 151, in get_abilities
    self._abilities = self.execute_command("GET", ABILITY, {})['ability']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 143, 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 321, 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-20 13:58:16 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 
2020-04-20 13:58:26 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 
2020-04-20 13:58:36 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 
2020-04-20 13:58:46 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 
2020-04-20 13:58:53 ERROR (MainThread) [homeassistant.components.switch] Setup of platform meross_cloud is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2020-04-20 13:58:56 WARNING (SyncWorker_15) [custom_components.meross_cloud.common] 

2ndENVIRONMENT: Raspberry PI 3 B+ ("Dev-Test" HA), pure only with Samba, File Editor and HACS HA Version: 0.108.6 HASSIO: Version: 3.13 Meross-homeassistant: 20200419.2 Devices: 2x MSS310 [HW 1.0.0 FW 1.1.18] 1x MSS425e [HW 2.0.0 FW 2.1.3] 3x MSS425e [HW 3.0.0 FW 3.1.2] Problem/stability: UI unresponsible, Timeout error from logs (ACK: 10).

Last try on 1st ENVIRONMENT: Raspberry PI 3 B+ ("production" HA) HA Version: 0.108.6 HASSIO: Version: 3.13 Meross-homeassistant: 20200419.2 Devices: 2x MSS310 [HW 1.0.0 FW 1.1.18] 1x MSS425e [HW 2.0.0 FW 2.1.3] 3x MSS425e [HW 3.0.0 FW 3.1.2] Problem/stability: UI unresponsible, Timeout error from logs (ACK: 10), as Dev-Test Raspi

Florian-Schmidt commented 4 years ago

Hi all,

as newbie I hope my comment is formatted correctly, if not just let me know to learn for the future.

ENVIRONMENT: Raspberry PI 4 HA Version: 0.180.6 HASSIO: - HA Running in docker Devices:

IMG_4528

This issues is connected to:

63

Calling homeassistant.update_entity service manually or by automation is a workaround and sets cover state back to open/closed.

gianky69 commented 4 years ago

If it could help, last year I talk to Carlo Satta (https://github.com/carlosatta/hassio-addons) because his "addon" had the same trouble about MSS310 v1 e v2. He worked about it and we made some tests, but iI think he left the project. It was all about toggle and togglex...

Florian-Schmidt commented 4 years ago

@gianky69 Did you respond to mine comment?

mirkochip88 commented 4 years ago

Don't work anymore...

ENVIRONEMNT: Intel Xeon HA Version: 0.108.8 HASSIO supervisor Version: 219 Device: mss425e 1.0.0 Firmware: 1.1.9

Logger: custom_components.meross_cloud.common
Source: custom_components/meross_cloud/switch.py:35
First occurred: 19:00:03 (11 occurrences)
Last logged: 19:01:44

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 35, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 134, in get_status
    self._state = self._get_status_impl()
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_plugs.py", line 88, in _get_status_impl
    data = self.get_sys_data()['all']
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/device.py", line 119, in get_sys_data
    return self.execute_command("GET", ALL, {}, online_check=False)
  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
albertogeniola commented 4 years ago

Hi guys, some changes in the latest BETA 20200424.1 release. Could you please test it and report if that works better?

Fulch commented 4 years ago

Latest beta produces following error for my setup.

2020-04-24 00:29:37 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up meross_cloud platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 447, in _async_add_entity await entity.async_update_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 352, in _async_write_ha_state assumed_state = self.assumed_state File "/config/custom_components/meross_cloud/sensor.py", line 58, in assumed_state return not self._first_update_done AttributeError: 'PowerSensorWrapper' object has no attribute '_first_update_done'