Disarm SHM when Door Unlocks?

If you’re only looking to run SHM disarm when someone unlocks then you should look at creating a rule in CoRE. Not sure if you’re familiar with CoRE but it’s a very powerful rules engine and great for making a bunch of one off rules out having to go for an overkill of a dedicated app.

If you’re looking for a more comprehensive solution which allows you to take actions based on the type of lock (code, external button, manual or remote etc) or unlock then check out this SmartApp:

or the thread that @TN_Oldman pointed to above.