Robdel12 / homebridge-meross-plug

Homebridge plugin for the meross MSS110 plug
15 stars 6 forks source link

Some MSS110s don't understand "ToggleX" #3

Open kalleboo opened 5 years ago

kalleboo commented 5 years ago

When trying this plugin, the device would respond with a 200 with an empty body, but the switch wouldn't toggle.

Looking at a capture from the official app, it uses a toggle payload and a Appliance.Control.Toggle namespace. Changing the code to use these made the plug work for me.

Not sure if this is a firmware difference. My plug is running the latest firmware as of writing, 1.1.26

(btw thanks for this plugin. there's a dearth of HomeKit-compatible gear in my country so unofficial support like this is a lifesaver)

aralam commented 5 years ago

Hi, I am facing similar issue. Can you elaborate which files you modified? I am running homebridge on Ubuntu and NOOB when it comes to coding :).

Thanks in advance.

kalleboo commented 5 years ago

@aralam

In my ubuntu install, the source file is at /usr/local/lib/node_modules/homebridge-meross-plug/src/index.js

The line that says "togglex": { was changed to "toggle": { and "namespace": "Appliance.Control.ToggleX", to "namespace": "Appliance.Control.Toggle",

aralam commented 5 years ago

Followed your instructions ... didn't helped at all. Also, I looked at the dump from the proxy and it shows togglex and ToggleX in the requests from the app ... so not sure if this is the issue ... (see attached snippets of proxy logs)

Thanks in advance

proxy_dump_response_body.txt proxy_dump_request_header.txt