Here an alternative that uses the Chronograph app.
- The first flow turns on the light (if switched off) when motion is detected and initiates/resets a timer of 2 minutes;
- The second flow triggers when the timer ends and switches off the light (if on).
