dpjanes / homestar-hue

HomeStar / IOTDB Controller for Philips Hue Lights
Apache License 2.0
0 stars 3 forks source link

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:

HueLightModel

e.g.

{
    "on": true,
    "color": "#FF0000"
}