The utility model relates to a door switch which comprises a base and a button column. The upper end face of the base is provided with a guiding hole. The upper end of the button column passes through the guiding hole and sticks out of the base. The lower end face of the button column is provided with an installing hole. A resetting pressure spring is arranged inside the installing hole. A pressing block is arranged on the lower end of the button column. A basically V type elastic moving contact is arranged on the base corresponding to the pressing block. The pressing block abuts on one end of the elastic moving contact and cooperates with the elastic moving contact in a linkage way. Wiring slots corresponding to one side of the elastic moving contact are further arranged on the base. A middle pin, a first nail pin and a second nail pin respectively arranged on the two sides of the middle pin are arranged inside the wiring slots. The lower end face central part of the elastic moving contact is provided with an arc groove which can be arranged on one end of the middle pin. The two ends on the lower end face of the elastic moving contact are respectively provided with a contact. The contacts can be connected with one end of the first nail pin and one end of the second nail pin. The door switch has the advantages of multiple functions, long service lifetime and wiring convenience.