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

Received unexpected data! #20

Closed
LeleKaos opened this issue Feb 27, 2022 · 1 comment
Closed

Received unexpected data! #20

LeleKaos opened this issue Feb 27, 2022 · 1 comment

Comments

@LeleKaos
Copy link

Hi, I must premise that I'm a newbie on node.js so also on node-red and everything around it, but i have 2 meross mss310h which works flawlessly and I'm trying to integrate node-red just for fun, just for see how it works and what I can do with it.
Long story short, when i try to configure the smart plug following every online guide, every blog issue trying to reverse engineering the solutions i receive back from debug node connected after the meross node the message:

27/02/2022, 12.36.34 node: output msg.payload : string[25] "Received unexpected data!"

And I'm out of ideas why this keep doing this.

This is what I've obtained from fiddler while toggling on one of the smart plug
Inkedscreenshot 27-02-YYYY_T-12 34 00_LI

I've set the 'sign' parameter in the 'meross-config' key value, then added a smart plug, set the ip taken from fiddler and done this it should work correctly no?

This is the current version of the flow

[
{
"id": "019329f3e23d3e83",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "7b2aed301d8c6835",
"type": "inject",
"z": "019329f3e23d3e83",
"name": "ON",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 270,
"y": 240,
"wires": [
[
"ed770a8775a71bbd"
]
]
},
{
"id": "ed770a8775a71bbd",
"type": "smartplug-control",
"z": "019329f3e23d3e83",
"confignode": "3a1baed38589c45d",
"name": "1",
"ip": "192.168.1.11",
"x": 650,
"y": 260,
"wires": [
[
"5e0b4cafceb9fda2"
]
]
},
{
"id": "e3f7d9eda347cdd9",
"type": "inject",
"z": "019329f3e23d3e83",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "'state'",
"payloadType": "str",
"x": 270,
"y": 180,
"wires": [
[
"ed770a8775a71bbd",
"1e81b359bdb820df"
]
]
},
{
"id": "5e0b4cafceb9fda2",
"type": "debug",
"z": "019329f3e23d3e83",
"name": "output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 810,
"y": 260,
"wires": []
},
{
"id": "1e81b359bdb820df",
"type": "debug",
"z": "019329f3e23d3e83",
"name": "input",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 810,
"y": 180,
"wires": []
},
{
"id": "de8aefcca035d7fd",
"type": "inject",
"z": "019329f3e23d3e83",
"name": "OFF",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 270,
"y": 300,
"wires": [
[
"ed770a8775a71bbd"
]
]
},
{
"id": "3a1baed38589c45d",
"type": "meross-config",
"name": "",
"key": "a754533XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
]

screenshot 27-02-YYYY_T-12 58 35

I would like to make this work for the future.

Thanks in advance

Emanuele

@LeleKaos
Copy link
Author

Oh, I've found the error, following #15 i've noticed the last post where this link was provided (https://github.com/jixunmoe/meross-login) and noticed that the key was completely different. Now it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant