The #1 elevator was out of service for a period of time exceeding 30 minutes. Water had accumulated in the pit causing the comp chains to move. Movement of the chains caused damaged to the buffer switch. The switch was replaced, the water removed and the elevator was placed back into service @ 11:13pm. No one was on the elevator at the time.