Giter Club home page Giter Club logo

Comments (9)

nfarina avatar nfarina commented on June 8, 2024

I would love this personally, I have a couple Hue lights at home but just haven't gotten around to writing the shim. Also it kept seeming like they were on the verge of supporting HomeKit natively, but apparently not!

from homebridge.

stephenyeargin avatar stephenyeargin commented on June 8, 2024

Looks like it may require some lower-level work in the HAP-NodeJS library? This is mentioned in the wiki as a fork that built-in Hue support.

KhaosT/HAP-NodeJS@master...renssies:master

from homebridge.

nfarina avatar nfarina commented on June 8, 2024

I don't think anything would be required of HAP-NodeJS - the fork you pointed to does include Hue support but it's built on top of "standard" HAP-NodeJS and could probably be ported easily to HomeBridge.

from homebridge.

jhurliman avatar jhurliman commented on June 8, 2024

+1 for this

from homebridge.

stephenyeargin avatar stephenyeargin commented on June 8, 2024

Some WIP stuff:

So far:

Stephens-Air:homebridge (master) stephen$ npm run start

> [email protected] start /Users/stephen/Sites/homebridge
> node app.js

Starting HomeBridge server...
Loading 1 platforms...
[Phillips Hue] Initializing PhilipsHue platform...
[Phillips Hue] Fetching Philips Hue lights...
Loading 0 accessories...
[Phillips Hue] Initializing device with name undefined...
/Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:126
                    throw e;
                          ^
TypeError: Cannot read property 'lights' of null
    at /Users/stephen/Sites/homebridge/platforms/PhilipsHue.js:200:15
    at resolveError (/Users/stephen/Sites/homebridge/node_modules/node-hue-api/hue-api/utils.js:40:13)
    at _rejected (/Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:797:24)
    at /Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:823:30
    at Promise.when (/Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:1035:31)
    at Promise.promise.promiseDispatch (/Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:741:41)
    at /Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:557:44
    at flush (/Users/stephen/Sites/homebridge/node_modules/node-hue-api/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:355:11)

npm ERR! Darwin 14.3.0
npm ERR! argv "/opt/boxen/nodenv/versions/v0.12.4/bin/node" "/opt/boxen/nodenv/versions/v0.12.4/bin/npm" "run" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls homebridge
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/stephen/Sites/homebridge/npm-debug.log

from homebridge.

nfarina avatar nfarina commented on June 8, 2024

Cool! It's a good start.

Would it be possible for the shim to "autodiscover" the Hue bridge instead of requiring that you figure out its IP?

from homebridge.

stephenyeargin avatar stephenyeargin commented on June 8, 2024

Not as sure about that one. The one thing I've worked with have required you to at least have the IP address.

from homebridge.

nfarina avatar nfarina commented on June 8, 2024

Looks like the underlying lib does have a locateBridges() or nupnpSearch(): https://github.com/peter-murray/node-hue-api

from homebridge.

stephenyeargin avatar stephenyeargin commented on June 8, 2024

Cool. That's something that can definitely be added, but I'd like to see if I can get it working with a manual configuration first. I've opened #28 if you or anybody gets a chance to look into why it doesn't quite work. At this point, I'm just brute-force trying to get it to work. 😄

from homebridge.

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.