Skip to content

dpjanes/homestar-lifx

Repository files navigation

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:

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
}

About

HomeStar / IOTDB Controller for LIFX Lights

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published