homestar-lifx
v0.1.16
Published
IOTDB Bridge for LIFX Lights
Downloads
34
Readme
homestar-lifx
IOTDB Bridge for LIFX 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
Then:
$ npm install homestar-lifx
Use
Set the lights to red
const iotdb = require('iotdb')
iotdb.use("homestar-lifx")
const things = iotdb.connect("LIFXLight")
things.set(":color", "#FF0000")
Development Note
"products.json" is from:
- https://github.com/LIFX/products/blob/master/products.json
Models
LIFXLight
LIFX Color Light
- on: true or false. iot-purpose:on
- color: a hex color ("#FF0000"). iot-purpose:color
- brightness: from 0 to 100
e.g.
{
"on": true,
"color": "#FF0000",
"brightness": 100
}
LIFXWhite
Control LIFX White Light
- on: true or false. iot-purpose:on
- brightness: from 0 to 100
e.g.
{
"on": true,
"brightness": 100
}