frequenc1 / node-lightify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Osram lightify for Node.js

Low-level client library for controlling Zigbee lights, switches by Lightify Wireless gateway [Amazon link of OSRAM Lightify Wiress Gateway] (http://www.amazon.com/LIGHTIFY-wireless-connected-lighting-technology/dp/B00R1PB2T0) Npm

This project is under development. all features might change

Install

$ npm install node-lightify

Usage

var lightify = require('lightify');

lightify.start('x.x.x.x').then(function(data){
    return lightify.discovery();
}).then(function(data) {
    console.log(data.result)
}

API

  • start
    • connect to lightify gateway using tcp port 4000
  • discovery
    • discover Zigbee devices connected to the gateway
  • zone_discovery
    • discover zones defined on the gateway
  • node_on_off
    • turn light on or off
  • node_brightness
    • adjust light brightness
  • node_temperature
    • adjust light temperature
  • node_color
    • change light color

Contributing

Contributions are very welcome! Please note that by submitting a pull request for this project, you agree to license your contribution under the MIT License to this project.

License

Published under the MIT License.

About

License:MIT License


Languages

Language:JavaScript 100.0%