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

RM4pro-Node Red Discovery not working #85

Closed FreekBos closed 2 years ago

FreekBos commented 2 years ago

Hi, the concept is brilliant.... yet I've tried it all (I think) to get the device type of my (aliexpress) RM4pro:

mlfunston commented 2 years ago

Hi - It looks like you have NodeRed and the RM4 in different subnets?

Discovery and Setup both use a broadcast to 255.255.255.255, so unless it's in the same subnet the broadcast UDP packets are not sent through to the other subnet. Maybe the problem?

Can you put them in the same subnet and try?

FreekBos commented 2 years ago

Hi @mlfunston Mark, Yes, that's a very correct statement: I have a Fortigate Firewall, 3 WiFi networks with their own ssid and vlan. And a VERY good hint.....! The NodeRed is in a different subnet hence the multicast rules between the WiFi and the NodeRed network. It would be a great feature to have a "discovery" more specific i.e. when the IP-address is know so the model/id can be discovered. I'll create an ssid on the same vlan as the NR to find out the model/id and try to move from there. Should you or anyone else have another way to retrieve the model/id, please let me know. Kindest regards

milkplus27 commented 2 years ago

@FreekBos did you ever get this working? I'm having a similar issue of NR not being able to discover my RM3 Mini, but both ARE on the same subnet. I tried setting up some firewall rules between the two IP addresses to allow traffic, too, but no dice. I am a bit stumped...

FreekBos commented 2 years ago

Nope, never got it to work... it's a poor situation but it is the way it is. If I ever have the time, I'm going to try sniffing the subnet to see what happens. IF systems are on the same subnet (wired and wifi) broadcast traffic SHOULD be allowed.... a firewall ONLY picks up traffic addressed to the gateway. Having said that... I'm thinking weather or not the BL even sends multicast traffic or even understands the principles of gateway addresses.... If anyone has an idea OR an alternative, I would be VERY happy

mlfunston commented 2 years ago

You would need to use a UDP broadcast relay on your router/firewall.

On Sat, 14 May 2022 at 21:39, Freek Bos @.***> wrote:

Nope, never got it to work... it's a poor situation but it is the way it is. If I ever have the time, I'm going to try sniffing the subnet to see what happens. IF systems are on the same subnet (wired and wifi) broadcast traffic SHOULD be allowed.... a firewall ONLY picks up traffic addressed to the gateway. Having said that... I'm thinking weather or not the BL even sends multicast traffic or even understands the principles of gateway addresses.... If anyone has an idea OR an alternative, I would be VERY happy

— Reply to this email directly, view it on GitHub https://github.com/mlfunston/node-red-contrib-broadlink-control/issues/85#issuecomment-1126717941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGU5Y22SBCOA5HVQRDJ6AA3VJ6UIVANCNFSM5MA4PE5Q . You are receiving this because you were mentioned.Message ID: @.*** com>