NOTE
This is a WIP. I will work on making this a little more pleasant for others to use and understand...
Thanks to sandeepmistry for his noble module and marcocanc for his reverse engineering efforts on the lamp that made this possible!
node-yeelight-blue
A Node.js lib for the yeelight blue and yeelight blue lightstrips.
Yeelight Blue Message Interface
Install
npm install yeelight-blue
Usage
var YeelightBlue = ;
Discover
YeelightBlue;
Connect and Setup
// connects + discovers services and characteristicsyeelightBlue;
Disconnect
yeelightBlue;
Turn off/on__
yeelightBlue; yeelightBlue;
Set Color and Brightness
var red = 255; // 0 - 255var green = 255; // 0 - 255var blue = 255; // 0 - 255var brightness = 100; // 0 - 100 yeelightBlue;
Set Gradual Mode
Enables/disables gradual fading when setting colors and brightness
var on = true; // true (default) | false yeelightBlue;
Events
Disconnect
yeelightBlue;