Automatic lights on with motion until a certain time

In my bedroom, I used to have lights come on at 1% at a certain time near sunset, and automatically turn off at a certain time each night using the Smart Lighting Smart app.

Using the same SmartApp, I decided to get cute and try my Samsung motion detector to turn on the lights for x minutes after a certain sunset time with motion until a certain time. Lately when I take a walk in the room after that time, it’s turning on those lights again, waking up others in the room.

Any suggestions on what may be causing the issue?