Door alarm automation routine?

I just bought a multipurpose sensor and put it on my front door. I also have a Schlage connected door lock. Both are controlled in the app. I’d like to create an automation routine to notify me when the door is opened but only if the lock is still locked (essentially an automated burgler alarm notification that the door was kicked in). Anyone know of a way to do that? I suspect one way would be to tie the notification to whether I was home or not, but I would really just like it to be standalone with the door lock and the sensor. Thoughts?

Have you looked into smart home monitor?