Timer to restore light state properly implemented. Lights are not switched on after state has been saved.