Can not delete integration

I have the Meross integration (switches). Yesterday night it started showing double entities none of them was working (all grayed in entities card).
This morning I tried to reinstall them but I could not. I am trying to remove the integration. I remove it from HACS, and tried to delete the integration, but I could not. I then delete it from custom components, but again I can not remove the integration. Searching the forum I saw that my next step (?) is to delete it from .storage/cor config. entities & device files. but I am not sure how to do it and if should search and somewhere else. I have a copy of these files in desktop.

I have the following for example but I am not sure what to delete
Should I begin at

 [
                        "meross_cloud",
                        "1811264836268229086734298f1862d0"

until

    "key": "core.device_registry",
    "version": 1
                "manufacturer": "Xiaomi",
                "model": "Redmi Note 8",
                "name": "Redmi Margarita",
                "name_by_user": null,
                "sw_version": "28",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "9e393a00d64f49b1a226ee7cb39e6986",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1811264836268229086734298f1862d0"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss520h 2.0.0",
                "name": "Balcony",
                "name_by_user": null,
                "sw_version": "2.1.2",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "80cbff7be7ff4829b9b2ff6071af46da",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1811269316494129086734298f1861d1"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss520h 2.0.0",
                "name": "book and door",
                "name_by_user": null,
                "sw_version": "2.1.2",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "bdfe4fb162e34094b1c3d8c3194fa0dd",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1812013756539529087334298f18976e"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss510h 2.0.0",
                "name": "trapezaria",
                "name_by_user": null,
                "sw_version": "2.1.7",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "ab6f49663ece4688916e64f71a69af1b",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1811262418516429086734298f185fa8"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss520h 2.0.0",
                "name": "kitchen main",
                "name_by_user": null,
                "sw_version": "2.1.2",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "642c3bc94abc462a92571ad6f95376fe",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1812019709838229087334298f1895fb"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss510h 2.0.0",
                "name": "book",
                "name_by_user": null,
                "sw_version": "2.1.7",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "aa622d5882cc4643a13b0fd4b05b0138",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1812016823740829087334298f18972e"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss510h 2.0.0",
                "name": "kid balcony",
                "name_by_user": null,
                "sw_version": "2.1.7",
                "via_device_id": null
            },
            {
                "area_id": null,
                "config_entries": [
                    "f0fd987f31da43eda26234b82e6ba13b"
                ],
                "connections": [],
                "id": "616c7eba522640e8bd0f215ccaffe62d",
                "identifiers": [
                    [
                        "meross_cloud",
                        "1812011610829529087334298f1896a5"
                    ]
                ],
                "manufacturer": "Meross",
                "model": "mss510h 2.0.0",
                "name": "Bedroom balcony",
                "name_by_user": null,
                "sw_version": "2.1.7",
                "via_device_id": null
            }
        ]
    },
    "key": "core.device_registry",
    "version": 1
}

Try this:

Install the integration from HACS again.
Then remove the integration from the integrations menu.

I re-install it from HACS but I can’t delete the integration.

When you try to remove it, what error comes up in the log?

Sorry, I am very confused.
the logs says

Configuration validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid
Configuration invalid
Component error: meross_cloud - Integration 'meross_cloud' not found.

I have manually deleted it from custom_components.
HA start but I can not delete the integration, and I get the above message (at this time I can not restart HA) = step 1

When I stop HA and add the merros custom component, HA don’t start
When I delete the custom component HA is opening and I am again in step 1

I tried to restore = problem remains

Right now all I need to re install HA but I don’t know how because it is in a nuc with ubuntu

Right you can’t remove it because the python file to handle removing the integration is missing because you deleted it from custom_components.

If you are comfortable you can check the file in .storage called core.config_entries find the meross_cloud entry and remove it.

As for reinstalling, you could try moving the .storage folder to another name ie: .storage.bak while HA is stopped and then start it up. You’ll go thru the onboarding again.

2 Likes

I tried this, but again HA won’t start.


| |  | |                          /\           (_)   | |            | |
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_
|  __  |/ _ \| '_ ` _ \ / _ \   / /\ \ / __/ __| / __| __/ _` | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|


Our command line:
$ ha help

