stason325 / node-red-contrib-miio-localdevices

Nodes for controlling MIIO devices via node-mihome lib. List of devices and commands to be extended.
GNU General Public License v3.0
17 stars 7 forks source link

fix color not working for yeelight color 3 #30

Open pepijnmm opened 1 year ago

pepijnmm commented 1 year ago

fix for #14 also added the option to use {"ColorRGB":16711680} //just an example that gives red. so people can use (msg.payload.color.r*65536)+(msg.payload.color.g*256)+msg.payload.color.b; for example, if they are already working with RGB values instead of a bigger rgb2hsv function.