Script with serialize logic

Hi
I’m looking on how to write a script that has a serial logic
In my case, I would like to turn on a 4 devices for a certain time, but one after the other and one at a time.
Device 1 On for 5 minutes (Devices 2 to 4 are Off)
Turn Off device 1 and device 2 to On (device 3-4 Off)
and so on.

Any suggestion?

Thanks

Add delays to your script

Or if you want to get a bit fancier you can use wait

1 Like