homestar-hue
v3.0.1
Published
IOTDB Bridge for Philips Hue
Downloads
17
Readme
homestar-hue
IOTDB Bridge to connect and control Philips Hue Lights.
About
See the samples for details how to add to your project, particularly model.js for standalone and iotdb.js for HomeStar/IOTDB.
Installation and Configuration
Then:
$ npm install -g homestar ## may require sudo
$ npm install homestar-hue
$ homestar configure homestar-hue
Use
Code to set all lights to red:
const iotdb = require("iotdb")
iotdb.use("homestar-hue");
iotdb.connect("HueLight").set(":color", "red");
Models
HueLight
Control Philips Hue lights:
Functionality:
- discover Hue hubs and individual lights
- turn lights on and off
- set light color
- get same
- configure Hue lights (coming soon)
HueLightModel
- on: true or false. iot-purpose:on
- color: a hex color ("#FF0000"). iot-purpose:color
e.g.
{
"on": true,
"color": "#FF0000"
}