here you go...
var opts = [
{"color_temp": "coolest", "transition":0.5},
{"color_temp": "cool", "transition":0.5},
{"color_temp": "neutral", "transition":0.5},
{"color_temp": "warm", "transition":0.5},
{"color_temp": "warmest", "transition":0.5}
];
var opt = context.get("opt") || 0;
msg.payload = opts[opt];
opt++;
if(opt >= opts.length) opt = 0;
context.set("opt", opt);
return msg;
demo flow...
[{"id":"f1e7cf45.48393","type":"inject","z":"b872cb4b.5a6448","name":"fake mqtt","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":800,"y":240,"wires":[["43f0731d.f5780c"]]},{"id":"43f0731d.f5780c","type":"function","z":"b872cb4b.5a6448","name":"","func":"var opts = [\n {\"color_temp\": \"coolest\", \"transition\":0.5},\n {\"color_temp\": \"cool\", \"transition\":0.5},\n {\"color_temp\": \"neutral\", \"transition\":0.5},\n {\"color_temp\": \"warm\", \"transition\":0.5},\n {\"color_temp\": \"warmest\", \"transition\":0.5}\n];\n\nvar opt = context.get(\"opt\") || 0;\nmsg.payload = opts[opt];\n\nopt++;\nif(opt >= opts.length) opt = 0;\ncontext.set(\"opt\", opt); \n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":960,"y":240,"wires":[["c54e199.d982fe8"]]},{"id":"c54e199.d982fe8","type":"debug","z":"b872cb4b.5a6448","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1140,"y":240,"wires":[]}]