Light switches and zippers were both invented in 1917.
William J. Newton and Morris Goldberg patented wall light switches in 1917.
Giden Sundback patented the "separable fastener" in 1917, as well. The name "zipper" was popularized by B.F. Goodrich Company in 1923.