You should have no problem getting what you need using SmartLighting.
I control my lights in Smart Lighting by using one routine (set by a lux level) to turn lights on, then another routine to switch them off at a specific time.
When they have turned off I have set mode to change to Night during which time the lux sensor cannot trigger them again. At 08:30 I have mode change to Home during which time the lux sensor can trigger them. The lux sensor is only allowed to trigger during Home mode. See below for one of my lights…
Turn On Large Lamp @ 80 Lux ~ Aeotec Multi 6 equal or lower 80 1:45 pm to 10:30 pm & when in Home mode
Turn Off Large Lamp @ 23:30 Turn Off Specific Time 11:30 pm
Goodnight Change mode to Night automatically perform when at a certain time 11:30 pm
Good Morning! Change mode to Home at the configured time at a certain time 8:30 am
I also have the lux sensor switch off the lights if the light level goes up again…
Turn Off Large Lamp when >250 Lux Turn Off Illuminance equal or higher 250
Additionally, in Night mode, motion sensors are allowed to trigger lights…
Turn On Hall & Large Lamp when Motion & <30 Lux Turn On Motion ~ Motion - Hallway “Motion Starts Turn off after motion stops After 2 minutes” Only when mode is Night Only if illuminance equal or lower than 30