Comments (9)
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.
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.
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.
+1 for this
from homebridge.
Some WIP stuff:
- Add
"node-hue-api": "^1.0.5",
topackage.json
- https://github.com/nfarina/homebridge/compare/master...stephenyeargin:philips-hue?expand=1
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.
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.
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.
Looks like the underlying lib does have a locateBridges()
or nupnpSearch()
: https://github.com/peter-murray/node-hue-api
from homebridge.
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)
- New power consumption plugin help HOT 4
- Noonlight plugin HOT 2
- Add a way to change the detected device type in HomeKit for a switch HOT 5
- Point of Contact for Raspberry Pi Imager HOT 1
- Typo in Wiki Page HOT 2
- Updating Node.js HOT 4
- Zigbee and Z-wave HOT 2
- Unable to get system-resolved to work HOT 2
- Where is the menu entry "Konfiguration" for faster open the config.json? HOT 2
- Can't remove stale accessory HOT 3
- Please delete: Opened on the UI repo HOT 2
- plugin generated a warning from the characteristic plus layout difference HOT 2
- HomeKit initial onboarding assume names of HomeBridge devices as they're named, not the native device name relayed from the plugin. HOT 6
- Path '/opt/homebridge/bin/' not added to the $PATH environment after installation HOT 2
- My plugin is verified but it's not shown in Search properly HOT 7
- Unable to add accessory HOT 1
- Synology: Package Center Install Not Working HOT 10
- No Homebridge after reboot MacOS HOT 2
- accessory names HOT 1
- Node.js Unable to Update on Debian 11.9
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.