Case Study - Flash Lights For Approximate Time
I believe I have a working example to test beyond my world. After being triggered by a motion sensor, a FOR loop is used as a counter. An appealing flashing rate is 2 seconds on/off, so 2000ms each. With a maximum of 10 times we can call flash in one call, 2000ms x 2 x 10 = about 40 seconds. This in turn becomes our wait time to fire off another flash cycle.
The FOR loop count number, in this example 5, gives you approximately 5 minutes worth of flashing. Change this number for more or less time in total of flashing.
I’ve not tried it, but you might be able to put this into a DO and just call it from another Piston.
Give it a shot.
Peace.
Before you begin, turn on Advanced Mode by going into Settings->ExpertFeatures->Expert Mode