Flashing red light

I’m trying to create a piston that starts flashing a Hue color light red when a switch is turned on (something like 1 second on, 1 second off). I need it to flash continuously for up to x minutes, unless the switch is turned off…at which point it goes back to it’s previous state.

I’ve tried the Flash command, but have never gotten it to work. The flashes are completely random it seems, and it doesn’t remain red.

Anybody doing this with some type of on-off loop, with a check to see if the switch is still on or if x minutes have passed?

It is really a great thought…

Robin, if you still have that 3 second flashing loop piston, can you post the dashboard for it please?

Thanks!

10 char.