I’m really tired today but the FAQs have step-by-step instructions for everything you should need.
If you’re impatient and just want to jump right to getting the lock to unlock, put the unlock in a routine and use this method to tie a virtual switch to it.
If you want something more elegant, just go through the set up FAQ linked to above.