~ $ ha core logs
2020-05-04 21:17:42 WARNING (MainThread) [homeassistant.helpers.entity] Update o                             f switch.kid_balcony is taking over 10 seconds
2020-05-04 21:17:42 ERROR (SyncWorker_0) [custom_components.meross_cloud.switch]                              Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: kid balcony
        UUID: 1812016823740829087334298f18972e
        Type: mss510h
        HW Version: 2.0.0
        FW Version: 2.1.7
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                             ugs.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_pl                             ugs.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, payloa                             d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                              301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                              %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                             imeout occurred while waiting for the ACK: 10
2020-05-04 21:17:52 WARNING (MainThread) [homeassistant.helpers.entity] Update o                             f switch.trapezaria is taking over 10 seconds
2020-05-04 21:17:52 ERROR (SyncWorker_7) [custom_components.meross_cloud.switch]                              Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: trapezaria
        UUID: 1812013756539529087334298f18976e
        Type: mss510h
        HW Version: 2.0.0
        FW Version: 2.1.7
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                             ugs.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_pl                             ugs.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, payloa                             d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                              301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                              %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                             imeout occurred while waiting for the ACK: 10
2020-05-04 21:18:02 WARNING (MainThread) [homeassistant.helpers.entity] Update o                             f switch.kitchen_main_main_switch is taking over 10 seconds
2020-05-04 21:18:02 ERROR (SyncWorker_13) [custom_components.meross_cloud.switch                             ] Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: kitchen main
        UUID: 1811262418516429086734298f185fa8
        Type: mss520h
        HW Version: 2.0.0
        FW Version: 2.1.2
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                             ugs.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_pl                             ugs.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, payloa                             d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                              301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                              %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                             imeout occurred while waiting for the ACK: 10
2020-05-04 21:18:12 WARNING (MainThread) [homeassistant.helpers.entity] Update o                             f switch.kitchen_main_kitchen_spot is taking over 10 seconds
2020-05-04 21:18:12 ERROR (SyncWorker_1) [custom_components.meross_cloud.switch]                              Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: kitchen main
        UUID: 1811262418516429086734298f185fa8
        Type: mss520h
        HW Version: 2.0.0
        FW Version: 2.1.2
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                             ugs.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_pl                             ugs.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, payloa                             d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                              301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                              %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                             imeout occurred while waiting for the ACK: 10

Any ideas?

remove meross_cloud

I don’t believe it. I reinstalled HA. I was missing so many devices and tabs… etc
I tried to add the meross from scratch. I restarted ha, and is stuck!

Our command line:
$ ha help

~ $ ha core logs
raise CommandTimeoutException("A timeout occurred while waiting for the ACK: %d"                           % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                          imeout occurred while waiting for the ACK: 10
2020-05-04 22:19:22 ERROR (SyncWorker_15) [custom_components.meross_cloud.switch                          ] Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: Book
        UUID: 1812019709838229087334298f1895fb
        Type: mss510h
        HW Version: 2.0.0
        FW Version: 2.1.7
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                          ugs.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_pl                          ugs.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, payloa                          d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                           301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                           %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                          imeout occurred while waiting for the ACK: 10
2020-05-04 22:19:32 ERROR (SyncWorker_10) [custom_components.meross_cloud.switch                          ] Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: kid balcony
        UUID: 1812016823740829087334298f18972e
        Type: mss510h
        HW Version: 2.0.0
        FW Version: 2.1.7
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                          ugs.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_pl                          ugs.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, payloa                          d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                           301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                           %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                          imeout occurred while waiting for the ACK: 10
2020-05-04 22:19:42 WARNING (MainThread) [homeassistant.helpers.entity] Update o                          f switch.trapezaria is taking over 10 seconds
2020-05-04 22:19:42 ERROR (SyncWorker_18) [custom_components.meross_cloud.switch                          ] Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: trapezaria
        UUID: 1812013756539529087334298f18976e
        Type: mss510h
        HW Version: 2.0.0
        FW Version: 2.1.7
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                          ugs.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_pl                          ugs.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, payloa                          d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                           301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                           %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                          imeout occurred while waiting for the ACK: 10
2020-05-04 22:19:52 WARNING (MainThread) [homeassistant.helpers.entity] Update o                          f switch.kitchen_main_main_switch is taking over 10 seconds
2020-05-04 22:19:52 ERROR (SyncWorker_8) [custom_components.meross_cloud.switch]                           Error occurred.
-------------------------------------
Component version: 0.3.4.4-3
Device info:
        Name: kitchen main
        UUID: 1811262418516429086734298f185fa8
        Type: mss520h
        HW Version: 2.0.0
        FW Version: 2.1.2
Error Message: "An exception occurred"
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/switch.py", line 44, in update
    self._device.get_status(force_status_refresh=True)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/devices/power_pl                          ugs.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_pl                          ugs.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, payloa                          d, callback=callback, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/meross_iot/cloud/client.py", line                           301, in execute_cmd
    raise CommandTimeoutException("A timeout occurred while waiting for the ACK:                           %d" % timeout)
meross_iot.cloud.exceptions.CommandTimeoutException.CommandTimeoutException: A t                          imeout occurred while waiting for the ACK: 10
~ $

Report the issue to the custom component creator’s github.

I got similar message. Got resolved by pycache and I also had to add little bit more memory to the VM. I initially only had 1024 MB. But then I added more Doubled to 2048 MB the message gone on the Front end as well the errors.