@dceejay --- Would you take a quick peek at the additions to the node you made - I modified it so that when the white led is toggled on, it sets the color picker node to (0,0,0), and that works great. I'm also trying to get the reverse to work -- that if i choose a color from the color picker, it turns off the white led at the switch. That one I'm missing something. I copied the if statement function from the NR documentation
Once this is done, I'd consider it finished and publishable as a flow, albeit a flow for super beginners.
EDIT: Also, if this is where you tell me to learn Javascript... i'm cool with that too.
[{"id":"2f6a646d.7c68fc","type":"change","z":"9b6d369f.3f2518","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.w","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":420,"wires":[["cf5a3583.e25548"]]},{"id":"cf5a3583.e25548","type":"join","z":"9b6d369f.3f2518","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":730,"y":420,"wires":[["61113caf.ae6394"]]},{"id":"f9cca833.ff4738","type":"ui_colour_picker","z":"9b6d369f.3f2518","name":"","label":"RGB","group":"a8dadd2e.e3477","format":"rgb","outformat":"object","showSwatch":true,"showPicker":true,"showValue":true,"showHue":false,"showAlpha":false,"showLightness":true,"dynOutput":"false","order":1,"width":"5","height":"4","passthru":true,"topic":"","x":570,"y":360,"wires":[["cf5a3583.e25548","a99bf359.6fe38","a260f675.d7fc38"]]},{"id":"61113caf.ae6394","type":"csv","z":"9b6d369f.3f2518","name":"","sep":",","hdrin":"","hdrout":"","multi":"one","ret":"\\n","temp":"r,g,b,w","skip":"0","x":870,"y":420,"wires":[["3c85b400.ababac"]]},{"id":"a260f675.d7fc38","type":"debug","z":"9b6d369f.3f2518","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":910,"y":340,"wires":[]},{"id":"3c85b400.ababac","type":"mqtt out","z":"9b6d369f.3f2518","name":"Change Color","topic":"cmnd/MerkuryA21/color","qos":"","retain":"","broker":"dbea0116.71f43","x":1080,"y":420,"wires":[]},{"id":"8de890d8.89f4b","type":"ui_switch","z":"9b6d369f.3f2518","name":"White Switch","label":"White LED's","tooltip":"","group":"a8dadd2e.e3477","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"255","onvalueType":"num","onicon":"","oncolor":"","offvalue":"false","offvalueType":"str","officon":"","offcolor":"","x":130,"y":440,"wires":[["db1ca2ac.b714d","2f6a646d.7c68fc"]]},{"id":"db1ca2ac.b714d","type":"function","z":"9b6d369f.3f2518","name":"set rgb to 0,0,0 if white is on","func":"if (msg.payload === 255) {\n return [ msg, null ];\n} else {\n return [ \"0,0,0\", msg ];\n}\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":360,"wires":[["f9cca833.ff4738"]]},{"id":"a99bf359.6fe38","type":"function","z":"9b6d369f.3f2518","name":"if RGB is not 0,0,0, turn off white switch","func":"if (msg.payload === \"0,0,0\") {\n return [\"false\", msg ];\n} else {\n return [ msg, null ];\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":200,"y":300,"wires":[["8de890d8.89f4b"]]},{"id":"b9f336c6.3ca8f8","type":"comment","z":"9b6d369f.3f2518","name":"does not work ","info":"","x":90,"y":280,"wires":[]},{"id":"5cc0eeae.ca294","type":"comment","z":"9b6d369f.3f2518","name":"works","info":"","x":370,"y":340,"wires":[]},{"id":"a8dadd2e.e3477","type":"ui_group","z":"","name":"Default","tab":"3c270a60.dc4106","disp":true,"width":"6","collapse":false},{"id":"dbea0116.71f43","type":"mqtt-broker","z":"","name":"","broker":"10.0.0.7","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"nodered/status/on","birthQos":"0","birthPayload":"Nodered is Turned ON","closeTopic":"nodered/status/off","closePayload":"Noderedis Turned OFF","willTopic":"nodered/status/on","willQos":"0","willPayload":"Node-red LWT "},{"id":"3c270a60.dc4106","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]