Okay, this is my 1st mode, that is rainbow effect (not complete). im don't know how to make the rainbow mode after that.
- I do some research, more of them using rgb code to make the rainbow. im using hex code color. when I tried to change hex to rgb, it show command error
[{"id":"c095d2b3.b127a","type":"function","z":"ab1042c8.676e2","name":"mode colours","func":"for(i=0;i<5;i++){\n\n var randomColor = Math.floor(Math.random()*16777215).toString(16);\n msg.payload='{\"on\": true, \"hex\": \"#'+randomColor+'\", \"sat\":0}' \n return msg\n}\n","outputs":1,"noerr":0,"x":740,"y":500,"wires":[["d83faa77.40a228"]]},{"id":"f546c651.0c1348","type":"ui_button","z":"ab1042c8.676e2","name":"","group":"d9540242.7d89d","order":5,"width":"6","height":"1","passthru":false,"label":"Rainbow Effect","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"str","topic":"","x":480,"y":500,"wires":[["c095d2b3.b127a"]]},{"id":"d83faa77.40a228","type":"delay","z":"ab1042c8.676e2","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":500,"wires":[["f6776d0.4c63a9","915a6d66.fd89"]]},{"id":"f6776d0.4c63a9","type":"debug","z":"ab1042c8.676e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1130,"y":500,"wires":[]},{"id":"fcae1b8e.804e98","type":"inject","z":"ab1042c8.676e2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":540,"y":580,"wires":[["c095d2b3.b127a"]]},{"id":"d9540242.7d89d","type":"ui_group","z":"","name":"Easy Light Control","tab":"ac25b9b2.3319c8","order":1,"disp":true,"width":"6","collapse":false},{"id":"ac25b9b2.3319c8","type":"ui_tab","z":"","name":"Yeelight","icon":"dashboard","order":1,"disabled":false,"hidden":false}]