igdr / node-red-contrib-xiaomi-smart-devices

8 stars 4 forks source link

After update not work #20

Closed ferdoo closed 5 years ago

ferdoo commented 5 years ago

Hi after update, i can not control my xiaomi devices. Before i can control my switches but now not. All others sames to work. Now this mesage not work : msg.payload = { "cmd":"write", "model":"ctrl_neutral2", "sid":"100d0d11955c7c", "short_id":23971, "data":{"channel_0":"on"} }; return msg;

obrázok

Thanks for help.

ferdoo commented 5 years ago

olso before was here on the configuration node possible to define devices with name and ssid now its missing ..

obrázok

this is missing

obrázok

igdr commented 5 years ago

Hi. The reason is you updated to the new version 2.0. In this version, I used the new simpler approach controlling Xiaomi devices - now you do not need to count all devices then select the proper device in node configuration.

Just add a new Xiaomi device and set SID directly to the device node.

Regarding the switch here is the example, more detailed you can take a look at "wall switch" node:

 msg.payload = {
     "channel_0": "on"
 }; 
 return msg;
ferdoo commented 5 years ago

Yes - but this not work.

image

My Node-Red run on android TV Box. - i tried to uninstal and new instal.

After inject can i on debug node see this message : {"fromip":"192.168.0.10:9898","ip":"192.168.0.10","port":9898,"payload":{"cmd":"write","sid":"100d0d11955c7c","data":{"channel_0":"on","key":"23b642647cb43b762496f04a4d7a0dcc"}},"_msgid":"4d1329eb.f00018"}

Any other idea ?

ferdoo commented 5 years ago

I try instal node-red on other android device but this is the same. Can not control xiaomi dev.

igdr commented 5 years ago

In a new version, the only way is to add the "switch node", select the switch type and pass the next message.

msg.payload = {
   "channel_0": "on"
}; 
 return msg;

image

igdr commented 5 years ago

No activity, so I close this issue