Coder Social home page Coder Social logo

Comments (20)

sean9keenan avatar sean9keenan commented on August 19, 2024

Is it possible that you're running another instance of BigAssAPI? Although from what I've seen that doesn't cause a Address in use error, just unexpected behavior.

Do you have other accessories in homebridge that might also be binding to that same port?

Try running the following to find which processes might already be bound to the port (If you don't find anything without homebridge running, try running it without the BigAssFan in the config)

lsof -i :31415

from homebridge-bigassfans.

dsully avatar dsully commented on August 19, 2024

Already ran lsof, as root. Nothing there. No other instances. Rebooted the box as well.

I have 4 Big Ass Haiku fans, Sonos & a HarmonyHub. Nothing else on that port.

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

I just realized the way this is written, it might fail spectacularly if you have more than one fan. Did you try and run just one fan? Thanks for testing this out, sorry it's not working as expected :|

from homebridge-bigassfans.

dsully avatar dsully commented on August 19, 2024

I've not tried just one fan.. I'll be back in a place where I can do that on Saturday (7/2).

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

More fans on the network should be fine, as long as you're only specifying
one fan in the config file. (My setup is 3 fans visible over wifi, but
making HomeKit only work for one right now)

On Wednesday, June 29, 2016, Dan Sully [email protected] wrote:

I've not tried just one fan.. I'll be back in a place where I can do that
on Saturday (7/2).


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACAn3Acc0QNy86BDURuXEr04FGCGtvZoks5qQnn8gaJpZM4JAHO_
.

from homebridge-bigassfans.

dsully avatar dsully commented on August 19, 2024

Ok.. ideally they would all work via HomeKit, yes?

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Haha, yup. I'm just going to have to change where the "FanMaster" is stored
so that any accessory that starts can access it. Just need to figure out
the best way to do that inside of homebridge.

Should be able to test it tonight or Thursday night, but haven't been near
my fan for a little bit

On Wednesday, June 29, 2016, Dan Sully [email protected] wrote:

Ok.. ideally they would all work via HomeKit, yes?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACAn3DmNhj4RNIo7c7Dp668Ys1_Vb1eUks5qQoi1gaJpZM4JAHO_
.

from homebridge-bigassfans.

pedroserano avatar pedroserano commented on August 19, 2024

Or can the homebridge plugin be changed from an accessory to a platform and have it pull all fans from the FanMaster when it starts?

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Yeah, that's my current plan after talking a bit on the homebridge slack channel - I just haven't gotten a chance to start work on it. I'll assign this issue to myself when I start so that you can know that I'm working on it. My guess is that I'll be able to get to it within the next week.

from homebridge-bigassfans.

pedroserano avatar pedroserano commented on August 19, 2024

Awesome! I already love how the homebridge plugin works with my haiku. Now I might have to get more fans :)

from homebridge-bigassfans.

dsully avatar dsully commented on August 19, 2024

Hey Sean - have you had any time to work on this? Thanks

from homebridge-bigassfans.

smokeyx avatar smokeyx commented on August 19, 2024

I just installed this home bridge plugin and it works fantastically for a single fan. I would love to get it working for both of my fans though but it fails when I add 2 fans as accessories. Any progress on getting this to work with 2 fans?

Thanks!

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Hey guys - sorry for not working on this for a while.

I spent some time getting at least something kind of passable working. You can try it out here: https://github.com/sean9keenan/homebridge-bigAssFans/tree/discovery

Haven't updated the readme fully, but... jist of it is now you do this:

    "platforms": [
        {
            "platform": "BigAssFans",
            "name": "Big Ass Fan"
        }
    ]

in the config, and it shouldn't break compatibility with the old way
two major issues I want to fix:

  • Restarting doesn't work, the cached accessories are not restoring properly so you have to run rm -rf ~/.homebridge/accessories/cachedAccessories in between runs
  • You can't rename accessories that are discovered - ideally I'd have a config field that overrides any particular fan with whatever particular settings you wanted

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Also - if it wasn't clear, this now does discovery of fans on your network, so you don't have to specify the fan's IP addresses or the name.

from homebridge-bigassfans.

smokeyx avatar smokeyx commented on August 19, 2024

Ok, I just got back home from being out of town for 3 weeks. I'm confused. Do I not need the accessory section anymore? Is all that is needed is this?

"platforms": [ { "platform": "BigAssFans", "name": "Big Ass Fan" } ]

Do I need to upgrade the plugin somehow?

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

That's all you need in the config in order to test this - unfortunately you need to grab the plugin from the git repo and try the discovery branch I made.

One way of doing this is by cloning the repo:

git clone [email protected]:sean9keenan/homebridge-bigAssFans.git
git checkout discovery

and then following instructions here to run a local copy of homebridge-bigAssFans

from homebridge-bigassfans.

gsxdsm avatar gsxdsm commented on August 19, 2024

Thanks sean!

I was able to fix the need to clear the cachedAccessories after every run, will submit a PR

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Thanks gsxdsm!

Look forward to seeing the PR, as soon as that goes in I'll update the NPM package as well!

from homebridge-bigassfans.

gsxdsm avatar gsxdsm commented on August 19, 2024

#5

It was a little more involved than I anticipated

from homebridge-bigassfans.

sean9keenan avatar sean9keenan commented on August 19, 2024

Merged this into master, should be all working now 👍

from homebridge-bigassfans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.