Motion turning off lights unexpectedly

After playing around with Motion Lighting a few times you will get the hang of it.

I wanted to point out that there is another method that is a little more efficient for your rule that has been referee to the KISS method

That might help you squeak a few more Milliseconds out of your response time.