Smart scene for a blinking light

Hello, I need help to write a scene,

Input conditions : several Zigbee SNZB-04 → window/door(s) open
After 1 hour, which means I forgott to close the window(s)
Activation of a MiniR4 (Commanding a buzzer and a flash alarm) for 15sec, then off 5 min, then again on 15s
Untill all windows are again closed.
I could of course write the scene that worked for 1 time 15s alarm using inching, but i dont find out how to create a loop.
Loop timer would be great if another condition than a start date and time can be implemented.

Thanks