I have an LED switch that is accessible by Home Assistsant:
Home Assistant running in Docker on a Linux machine
Home Assistant 2023.9.0 Frontend 20230802.1
Zigbee Home Automation via HubZ USB stick
GLEDOPTO GL-C-007 zigbee controller
LED strip with RGB and White channels
It presents two entities for the RGB and White channels, and these entities can be consumed by Home Assistant with no concerns. The RGB channel exposes the effect:
If I enable it the LED strip gently cycles through some colours.
What are the default colours selected to cycle through? What is the transition period? How can this be adjusted? Is there any documentation around this in the light integration that I’m missing?
In other words, the Effect list represents the light’s native capabilities. Philips Hue doesn’t support a native colorloop effect (FWIW, it did in the past) so that effect doesn’t appear in the list.
All this to say that your LED strip supports a native colorloop effect and the effect’s behavior is determined by the light itself (not Home Assistant).
I would use a repeat - while that sets the color based on a list of colors with a delay of a few seconds between each iteration of repeat.
The while needs a sane condition because you don’t want repeat to loop indefinitely nor without the ability to stop it on demand.
At a bare minimum, the condition should allow looping while the light is on, so the moment you turn off the light, the repeat stops (and the script it’s in finishes gracefully).