albertogeniola / meross-homeassistant

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

Integration stop working #184

Closed galamarco closed 3 years ago

galamarco commented 3 years ago

Hello, after install 4 new meross devices, all Meross devices configured in Home Assistant stop working.

Yesterday I installed 4 new meross shutter switch MRS100, aftwer this some automation stop working than I reboot and I discover that integration with Meross devices stop working. I tried rebooting several times, last night, this morning, today, and a little while ago. Nothing changes.

I believe these unsupported devices cause flurries of requests exceeding the allowable limit. Since (unfortunately) the switches for the shutters are not supported (even if they behave like a socket with "on" and "off") is there any way to restore the situation or exclude unsupported devices so that others can work again?

Your environment HomeAssistant version: 2020.12.1 Hassio Version (if applicable): Home Assistant OS 5.8 versione 2020.12.7 Hardware environment: Raspberry Pi 4 Model B

Alt text

Log

Config entry for meross_cloud not ready yet. Retrying in 40 seconds
14:54:22 – config_entries.py (WARNING) - il messaggio si è verificato per la prima volta alle 11:13:13 e compare 330 volte
Logger: homeassistant.config_entries
Source: config_entries.py:247
First occurred: 11:13:13 (330 occurrences)
Last logged: 14:54:22

Config entry for meross_cloud not ready yet. Retrying in 40 seconds
Config entry for onvif not ready yet. Retrying in 20 seconds
Config entry for onvif not ready yet. Retrying in 40 seconds
Config entry for meross_cloud not ready yet. Retrying in 80 seconds
Config entry for onvif not ready yet. Retrying in 80 seconds
The current API rate exceeds the overquota limit (1000.000000 %). The call will be dropped.
14:53:54 – /usr/local/lib/python3.8/site-packages/meross_iot/manager.py (ERROR) - il messaggio si è verificato per la prima volta alle 11:13:13 e compare 670 volte
Logger: meross_iot.manager
Source: /usr/local/lib/python3.8/site-packages/meross_iot/manager.py:607
First occurred: 11:13:13 (670 occurrences)
Last logged: 14:53:54

The current API rate exceeds the overquota limit (1000.000000 %). The call will be dropped.
Error occurred. ------------------------------------- Component version: 0.4.1.0rc7 Device info: <Unavailable> Error Message: "An exception occurred while setting up the meross manager. Setup will be retried..."
14:53:53 – Meross Cloud IoT (ERROR) - il messaggio si è verificato per la prima volta alle 11:13:13 e compare 168 volte
Logger: custom_components.meross_cloud
Source: custom_components/meross_cloud/__init__.py:140
Integration: Meross Cloud IoT (documentation)
First occurred: 11:13:13 (168 occurrences)
Last logged: 14:53:53

