Try something like this…
var hue = 0
val sat = 100
val bri = 100
rule "Color Loop 36 steps at 10 second duration i.e. full cycle 6 minutes"
when
Time cron "0/10 * * ? * * *"
then
// set 10 second dynamic transition
myLight1_Dynamics_Channel_Item.sendCommand(10);
myLight2_Dynamics_Channel_Item.sendCommand(10);
myLight3_Dynamics_Channel_Item.sendCommand(10);
// set next color
val nextColor = new HSBType(new DecimalType(hue), new PercentType(sat), new PercentType(bri)).toString();
myLight1_Color_Channel_Item.sendCommand(nextColor);
myLight2_Color_Channel_Item.sendCommand(nextColor);
myLight3_Color_Channel_Item.sendCommand(nextColor);
// step the loop
hue = hue + 10;
if (hue >= 360) {
hue = 0;
}
end