Presets + pirsensor usermod

Hello, I’m trying to set up corridor light with 3 presets:

1: bright white, enabled by motion sensor for 5 minutes
2: dim lights (at night)
3: off (at day)

Motion sensor should enable #1 for 3 minutes and then preset 2 or 3 depending time of the day. Usermod allows pir sensor to activate #1 but then it reverts to chosen preset. Is there a way to make that time dependant?

Jack is a spam bot. I advise you to NOT click their links.