Use a magnet to disable tamper switches for all open doors. Use adhesive tape to disable older mechanical switches.

 

Image
Tamper switch