360 degree rotary switch. 5 pins 4 gears = 5pins 6 positions. 4 gears + 2 closed states = 6 positions. Cycle gear. 0 gear off. 3 gear off.
eBay