There are several conditions if you want to connect a magnetic lock to your system:
You need to use DPS180-U or UPS01 power supply to power the system, don't use solar and batteries.
Make sure you use a 24V magnetic lock.
You also need to purchase a 24V relay, with NO, NC contacts and contact capacity greater than 3A.