Zetta device package for Phillips Hue Driver, use this to discover Hue hubs and bulbs on your Zetta platform. Uses the Node Hue Api from Peter Murray to communicate with Hue hub and bulbs.
npm install zetta-hue-driver
var zetta = require('zetta');
var Hue = require('zetta-hue-driver');
zetta()
.use(Hue)
.listen(1337);
As a security measure, you must register your hub in order for the zetta-hue-driver
to find your connected bulbs.
To do this:
- push the
link
button on top of your hue hub * the same physical button you pushed when you linked your hub to your mobile app or web account - trigger the
regiser
action in the zetta api. * You'll have 10-20 seconds to do this before the api times out.
var bulbQuery = server.where({type: 'huebulb'});
Colors are converted with color before being passed to the Hue api, and can be in the form of any valid CSS color string.
bulb.call('color', [colorstring], [callback]);
Example valid color string:
"#ffffff" //white
"rbg(255, 0, 0)" //red
"hsl(0, 100, 50)" //red
MIT