Complex automation problem - combining timer, motion sensor, button and light

Seems to me he’s overthinking it. Have a look at this as a starting point:

Motion activated lights automation.