BigAssFansAPI
BigAssFansAPI copied to clipboard
Add support for Haiku lights
Ok, working on updates from what @stabbylambda started. I know there were concerns about having significant changes to the API, but with my experience working at Nest, this is for the best. It is likely that Big Ass Inc will expand into more products, and switching to generic terms sooner will make the overall API cleaner in the future.
I verified the examples with my three devices (one fan/light and two standalone lights) and everything is working as expected. Ideally there would be support for identifying device type, but I am going to hold off on that until I look at the Homebridge side of things.
As for Homebridge, I have already create a PR to update the plugin so it will lock to the appropriate version of the API module. The sooner that can ship the better.
@davidwkeith @stabbylambda Love that this is getting some more development. Any chance you can look into exposing the wall controller as a device? And perhaps looking at why the occupancy sensor is not working?
@pponce I will be looking into the occupancy sensor when I update the hombridge plugin, but don't have any wall controls to develop against. How familiar are you with JavaScript/Node? Maybe I can walk you through what we would need.
I'm a bit of a hack. I'd say, I'm comfortable reading someone else's code and troubleshooting small changes. But if set down the right path I might be able to figure things out.
@davidwkeith I see you started to add support for the switch. Have you thought about releasing your version as standalone since it appears that this plugin is not actively being developed? Do you think the switch addition is ready to test?
It is definitely alpha quality (if it works at all). I was gifted a switch, but then got tied up with other things. Oddly enough it was already on my list for testing and cleaning up this week/month.
I will likely follow this PR with a cleanup of the codebase, and if @sean9keenan is no longer interested in maintaining (no shame in that) I may fork it and continue development as needed.
awesome to hear. I'm ready to test when it's ready. Have you seen this implementation? https://github.com/docBliny/haiku-senseme Since there had been little movement with this plugin for some time I was taking a look at what other work had been done to interface with the haiku fans and found this project. Seems to have a way to see state changes as they happen. So if a change happens via the switch or the app, homebridge could reflect the changes. Would be awesome to have state sync when interfacing outside of homekit/homebridge.
@davidwkeith How are things looking? :) Just bumping this up as i would still love to see this plugin flourish. Did you ever get the switch to work?
Thanks @davidwkeith. Sorry that I've been completely MIA on this repo, combination of moving and not re-installing my fan, and just in general not prioritizing this project. Not that those are good excuses.
The changes look good, I really appreciate both the general clean up, and the effort to rename the devices to more general "device" terminology - that makes a lot of sense.
In terms of moving forwards: I'm more than happy to give you (@davidwkeith) permission on this repo + publishing on npm - if that's something you want. But I can also try and be more responsive in general, it was actually your flurry of activity @pponce that reminded me I needed to take a look at this.
I'm on vacation and out of the country right now (and get back in a week and a half), but when I get back I can test on my fan for regressions, I'm also happy to merge it in as is (I just merged in the Homebridge PR and republished it, so it shouldn't break Homebridge). I only own the SenseME Haiku fan of-old, but should have access to a Wifi Switch over the winter holidays.
Again, sorry for being so negligent on this repo + thread.
Absolutely no need to apologize. I think everyone is extremely great-full for the project even as is. I know I am. I’ve been lying low too and figured I’d try to spark things up again.
It is hit or miss for me. I would prefer to have the Haiku lines work with Homekit, but am now very involved in a startup that takes most of my time.
To be fair, I have been holding my breath for official support[^1].
[^1]: I am a former engineer at Nest and know the team from BAF through the Works with Nest program I co-designed, so while I don't have insider knowledge of their roadmap anymore, I do know the behind the scenes of HomeKit approvals and BAF's high level objectives. I believe they are finally inline.
I would love official homekit support but i don't see them adding support for it, for the original SenseME Haiku versions of their fan and their original in wall switch. Those products are so old now that I could see them skipping support for them. But I completely understand you being too busy with startup life.
It's been a heck of a couple of years since the last activity on this PR(!). I'm wondering if this is still known to work with current Haiku fans? I've literally just installed my first Haiku and I'm feeling around to see what apis I can play with.
@wez I’m running the homebridge plugin that uses this api and it works. There are improvements that could be made but it more than does the job.