3-way binary input with power supply for flush-mounting