bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
199 stars 32 forks source link

MSS310 doesn't update states properly #520

Open satrik opened 1 year ago

satrik commented 1 year ago

What issue do you have? Please be as thorough and explicit as possible.

First of all, controlling the device via the Home App works. I didn't change anything on the default config of the plugin.

The problem is that the plugin needs very long to update any state. For example if I toggle the device physically on or off, it tooks up to 5 minutes until the state is in homebridge/homekit.

I turned the device physically off at 16:25:00

[10.5.2023, 16:25:59] [Meross] [Smart Plug] current in use [no].
[10.5.2023, 16:29:58] [Meross] [Smart Plug] current state [off].

Another situation is turning the device on/off via the Home app, then it also needs up to 5 minutes until the in use (or any other value) changes.

As I need the values for On/Off and CurrentConsumption for some automations which should start after I turn the device physically on/off, it's bad for me to have such delays now^^ I have also 2 other Meross MSS210 which works like a charm with your plugin and they don't have any problems. Their states are updating more or less in realtime which is really nice.

And one side question, how can I enable debug logging for the plugin? The UI don't show any option and the config "debug": true (described in the wiki) doesn't work.

Details of your setup.

satrik commented 1 year ago

made some tests with the meross-cloud library. with this library I can see (in the console) the physical toggle in realtime. also the current consumption is updating after a few seconds (like in the Meross app).

here are some additional informations of my device/model.

"type": "mss310",
"subType": "un",
"version": "6.0.0",
"chipType": "rtl8710cf",
satrik commented 1 year ago

@bwp91 do you had time to take a look? Any idea what I can do/check?

bwp91 commented 1 year ago

Hi @satrik sorry for delay in reply

My first instincts are - not sure what's happening tbh.

Do you use the plugin in hybrid mode? or local only?

satrik commented 1 year ago

I tested all 3 modes, but I want to go with the "hybrid" mode because of the realtime updates. I just made a test with "hybrid", the mss310 took around ~2 minutes to update the power state, the mss210 did it again in realtime. "local only" is working, but of course the updates are depending on the pull interval.