a magnet which can be turned off (but doesn't require power to stay on)

Thank you all very much! I'll look into all your proposed solutions