Hi,What kind of electronic lock do you have ?.
We have a Kwikset 912 lock which we control from a Vera home automation controller. We add a keycode for each room which is the guest's last 4 digits of their phone number. This makes it easy for late check-ins, etc.
Let me know if you have any other questions.
John