Closed joelzhl closed 2 years ago
The developer can correct me if I am wrong, but I recall reading it is not polled, but event based. I.e. when the door opens, it sends door was opened status, then times out.
Sorry, confirmed:
"No polling: the library is event-based. It saves bandwidth and makes the UI much more reactive."
You can manually poll if you want via some automation or node red I imagine.
You can manually poll if you want via some automation or node red I imagine.
I setup a periodic poll with node red once every 10 mins. After roughly around 10 hours, the state changes to unavailable. Polling it does not seem to refresh the state. The garage opener looks like it's still connected to the WiFi with around 60-70% signal as reported by the Meross app.
I then restarted the HA core and the garage opener immediately show up as closed instead of unavailable.
I'll keep the node red polling going to see if it's just a one off thing or something else. I remember this working perfectly before the 1.0 release even when the WiFi signal was much weaker at around 30%.
I remember this working perfectly before the 1.0 release even when the WiFi signal was much weaker at around 30%.
Confirming this observation. Prior to 1.0, this was a more reliable integration. While I have tried each of the 1.X versions, the lack of reliability forced me to to return to the earlier approach. I'm stuck now with the latest version as the per-1.0 versions are no longer available via HACS.
Just a little update and observation. I've keep the 10 mins node red poll running but the msg-100 still becomes unavailable after 1-2 days.
Interestingly though, two online event were logged at the same time that the device became unavailable. Maybe it's not handling the online events correctly.
Core Log
2021-05-02 19:53:45 WARNING (MainThread) [custom_components.meross_cloud.cover] Device Smart Garage Door Opener (msg100) - Main channel reported online event.
2021-05-02 19:53:51 WARNING (MainThread) [custom_components.meross_cloud.cover] Device Smart Garage Door Opener (msg100) - Main channel reported online event.
MSG-100 History
May 2, 2021
Became unavailable
7:53:52 PM - 14 hours ago
Was closed
7:53:51 PM - 14 hours ago
Became unavailable
7:53:45 PM - 14 hours ago
I've noticed this with one of my 16 Meross smart plugs. I've reset it a couple of times, just this one unit is problematic. I reached out to Meross and they supplied the usual response. I then noticed the plug turning off and on at random times.
Waiting to hear from Meross about this issue.
I also picked up the Meross dual smart plug that is HomeKit compatible. I installed them using the HomeKit Controller. These also do not accurately show the status.
So it may not be the integration.
As a workaround inspired by @joelzhl , here is the super-simple Node Red flow I'm using. Works just fine to make this tolerable until the integration grows more reliable. This is a State node, so no periodic polling is involved. Once the state changes to "unavailable" for 10 minutes (or whatever you want to use), Home Assistant restarts. My garage then reappears. I'm having this happen about once every 36-48 hours.
[{"id":"fa0c1f25.69dcb","type":"tab","label":"Meross Restart Flow","disabled":false,"info":""},{"id":"43c4db7d.6ae584","type":"api-call-service","z":"fa0c1f25.69dcb","name":"Restart HASS","server":"e24c1b04.29ae78","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"restart","entityId":"","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":420,"y":200,"wires":[[]]},{"id":"434f6eb3.2f12d","type":"server-state-changed","z":"fa0c1f25.69dcb","name":"Garage Goes Offline","server":"e24c1b04.29ae78","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"cover.garage_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"unavailable","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"10","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":170,"y":200,"wires":[["43c4db7d.6ae584"],[]]},{"id":"e24c1b04.29ae78","type":"server","name":"Home Assistant","addon":true}]
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.
Hi guys, any chance this gets better with v1.1.4? Unfortunately I don't have access to any MSG100 device at the moment, so I cannot reproduce the issue.
Hi @albertogeniola I'msorry to tell you that at the end.... after waiting a lot of time... I decided to switch from this integration to another one. This custom component was made by another brains like you and compatriot like you and me (W Italia): https://github.com/krahabb/meross_lan We talked a lot together to optimize it. I also know that more or less you know each other because he has taken a lot of ideas from your projects. Today I can say that it works really well! Thanks also to you for what you have done and what you are doing. Ciao Alberto!!!
I reported this in #216 and will check to see if I can reproduce it in the latest version.
New version has been running for 4+ days now with no problem. I think this might be fixed. :smiley:
Sadly, I spoke too soon. This is still an issue.
HI @rhasselbaum : can you provide some logs? What about the other entities? Are they available?
I will pull logs the next time it happens. I attached logs to issue #216 but those are from a few months ago.
I only have two garage door cover entities so I'm unable to see any others, but the garage door covers become "unavailable" independently at different times, if that's what you mean.
meoss_west_garage_door_becomes_unavailable.log
Here is a log that shows 1 of 2 garage doors (entity ID cover.west_garage_door_msg100_main_channel
) becoming unavailable. According to history graph, it happened at 10:37:11 local time.
If I manually open or close the door, it suddenly comes back online in HA so I don't believe it is a wifi issue.
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.
Describe the bug MSG100 becomes unavailable on Home Assistant even when it's can still be open and closed on the Meross app. Using the open and close button on the Meross app will shortly make the MSG100 available again on Home Assistant, but it will eventually become unavailable after a while.
The MSG100 is connect to the a Unifi AP with 70-99% Wi-Fi experience. The Meross app shows between 55%-75% Wi-Fi signal.
Your environment HomeAssistant version: core-2021.4.4 / OS - 5.10 Hassio Version (if applicable): -- PLEASE SPECIFY -- Hardware environment: Hyper-V
Logs taken when the issue happened