Monition sensors and lights issue

There has been a bug in Smart Lighting that may be causing this. You could use Rule Machine to do this automation, and it doesn’t have that bug.

The Condition would be motion-active; the Actions for True would be turn-on-outlet; the Actions for False would be turn-off-outlet after x minute delay, cancellable.

Typically, you shouldn’t need more than about 5 minutes to keep the lights on from motion, in many rooms only 2 minutes does it. Sort of depends on the room and the position of the motion sensor.