What are switches activated by a closet door called?
There are two styles that I've seen:

"Automatic closet lights" that mount at the top of the door and include the light socket.


And "push button door switches" that are mounted in the door jamb and connect to a hardwired light fixture.