song940 / node-yeelight

:bulb: A Node.js Library for the Yeelight smart bulb
https://npmjs.org/yeelight2
MIT License
87 stars 20 forks source link

This modification permit to use optional parameter "mode" in fonction set_power(). #14

Closed jpg06 closed 3 years ago

jpg06 commented 3 years ago

This modification permit to use optional parameter mode in fonction set_power(). it is useful in certain case (and i need it ;) )

0: Normal turn on operation (default value) 1: Turn on and switch to CT mode. 2: Turn on and switch to RGB mode. 3: Turn on and switch to HSV mode. 4: Turn on and switch to color flow mode. 5: Turn on and switch to Night light mode. (Ceiling light only).

See documentation on page 13: https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf