Control lights with motion only when it's dark?

Been Ok for me since we regained stability following “the really bad week” :smile:

I use my own modified version which tries to update more frequently around sunrise/sunset for better lux control, along with @RBoy 's controller smart app.