Assuming you are using the heumagic
node:
- You need to send an object like this (see doc):
{rgb:[r,g,b]}
- First build an array with the join node and then an object with the template node.
Import and try this flow:
[{"id":"b3155e60.37d73","type":"join","z":"7c6a9ec3.f1512","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":390,"y":1260,"wires":[["207e45ca.32f6ea"]]},{"id":"c188ba2d.8da4f8","type":"inject","z":"7c6a9ec3.f1512","name":"","topic":"red","payload":"200","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":1220,"wires":[["b3155e60.37d73"]]},{"id":"99e929d7.500088","type":"inject","z":"7c6a9ec3.f1512","name":"","topic":"green","payload":"180","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":1260,"wires":[["b3155e60.37d73"]]},{"id":"906a8390.860e7","type":"inject","z":"7c6a9ec3.f1512","name":"","topic":"blue","payload":"210","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":1300,"wires":[["b3155e60.37d73"]]},{"id":"54bd1ebb.28a31","type":"debug","z":"7c6a9ec3.f1512","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":1260,"wires":[]},{"id":"207e45ca.32f6ea","type":"template","z":"7c6a9ec3.f1512","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{rgb:[{{payload}}]}","output":"str","x":520,"y":1260,"wires":[["54bd1ebb.28a31"]]}]