"Turn the brightness full on entry and normal on exit" seemed unsolvable because I did not know about TRAP.