Hi all,
I got some RGB led lights which I control with a Fibaro RBG module. I want them to cycle through the RGB colours so that they resemble Xmas lights. I have already coded all the colour changes in separate action groups. Then I created a parent action group which executes the individual colour action group changes via a Phyton script. Now I want to execute the parent action group in a loop. The trigger for this action group will be another device, while that device it's on I want the parent action group to execute and change the RGB colours in an infinite loop. Once the device is switched off I want the LED to stop changing colours and switch off. I thought of doing a schedule which executes every 10 seconds and checks the device's state but executing a schedule so often sounds wrong to me. I could also execute the parent action group via a trigger (when the said device goes on) and have a loop in my script checking the device's state to stop when it goes off. But I am not sure if having a script running for long could be an issue. What is the best way to do what I want?
Thanks,
Christian