mlfunston / node-red-contrib-broadlink-control

Set of node-red nodes to manage the Broadlink home automation device suite
MIT License
44 stars 24 forks source link

Problem with RM4c (62be) #66

Closed baldasan closed 3 years ago

baldasan commented 3 years ago

Hi, hope I can ask this here, in case no sorry. I've an RM4c and try to use in .node-red on a rapberry pi. I can scan the device (below the paylod received). cloud=false should mean that I've properly followed instruction to avoid cloud mode. When I try to use the learning flow example nothing happen (in node settings I'm not using a catalog folder).

As additional information the device is working properly (learning and send) when I use it with a python library.

Is there anything that I could do wrong? Thanks for any help.

[{"mac":"24dfa....", "ip":"192.168.1.4", "typeid":"62be", "type":"RM4c","name":"智能遥控\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0002", "cloud":false, "msgdata":[0,0,0, .....] }]

mlfunston commented 3 years ago

Yes, if cloud = false then it should work.

Are there any other messages in the node-red-log when you try using the nodes?

baldasan commented 3 years ago

No, I just get a closing connection message some seconds later (probably 10 sec later). I've also tryed to attach chrome debugger and I do not see any additional messages.

mlfunston commented 3 years ago

Yes, the system cleans up the connection and closes it later but there should be some debug messages in the node-red logs. What is the output if you have node-red-log running when you send the commands?

Also, what is the config and node setup you are using?

baldasan commented 3 years ago

I do not see any message in the node-red-log after I send the command other then "[info] [RM:ac] Broadlink: Closing Device Connection" after timeout elaspes. Even before there is no message related to the RM flow (I've also tryed increasing the logging level from debug to trace in nodered settings.js). From the UI looks like the RM node is never activated.

I'm using the learning example flow. In attached images youcan see the flow I'm using and relevant configurations. noderedTest1 noderedTest2 noderedTest3

thanks

baldasan commented 3 years ago

Solved... I did the most stupid of mistakes... ip...

Your nodes work perfectly and sorry to waste your time.

Thanks!!