If you do not mind, I post below an alternative using the built-in timers of Homey. Many ways lead to Rome.
The benefit is easy maintenance:
- Add/Replace a motion sensor to a zone
- Add/Replace lamps to a zone
- No need for a special stopwatch/countdown
Downside:
One virtual device (motion trigger) required
Virtual Devices are extremely useful.