The wiring for a magnetic lock is a little different than most 12v devices when connecting to a PicoBoo. Since the lock requires power to stay energized you have to wire the lock to the Normally Closed terminal of the relay output as opposed to the Normally Open terminal you would usually use. Using this wiring the lock should be on and locked as long as the PicoBoo is plugged in and open when you activate Relay Output 1.