Error occurred. ------------------------------------- Component version: 0.4.1.0rc7 Device info: <Unavailable> Error Message: "An exception occurred while setting up the meross manager. Setup will be retried..."
Traceback (most recent call last):
  File "/config/custom_components/meross_cloud/__init__.py", line 140, in async_setup_entry
    await manager.async_device_discovery()
  File "/usr/local/lib/python3.8/site-packages/meross_iot/manager.py", line 262, in async_device_discovery
    enrolled_devices = await asyncio.gather(*tasks, loop=self._loop)
  File "/usr/local/lib/python3.8/site-packages/meross_iot/manager.py", line 316, in _async_enroll_new_http_dev
    res_abilities = await self.async_execute_cmd(destination_device_uuid=device_info.uuid,
  File "/usr/local/lib/python3.8/site-packages/meross_iot/manager.py", line 609, in async_execute_cmd
    raise RateLimitExceeded()
meross_iot.model.exception.RateLimitExceeded
=============================== Meross Cloud Custom component Developed by Alberto Geniola Low level library version: 0.4.1.0rc7 ------------------------------- This custom component is under development and not yet ready for production use. In case of errors/misbehave, please report it here: https://github.com/albertogeniola/meross-homeassistant/issues If you like this extension and you want to support it, please consider donating. ------------------------------- List of devices reported by HTTP API: - Tapparella fornello (mrs100) - OnlineStatus.ONLINE - Tapparella salotto (mrs100) - OnlineStatus.ONLINE - Tapparella cucina (mrs100) - OnlineStatus.ONLINE - Tapparella camera da letto (mrs100) - OnlineStatus.ONLINE - ciabatta tv secondaria (mss425f) - OnlineStatus.ONLINE - Specchio bagno (mss710) - OnlineStatus.ONLINE - misuratore fornelli (mss310h) - OnlineStatus.ONLINE - ex Fornello (mss425e) - OnlineStatus.OFFLINE - stireria (mss310) - OnlineStatus.ONLINE - misuratore smartphone (mss310) - OnlineStatus.ONLINE - Misuratore computer (mss310) - OnlineStatus.ONLINE - palestra (mss310h) - OnlineStatus.ONLINE - misuratore cucina (mss310) - OnlineStatus.ONLINE - ciabatta cucina (mss425f) - OnlineStatus.ONLINE - misuratore tv (mss310) - OnlineStatus.ONLINE - lavatrice (mss310) - OnlineStatus.ONLINE - aria (mss310h) - OnlineStatus.ONLINE - boiler (mss310h) - OnlineStatus.ONLINE - Ciabatta cose (mss425f) - OnlineStatus.ONLINE - ciabatta PC corridoio (mss425f) - OnlineStatus.ONLINE - Termocoperta Marco (mss310h) - OnlineStatus.ONLINE - Termocoperta Aldo (mss310h) - OnlineStatus.ONLINE - Misuratore cucina 2 (mss310r) - OnlineStatus.ONLINE - Misuratore bagno (mss310r) - OnlineStatus.ONLINE - Ciabatta corridoio (mss425e) - OnlineStatus.ONLINE - ciabatta computer (mss425e) - OnlineStatus.ONLINE - ex misuratore forno/proiettore (mss310) - OnlineStatus.OFFLINE - Aroma (msxh0) - OnlineStatus.OFFLINE - ex Robot Jonny (mss310) - OnlineStatus.OFFLINE ===============================
14:53:53 – Meross Cloud IoT (WARNING) - il messaggio si è verificato per la prima volta alle 11:13:13 e compare 168 volte
Logger: custom_components.meross_cloud
Source: custom_components/meross_cloud/__init__.py:54
Integration: Meross Cloud IoT (documentation)
First occurred: 11:13:13 (168 occurrences)
Last logged: 14:53:53

=============================== Meross Cloud Custom component Developed by Alberto Geniola Low level library version: 0.4.1.0rc7 ------------------------------- This custom component is under development and not yet ready for production use. In case of errors/misbehave, please report it here: https://github.com/albertogeniola/meross-homeassistant/issues If you like this extension and you want to support it, please consider donating. ------------------------------- List of devices reported by HTTP API: - Tapparella fornello (mrs100) - OnlineStatus.ONLINE - Tapparella salotto (mrs100) - OnlineStatus.ONLINE - Tapparella cucina (mrs100) - OnlineStatus.ONLINE - Tapparella camera da letto (mrs100) - OnlineStatus.ONLINE - ciabatta tv secondaria (mss425f) - OnlineStatus.ONLINE - Specchio bagno (mss710) - OnlineStatus.ONLINE - misuratore fornelli (mss310h) - OnlineStatus.ONLINE - ex Fornello (mss425e) - OnlineStatus.OFFLINE - stireria (mss310) - OnlineStatus.ONLINE - misuratore smartphone (mss310) - OnlineStatus.ONLINE - Misuratore computer (mss310) - OnlineStatus.ONLINE - palestra (mss310h) - OnlineStatus.ONLINE - misuratore cucina (mss310) - OnlineStatus.ONLINE - ciabatta cucina (mss425f) - OnlineStatus.ONLINE - misuratore tv (mss310) - OnlineStatus.ONLINE - lavatrice (mss310) - OnlineStatus.ONLINE - aria (mss310h) - OnlineStatus.ONLINE - boiler (mss310h) - OnlineStatus.ONLINE - Ciabatta cose (mss425f) - OnlineStatus.ONLINE - ciabatta PC corridoio (mss425f) - OnlineStatus.ONLINE - Termocoperta Marco (mss310h) - OnlineStatus.ONLINE - Termocoperta Aldo (mss310h) - OnlineStatus.ONLINE - Misuratore cucina 2 (mss310r) - OnlineStatus.ONLINE - Misuratore bagno (mss310r) - OnlineStatus.ONLINE - Ciabatta corridoio (mss425e) - OnlineStatus.ONLINE - ciabatta computer (mss425e) - OnlineStatus.ONLINE - ex misuratore forno/proiettore (mss310) - OnlineStatus.OFFLINE - Aroma (msxh0) - OnlineStatus.OFFLINE - ex Robot Jonny (mss310) - OnlineStatus.OFFLINE ===============================
=============================== Meross Cloud Custom component Developed by Alberto Geniola Low level library version: 0.4.1.0rc7 ------------------------------- This custom component is under development and not yet ready for production use. In case of errors/misbehave, please report it here: https://github.com/albertogeniola/meross-homeassistant/issues If you like this extension and you want to support it, please consider donating. ------------------------------- List of devices reported by HTTP API: - Tapparella fornello (mrs100) - OnlineStatus.ONLINE - Tapparella salotto (mrs100) - OnlineStatus.ONLINE - Tapparella cucina (mrs100) - OnlineStatus.ONLINE - Tapparella camera da letto (mrs100) - OnlineStatus.ONLINE - ciabatta tv secondaria (mss425f) - OnlineStatus.ONLINE - Specchio bagno (mss710) - OnlineStatus.ONLINE - misuratore fornelli (mss310h) - OnlineStatus.ONLINE - ex Fornello (mss425e) - OnlineStatus.ONLINE - stireria (mss310) - OnlineStatus.ONLINE - misuratore smartphone (mss310) - OnlineStatus.ONLINE - Misuratore computer (mss310) - OnlineStatus.ONLINE - palestra (mss310h) - OnlineStatus.ONLINE - misuratore cucina (mss310) - OnlineStatus.ONLINE - ciabatta cucina (mss425f) - OnlineStatus.ONLINE - misuratore tv (mss310) - OnlineStatus.ONLINE - lavatrice (mss310) - OnlineStatus.ONLINE - aria (mss310h) - OnlineStatus.ONLINE - boiler (mss310h) - OnlineStatus.ONLINE - Ciabatta cose (mss425f) - OnlineStatus.ONLINE - ciabatta PC corridoio (mss425f) - OnlineStatus.ONLINE - Termocoperta Marco (mss310h) - OnlineStatus.ONLINE - Termocoperta Aldo (mss310h) - OnlineStatus.ONLINE - Misuratore cucina 2 (mss310r) - OnlineStatus.ONLINE - Misuratore bagno (mss310r) - OnlineStatus.ONLINE - Ciabatta corridoio (mss425e) - OnlineStatus.ONLINE - ciabatta computer (mss425e) - OnlineStatus.ONLINE - ex misuratore forno/proiettore (mss310) - OnlineStatus.ONLINE - Aroma (msxh0) - OnlineStatus.ONLINE - ex Robot Jonny (mss310) - OnlineStatus.ONLINE ===============================
=============================== Meross Cloud Custom component Developed by Alberto Geniola Low level library version: 0.4.1.0rc7 ------------------------------- This custom component is under development and not yet ready for production use. In case of errors/misbehave, please report it here: https://github.com/albertogeniola/meross-homeassistant/issues If you like this extension and you want to support it, please consider donating. ------------------------------- List of devices reported by HTTP API: - Tapparella fornello (mrs100) - OnlineStatus.ONLINE - Tapparella salotto (mrs100) - OnlineStatus.ONLINE - Tapparella cucina (mrs100) - OnlineStatus.ONLINE - Tapparella camera da letto (mrs100) - OnlineStatus.ONLINE - ciabatta tv secondaria (mss425f) - OnlineStatus.ONLINE - Specchio bagno (mss710) - OnlineStatus.ONLINE - misuratore fornelli (mss310h) - OnlineStatus.ONLINE - ex Fornello (mss425e) - OnlineStatus.OFFLINE - stireria (mss310) - OnlineStatus.ONLINE - misuratore smartphone (mss310) - OnlineStatus.ONLINE - Misuratore computer (mss310) - OnlineStatus.ONLINE - palestra (mss310h) - OnlineStatus.ONLINE - misuratore cucina (mss310) - OnlineStatus.OFFLINE - ciabatta cucina (mss425f) - OnlineStatus.ONLINE - misuratore tv (mss310) - OnlineStatus.ONLINE - lavatrice (mss310) - OnlineStatus.ONLINE - aria (mss310h) - OnlineStatus.ONLINE - boiler (mss310h) - OnlineStatus.ONLINE - Ciabatta cose (mss425f) - OnlineStatus.ONLINE - ciabatta PC corridoio (mss425f) - OnlineStatus.ONLINE - Termocoperta Marco (mss310h) - OnlineStatus.ONLINE - Termocoperta Aldo (mss310h) - OnlineStatus.ONLINE - Misuratore cucina 2 (mss310r) - OnlineStatus.ONLINE - Misuratore bagno (mss310r) - OnlineStatus.ONLINE - Ciabatta corridoio (mss425e) - OnlineStatus.ONLINE - ciabatta computer (mss425e) - OnlineStatus.ONLINE - ex misuratore forno/proiettore (mss310) - OnlineStatus.OFFLINE - Aroma (msxh0) - OnlineStatus.OFFLINE - ex Robot Jonny (mss310) - OnlineStatus.OFFLINE ===============================
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-3ffe5165fa49643b8c7747595074d6c0/subscribe", "messageId": "55cce3f3c21e90845247e0478e566d00", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "1c0ee9564602125b58019d4cee9f26bd", "timestamp": 1608296765, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 1811066307235225181734298f17c61b. Timeout was: 5.0 seconds.
14:50:38 – /usr/local/lib/python3.8/site-packages/meross_iot/manager.py (ERROR) - il messaggio si è verificato per la prima volta alle 14:06:09 e compare 4 volte
Logger: meross_iot.manager
Source: /usr/local/lib/python3.8/site-packages/meross_iot/manager.py:632
First occurred: 14:06:09 (4 occurrences)
Last logged: 14:50:38

Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-3ffe5165fa49643b8c7747595074d6c0/subscribe", "messageId": "55cce3f3c21e90845247e0478e566d00", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "1c0ee9564602125b58019d4cee9f26bd", "timestamp": 1608296765, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 1811066307235225181734298f17c61b. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-f61ad4d52d25f653f6871e48808bc5b2/subscribe", "messageId": "61d1f287e6ed519405995d9ef9528f64", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "1e4f8ea4f1323b8941dda1d6b9d02304", "timestamp": 1608298057, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 1811066307235225181734298f17c61b. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-97de783bb86a8d91128b9f908f9b6a4e/subscribe", "messageId": "31e17a0ff6842e206ebafc26e056d6e5", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "1e706eeb14cbdc4a0706d90d919c9192", "timestamp": 1608299353, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 1811066307235225181734298f17c61b. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-04890370a6d9ad98881ed153d7e503ca/subscribe", "messageId": "a97b5eaaee9963291fc13f2e8bb0f2fb", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "11b22418175b62c98a33cdcb8a1c6f42", "timestamp": 1608299433, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 1811066307235225181734298f17c61b. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-caf027e6962fbfc2b4b760535ed3ef57/subscribe", "messageId": "3a2aebd6e8b239f25dbe6a938064347d", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "aec295bc5acea081be800298134dc641", "timestamp": 1608306413, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
16:53:41 – /usr/local/lib/python3.8/site-packages/meross_iot/manager.py (ERROR) - il messaggio si è verificato per la prima volta alle 14:06:09 e compare 13 volte
Logger: meross_iot.manager
Source: /usr/local/lib/python3.8/site-packages/meross_iot/manager.py:632
First occurred: 14:06:09 (13 occurrences)
Last logged: 16:53:41

Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-caf027e6962fbfc2b4b760535ed3ef57/subscribe", "messageId": "3a2aebd6e8b239f25dbe6a938064347d", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "aec295bc5acea081be800298134dc641", "timestamp": 1608306413, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-1effae33a5ca6cc1fcb7a845d79212c7/subscribe", "messageId": "936bd59c5cb31dc9b174142fa3cbfbb7", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "e550c74d82ced0ea4b5a8c1f307ff18c", "timestamp": 1608306494, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-1f947c4a99823849964ba98eb32a958f/subscribe", "messageId": "8363b54dd21db59a7ab4f9c495c6387c", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "ed122a91b01dd718278dc3f1c1fce538", "timestamp": 1608306575, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-312d4db2756cfca5ff5c1651d566a110/subscribe", "messageId": "fce0e3f047edf4509a28de399e46d24d", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "82064f98619c9ae8fd2b9d928668e778", "timestamp": 1608306736, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
Timeout occurred while waiting a response for message b'{"header": {"from": "/app/39469-32dc50d7370c53df09e5eb8df8273954/subscribe", "messageId": "169fcae8418636f70f611e1069cc997d", "method": "GET", "namespace": "Appliance.System.Ability", "payloadVersion": 1, "sign": "576e2d1905627914fa2651f25a6ffa67", "timestamp": 1608306817, "triggerSrc": "Android"}, "payload": {}}' sent to device uuid 2006096481753790815448e1e91e7501. Timeout was: 5.0 seconds.
Push notification parsing failed. That message won't be dispatched.
16:30:56 – /usr/local/lib/python3.8/site-packages/meross_iot/manager.py (ERROR) - il messaggio si è verificato per la prima volta alle 15:33:48 e compare 1424 volte
Logger: meross_iot.manager
Source: /usr/local/lib/python3.8/site-packages/meross_iot/manager.py:466
First occurred: 15:33:48 (1424 occurrences)
Last logged: 16:30:56

Push notification parsing failed. That message won't be dispatched.
Namespace Appliance.RollerShutter.State is not currently handled/recognized.
16:30:56 – /usr/local/lib/python3.8/site-packages/meross_iot/model/enums.py (ERROR) - il messaggio si è verificato per la prima volta alle 15:33:48 e compare 1424 volte
Logger: meross_iot.model.enums
Source: /usr/local/lib/python3.8/site-packages/meross_iot/model/enums.py:98
First occurred: 15:33:48 (1424 occurrences)
Last logged: 16:30:56

Namespace Appliance.RollerShutter.State is not currently handled/recognized.
Namespace Appliance.RollerShutter.Position is not currently handled/recognized.
Namespace Appliance.Control.TimerX is not currently handled/recognized.
galamarco commented 3 years ago

To upgrade this issue I would like to share that I did a roll-back before the December updates and the problem has been solved. (Backup on 13 December 2020 with Supervisor Version 2020.12.7, Home Assistant OS 5.8)

For the moment I have solved it, but the problem remains, it is not a solution to avoid updates.

albertogeniola commented 3 years ago

Hi @galamarco,

when you say you "rolled back" before the December updates, do you mean the Homeassistant updates or the Meross component updates?

galamarco commented 3 years ago

Hi @albertogeniola and thank you for supporting this valuable component of HomeAssistant. I did restore with a November backup, so before the Home Assistant updates and before the updates of the Meross component.

Now is working well with

In the same days of the December updates and the problems encountered, I installed 4 switches for Meross MRS100 electric roller shutters switch. I understand from the logs, are detected by the API but not managed by the Meross component. I don't know if they hit something...

Best regards Marco

albertogeniola commented 3 years ago

Hi Marco, would you please update only the Meross component to the latest version and see if that still occurs?

galamarco commented 3 years ago

@albertogeniola Yesterday I try to update only Meross component (on my Home Assistant 0.117.6 from 1.0.3 Meross component version to 1.0.5 version). Alt text

The result is the same. After update and reboot, all Meros device configured in my Home Assistant stop working. Alt text

Checking in the log I can see this: Alt text

and some other error from Meross component like this Alt text

After this I restore again my backup and all work well. Alt text

marc95200 commented 3 years ago

Hi, I have the same problem. I just add 4x MRS100 (smart roller shutter timer). I can control them with meross app but i can't find them with home assistant (meross cloud Iot). Did you find a solution? Thanks

galamarco commented 3 years ago

It seems that MRS100 are not yet supported at the moment. But I solved it by integrating HomeAssistant with IFTTT and IFTT connected to Meross app. So I was able to create buttons in HomeAssistant that call the IFTTT applet to open and close shutters.

A very long and not very sensible tour since raspbarry and roller shutters are in the same house. Unfortunately, however, until integration is developed, it is the only solution.

marc95200 commented 3 years ago

Thank you for your answer. Unfortunately i sent it back because i found Meross to closed and restricted. I bought TUYA switch for shutters ==> They are compatible with Smart Things, tuya... So i think it will be easier for me to integreate them with HA. I am waiting to have it. Have a good day

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

albertogeniola commented 3 years ago

Hi guys, the latest version (v1.1.4) supports rate limit configuration. You should uninstall your previous version, reboot, install the latest version and then configure the rate limits in accordance with your requirements. By doing so, you can tune the rate limit threshold and make this work again.