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!
npm install yeelight-blue
var YeelightBlue = ;
Connect and Setup
// connects + discovers services and characteristicsyeelightBlue;
Set Color and Brightness
var red = 255; // 0 - 255var green = 255; // 0 - 255var blue = 255; // 0 - 255var brightness = 100; // 0 - 100yeelightBlue;
Set Gradual Mode
Enables/disables gradual fading when setting colors and brightness
var on = true; // true (default) | falseyeelightBlue;