Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSS210 not working #15

Closed
osperling opened this issue Sep 18, 2021 · 4 comments
Closed

MSS210 not working #15

osperling opened this issue Sep 18, 2021 · 4 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed

Comments

@osperling
Copy link

As stated in the documentation I installed Fiddler, set it up as a proxy on my iOS phone and used the Meross app to turn on/off my smart plug. After doing that I got the following information about my device.

"header": {
"messageId": "ae3d06a66666dcaa248a3ed45530d756",
"method": "SET",
"from": "http://192.168.0.87/config",
"payloadVersion": 1,
"namespace": "Appliance.Control.ToggleX",
"uuid": "2101153644851690839348e1e94600bd",
"sign": "7e6465d4f0f67e8f1b7dac0442b87bf1",
"triggerSrc": "iOSLocal",
"timestamp": 1631995006
}

After that I installed the Meross plugin and set up a flow using the example JSON.
I configured the Meross smart plug node with the information given above.

Bildschirmfoto 2021-09-18 um 22 13 09
Bildschirmfoto 2021-09-18 um 22 12 51

Now I keep getting this error.

Bildschirmfoto 2021-09-18 um 22 01 32

@peterchs
Copy link

peterchs commented Sep 18, 2021

Same behaviour as #13. I expect you have a MSS210 mini or a newer firmware MSS210 which is particular about the content length header, same as my MSS210 mini.

I have raised a PR which will probably resolve.

To manually apply this fix download the smartplug-control.js file from here:
https://github.com/peteakalad/node-red-contrib-meross/raw/main/meross/smartplug-control.js

Overwriting the same file located in your node red node modules dir, something like this path for the user which is running the nodered service:
~/.node-red/node_modules/node-red-contrib-meross/meross
And restart node red

.. or alternatively await @dehsgr to review my PR and consider merging

@osperling
Copy link
Author

Thank you very much. That fixed my problem!

@dehsgr dehsgr self-assigned this Sep 21, 2021
@dehsgr dehsgr added bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed labels Sep 21, 2021
dehsgr added a commit that referenced this issue Sep 21, 2021
@dehsgr
Copy link
Owner

dehsgr commented Sep 21, 2021

Published new version to NPM.

@dehsgr
Copy link
Owner

dehsgr commented Sep 22, 2021

There were heavy changes within API resulting in static message ids, sign tokens and timestamp not being accepted anymore. I re-wrote code base to reflect such changes and generating such information instantly.

Thanks go to @jixunmoe with his project https://github.com/jixunmoe/meross-login getting me in the right direction.

v2.0.0 of this project is published now requiring the Meross key instead of message id, sign/token and timestamp (see ReadMe.md).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed
Projects
None yet
3 participants