How to create a complex automation to rotate through colors for specific time periods?

Using RulesAPI you can set color (hue and saturation) multiple times.
Delay can be implemented using sleep function.

You can use multiple actions:

Set new color (hue and saturation)
Sleep X min
Set new color (hue and saturation)
Sleep X min
Set new color (hue and saturation)

3 Likes