TomFaulkner / SenseMe

Python Library for Haiku SenseMe app controlled fans/lights
GNU General Public License v3.0
21 stars 10 forks source link

Trouble Discovering Fans #50

Open neviskevin opened 3 years ago

neviskevin commented 3 years ago

I opened up a UDP connection for in and outbound traffic in my firewall on port 31415, but I don't get back anything when running discover() and when I run SenseMe(name="Office"), it never returns anything. I am running windows.

I am assuming this is a problem with my firewall due to lack of understanding with how the fan works, does somebody know what I should do to fix this?

TomFaulkner commented 3 years ago

I looked into this a bit today. I think the documentation is probably wrong. Firewall logs show TCP 31415 being used along with UDP 31415.

I haven't actually done this through a firewall before, but I don't seem to get the fan to reply when sent any commands.

The device uses a lot of broadcasts and the mobile app (along with this library) uses broadcasts to find the device. Your router/firewall will block this.