Comments (14)
@pponce I like the idea, but when I telnet into the wall controller, I don't get a response for any button press. Do you know if it's supported by the Haiku API?
from homebridge-bigassfans.
Would it be possible to emulate a haiku fan and have the wall controller pair with the emulated fan instead of the actual fan? Then homebridge could relay the wall control button presses to the fan as well as a homekit trigger event for other devices to react to a button press?
from homebridge-bigassfans.
You'd probably have to figure out how the Wall Controller and the Haiku fan talk to each and in particular how they pair.
One way you can do this is by setting up wireshark on your network (the way I did this was by setting up my mac to act as an AP and connected my fan to my mac's AP) and figuring out what packets are sent over the network. (there are tutorials online on how to do this)
The fan's seem to rely pretty heavily on just broadcasting their status to everyone, so it's possible (if we're really lucky) that the wall controller does the same. In which case you can just listen to UDP packets and see what comes up.
The easiest thing you can try as a first test (to see if it is indeed broadcasting to everyone on the same port) is running my BigAssAPI.js and turning on the logging. Once you do that then this line should print out every message that is broadcast to the network.
Although my guess is that you won't pick it up on there if @pedroserano isn't getting any response from the wall controller when he telnets into it 😞
from homebridge-bigassfans.
I do get a broadcast update from the wall controller on an open telnet connection when occupancy status changes (same as I get from an open telnet with the fan - even though the Sensor is in the wall controller - the wall controller must be relaying this info to the fan to broadcast since I associated them for the same room), but so far that's the only broadcast update I've gotten from the wall controller, nothing when I push any of the buttons on it.
from homebridge-bigassfans.
Hmm, that's interesting - what do the other buttons do? Maybe those aren't broadcast updates, and it only sends it to the particular IP address of that fan (it would make sense that occupancy would be a broadcast - incase multiple fans needed to listen to the broadcast)
from homebridge-bigassfans.
It has 6 buttons:
Three above the sensor for fan speed control. One for fan speed up and one for fan speed down. One for on/off of fan.
Three buttons below for light control. Same deal. One for brighter one for lowering brightness and one for on/off.
I can try to play with wireshark. I'm a bit of a hack though so i'll be slow going.
from homebridge-bigassfans.
So I have wire shark running on my mac. With wall controller, fan and mac all connected to the same wifi network.
I set up a filter to see any packets coming from my wall controller or fan based on IP address.
I see a bunch of udp packets being sent from both controller and fan. I can't really tell what button presses are doing in the capture file. That is i can't tell if any of the packets correspond to button presses.
When just sitting idle I see many udp packets of various lengths coming from fan and wall controller.
The other interesting thing is that i have 2 fans. And when i set the filter in wireshark for capture to include the wall controller and the two fans i only see UDP activity from the the one fan controlled by the wall controller and the wall controller. The other fan shows no activity whatsoever as far as i can see.
from homebridge-bigassfans.
Just to confirm - this is with the app closed?
It looks like it's possible that BigAssFans changed the firmware in a minor way - I'm no longer seeing any broadcasts from the fan - it seems to only talks back to the IP address that addressed it. And the app seems to constantly ask all fans on the network what their status is, this change is a bit annoying and would require a change to the BigAssAPI to act more like the app.
RE: the controller and the fan, it's possible that it's also constantly polling - but I would be surprised by that design decision, but maybe it's reasonable since it's UDP. If it's constantly sending messages, it would be harder to pick out what message was from the button press. I think that there is a way so that you can try to interpret the UDP packets as text in Wireshark - that's how I was originally able to see the responses like <Sean's Room;SNSROCC;STATUS;OCCUPIED>. You can also send me the Wireshark capture and I can try and take a look at it. (My email is on my github profile I think)
from homebridge-bigassfans.
Yup. That was with the app closed.
I'll run another trace later today and play around with the options for viewing in wireshark. Will also send you the captured output.
from homebridge-bigassfans.
just sent packet capture to your email....
from homebridge-bigassfans.
Let me know if the packet capture proved helpful.
I can test or get more captured data as needed.
from homebridge-bigassfans.
Sounds good - sorry, I haven't had a chance to look at it yet. Should have a chance in the next few days. Sorry!
from homebridge-bigassfans.
No worries at all. Thanks for making BigAssFans homekit compatible.
from homebridge-bigassfans.
I know this is ongoing but thought I'd provide feedback on what i'm seeing.
I have 6 total fans with lights, but only 4 are tied to a wall remote. i am getting the motion trigger option for all 6, when it should only be 4.
from homebridge-bigassfans.
Related Issues (20)
- Array Handling Error
- Fan w/out Wall Controller HOT 1
- expose fan smart mode as HomeKit thermostat
- Haiku lights HOT 1
- homebridge crashed with this error
- lights unintentionally turn on to full brightness instead of partial brightness
- iOS 13 changed fan and light to one object HOT 1
- Enabling this platform makes homekit stall and fail to update all other devices HOT 3
- Haiku fans show up in Lutron app all in the same room duplicated HOT 3
- [FEATURE] Eve App 4.2 Issue with homebridge-bigAssFans
- [email protected] - Plugin 'homebridge-bigAssFans' tried to register with an incorrect plugin identifier: 'homebridge-bigAssFan'. Please report this to the developer! HOT 1
- Issue with homebridge >= 1.0.0 HOT 1
- i6 Fan compatibility HOT 2
- Error after configuration and installation of plugin in Homebridge
- Occupancy Sensor - Always triggered HOT 5
- Last fan speed and light level not saved HOT 1
- Plugin causes Homebridge v1.3.0 beta to crash HOT 5
- Plugin crashes Homebridge on launch HOT 2
- Duplicate Serial Numbers for all fans
- Latest firmware update to haiku fans broke compatibility HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-bigassfans.