2.1.13 • Published 6 years ago

node-lightify v2.1.13

Weekly downloads
12
License
BSD
Repository
github
Last release
6 years ago

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 Npm

This project is under development. all features might change

Install

$ npm install node-lightify

Usage

var lightify = require('node-lightify');
var connection = new lightify.lightify('x.x.x.x');
connection.connect().then(function(){
    return connection.discover();
}).then(function(data) {
    console.log(data.result);
	connection.dispose();
}).catch(function(error){
	console.log(error);
});

API

  • connect
    • connect to lightify gateway using tcp port 4000
  • discovery
    • discover Zigbee devices connected to the gateway
  • discoverZone
    • discover zones defined on the gateway
  • nodeOnOff
    • turn light on or off
  • nodeBrightness
    • adjust light brightness
  • nodeTemperature
    • adjust light temperature
  • nodeColor
    • change light color
  • dispose
    • disconnect from lightify gateway

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.

2.1.13

6 years ago

2.1.10

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

0.0.9

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago