BigAssFansAPI
BigAssFansAPI copied to clipboard
getFanInfo.js does not output anything.
Am running the code base included with homebridge-bigAssFans.
I turned on logging and added a couple debug statements...
$ node ./getFanInfo.js BigAssProperty fan BigAssProperty light BigAssProperty sensor BigAssProperty smartmode BigAssProperty learn BigAssProperty sleep BigAssProperty device goodbye world hello world pollForFans Sending: <ALL;DEVICE;ID;GET> polled server got: <ALL;DEVICE;ID;GET> from 192.168.7.44:31415 Sending: <ALL;DEVICE;ID;GET> server got: <ALL;DEVICE;ID;GET> from 192.168.7.44:31415 ...
The server is 92.168.7.44
If I connect directly to the fan I see mostly binary where I would have expected ascii (based on my limited understanding of BigAssApi.js.)
$ nc 192.168.7.150 31415 | od -c 0000000 300 022 213 001 " 210 001 022 003 330 002 001 022 003 340 002 0000020 \0 022 003 350 002 3 022 003 360 002 004 022 006 302 003 003 0000040 n o w 022 003 320 003 001 022 003 310 \b 001 022 003 010 0000060 \b \a 022 003 370 003 T 022 003 200 004 J 022 003 250 \b 0000100 001 022 003 240 003 \0 022 004 250 003 330 004 022 003 260 003 0000120 001 022 004 270 003 204 \a 022 003 310 003 \0 022 003 340 \b 0000140 \0 022 003 332 003 \0 022 004 200 003 235 022 022 003 370 002 0000160 001 022 003 210 003 \0 022 003 340 003 \0 022 003 360 003 \0 0000200 022 003 220 003 \0 022 003 230 003 \a 022 003 350 003 001 300 0000220 300 022 213 001 " 210 001 022 003 330 002 002 022 003 340 002 0000240 \0 022 003 350 002 @ 022 003 360 002 005 022 006 302 003 003 ...
This is a brand new i6 fan I received Apr 9, 2021. It's running Firmware Version 1.7.1.
Thank you for the work you've put into these projects.
- brian
Any updates on getting this working?
Mine also does not output anything. I ran "node inspect getFanInfo.js" and it seems to be stuck in path.js
Any updates on getting this working?
Mine also does not output anything. I ran "node inspect getFanInfo.js" and it seems to be stuck in path.js
I have a model i6 which apparently is not supported by BigAssFansAPI. If your fan is not a Haiku model or communicates in binary rather than plain text you might want to look at my homebridge-i6-bigassfans plugin.
I have the haiku L, is it possible to push commands to it on my computer?
It should be possible. What operating system is your computer running?
I am running windows
If you want to send commands to your fan using a command line interface, I recommend a program called "netcat". I don't know anything about windows but a search for 'netcat windows' should get you started.
Once you have it installed we can talk about how you can use it to talk to your fan or you can look it up. All you need to know is the IP address for the fan and that it (as far as I know, not owning a Haiku) listens on UDP on port 31415.
I installed Nmap https://nmap.org/ which is the same function as netcat. I have ran a few scans using the ipv4 address of my router and port 31415. How did you find the ip of the fan and do you need to go through the router to get to it?
As far as I can tell Nmap won't help you to send commands to your fan but it should let you see the commands sent from the app or Homebridge.
In the i6 Big Ass Fans iPhone app, the IP address is shown in the Wi-Fi section. Maybe it's the same for whatever app you use to control your fan? Another way to find the IP address would be if your router lets you see a list of all the connected devices. Find the one with the same MAC address as your fan or by process of elimination. The MAC address might also show up in your Nmap scan along with an IP address.
If the computer your using to scan the network is connected to the same router as your fan, then you almost certainly don't need to go "through" your router since you'd be on the same local network. In other words you don't need to open any ports.