homestar-hue

3.0.1 • Public • Published

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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-hue

Homepage

homestar.io

Weekly Downloads

0

Version

3.0.1

License

Apache-2.0

Last publish

Collaborators

  • dpjanes