Unlocking Door the Simplest Way

After replying I thought I’d try to solve the lock code management thing and came across the below post. I just copied the code into my own SmartApp (very easy to do on the developer site) and just tested which resulted in me being able to add and remove codes as well as setting expiry dates.