I have made a generic script to do colour transition for my lights at home, and since it’s generic I set mode=parallel so multiple instances of the script can run in parallel for multiple rooms. However what I’m really looking after is “mode=restart” for the same room, but allow multiple rooms to run in parallel. I’m aware it is not supported out of box, is there a way for me to tag a running instance of script and later in another instance to stop it? Or please suggest if there is a better way to achieve this?
The idea is to have a generic script that allows light to transit from one colour to another, primary use-case is to simulate wake-up sunrise and sunset (lights fade off). Since it’s generic it runs in parallel for all rooms, however due to the limit of turn_off doesn’t support colour transition I made a workaround to change to brightness 1 then turn off, that mean the script has a delay element. If the same room starts sunset, and later runs it again, since 2 instances are running in parallel the previous turn_off will interrupt the 2nd run.
Yeah I know it’s a rare case but I’m still learning HA so would like to try all techy challenges