Staircase light repeater

This script wil repeatedly turn on lights.

When this script is called, it will repeatedly turn on the lights with a configurable delay between the calls and a configurable brightness value.

My usecase is as follows: my KNX controlled lights in the staircase, toilet and some other spaces are set to ‘staircase only’ (turn off after x time) when I send a dimming value to them.
Sometimes however, I want to set them to 100% and keep them on for a longer duration (think: cleaning the affected area, maintenance, …).

I’ve created a input_boolean helper which is monitored by an automation. When the boolean goes on, the automation calls the script and when the boolean goes off, the automation turns the script off and turns the light(s) off.

It works very well and it can be called on multiple lights in paralel.