My lock codes are now entirely managed with my Google Calendar. I use Rule Machine, in combination with GCalSearch to automate lock codes. I created a calendar called "Lock Codes" and have GCalSearch check my calendar every night at midnight and enable/disable codes based on specific trigger events.
I have calendar events set up as triggers using the GCalSearch app. For example, I have one trigger that searches for an event called "House Cleaning" on my Google Calendar. I typically set the event to start 1 hour before the cleaner is supposed to arrive and ends 1 hour after they are typically gone. At the beginning of the calendar event, Hubitat is triggered to enable (add) the housekeeper's lock code to a particular slot, and then when the calendar event ends, the code is disabled (deleted) on the lock again.