Power failure, I think

A last cry for help.
Any suggestions how to improve the sketch, even if it's only the lights part?