Another way I used to use is.
Create a virtual switch.
Have smart lighting turn that switch on when door is unlocked.
Have that switch to trigger your routine, or whatever.
Also I’m not sure if @RBoy lock manager handles your lock or makes available the option to use who unlocks the door as a trigger.
I have a Schlage and now use his software to do what I want when a specific person unlocks the door. I used to use this to change the mode when unlocked via keypad . I don’t remember if it can trigger a routine or not.
You can also go the CoRE route mentioned above. It’s a steep learning curve. You can usually get help when your stuck. It has its own section in the forum. https://community.smartthings.com/c/smartapps/core
Hope that helps get you in the right areas or find what you need.