I tried few things but could not get this to work. I have a motion sensor and 6 lamps setup in the basement. The idea is, as soon as the sensor detects motion, I want all the lights to turn on, stay on for 5 mins, then turn off.
That looks like the best solution to me. Add that as a separate rule. First rule simply turns them on when motion is detected. Second rule looks like what @omgitstony posted.
Beautiful solution, Thank you guys. I now realize the fallacy in my logic. I was somehow thinking that I had to include everything in one single rule … … Live and Learn. Cheers