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

Broadlink RM4 Pro RF - is it working for you? #78

Open houser42 opened 3 years ago

houser42 commented 3 years ago

I have had great success with RM mini and IR codes with this node red git. Many thanks! So just bought a Broadlink RM4 Pro IR & RF 653c, 315 & 433 MHz in order to try to just switch a Champion generator on and off using a similar workflow. No luck so far. I have the unit on the wifi and it is seen by node red but no feedback seen so far when attempting to capture the on and off button son the champion remote. Is this supposed to work? Maybe we need to to use something else to capture and then perhaps us this node to send the RF codes? Would appreciate any hints. Many thanks again

MichielioZ commented 3 years ago

As far as I know RF isn't supposed to work with these nodes for the RM4 Pro, at least they never did for me. This is a forked repository and I think @mlfunston just forked it and added some simple features. My guess is that the original developer did the actual reverse engineering to make the communication work. I personally use the exec node in Node-Red to call python-broadlink and that works for me (you obviously need to be able to install python libraries on the machine you're running Node-Red on). Maybe it also works with broadlink-mqtt, but that library seems to be like this one: based on old code and no real active development...

houser42 commented 3 years ago

Thanks @MichielioZ , appreciate the reply. I have installed python broad link but have not had time to test it yet. Also installed the command line tools on a Ubuntu laptop and will try that too, as some people appear to have had success with sampling the RF in there and then using the codes in this package. Ah well. Not a all in the park but perhaps to be expected as this is a tad esoteric ;) Thanks again!

houser42 commented 2 years ago

Is there any realistic chance that sampling RF will work with this code in the future? I have great success with IR using this package and have a few RF items that would be great to get working at some point. Many thanks!

MichielioZ commented 2 years ago

I looked at the code quite some time ago and it seems to be a 1 on 1 translation from the python code to (node)js. But the code was translated/adapted when the newer devices (like RM4 Pro) didn't exist yet. I saw some evidence in the code that suggests that efforts have been made to make this code more "up-to-date", but obviously the person who did that didn't succeed. So it could be fixed by somebody with more knowledge about the matter. That person would probably also have to have an RM4 Pro and would have to want to make it work natively under Node-RED (because it already works with the Python version if you use exec node). So yeah, pretty unlikely scenario, but it could happen...

houser42 commented 2 years ago

Thanks @MichielioZ reply much appreciated!

I have read somewhere that sampling RF codes in the python package can then be used in this package .. but have so far not managed to do it. Will spend some time with it and report back if I get it working. Many thanks.