How to capture a trigger event in UI

You don’t need a timer. See Motion activated lights automation