Smart Lock Codes That Auto-Generate, Deliver and Expire Per Booking
Smart lock codes work at scale when each booking gets its own code, active only from check-in to check-out, delivered automatically before arrival and revoked at checkout. This guide walks through the manual workflow, the lock apps and PMS integrations hosts use, the five components full automation needs, and how Nowistay runs it with Nuki, igloohome, TTLock, Tedee and HomeIt.

Auto-generate, deliver, and revoke lock codes per booking
Sign up free. Nowistay integrates with Nuki, igloohome, TTLock, Tedee and HomeIt, codes auto-generate at booking, deliver via welcome guide and AI co-host, and revoke at checkout. Zero host action.
Start free trialA guest checks in at 11:47 PM after a delayed flight, types the code on the keypad, the door clicks open. They never message the host, never wait for a key handoff, never wonder if the host is still awake. That entire experience is the result of three things: a code generated specifically for their booking, delivered automatically before arrival, and revoked automatically at checkout. Get those three steps right and self-check-in works at scale. Miss any of them and the host is on call for every late arrival. For a host who also holds a day job, that difference decides whether running vacation rentals alongside full-time work is realistic.
Self-check-in is also where security risk and operational risk converge. A code that doesn’t expire is a future security incident. A code that fails to deliver is a 1:00 AM phone call. A code that activates too early is a guest entering before the cleaner has finished. Five lock brands cover most of the market (Nuki, igloohome, TTLock, Tedee, HomeIt), each with their own API quirks, and the difference between manual code management and automated code lifecycle is the difference between a security liability and a self-running access system. This guide walks through what reliable automation looks like and how to implement it across a portfolio.
Why smart-lock automation matters more than it seems
Three reasons that show up consistently:

Guest experience and adoption
Smart-lock and self-check-in adoption is now mainstream. Surveys of hosts and property managers consistently report that most of them use smart locks and offer self-check-in, and that guests increasingly expect contactless arrival as standard rather than as a perk. A smart lock with an auto-delivered code is the simplest way to deliver that experience without coordinating physical key handoffs.
Security at scale
A code that doesn’t get revoked at checkout is a security incident waiting to happen. Across 10 properties at 50 bookings a month, that is 500 codes generated annually. Forgetting to revoke even 5% means 25 codes still active at the end of the year. With one of them, a former guest can come back, a contractor can walk in, or a stolen device with the code in a text message can be used.
Operational time
Per booking: open the lock app, generate a code, copy it, paste it into a message to the guest, wait until checkout, log back into the app, revoke the code. Anecdotally 5-10 minutes per booking when done correctly. At 50 bookings a month, that is 4-8 hours of pure code management.
The real cost of doing this manually
Three failure modes recur in host forums:
Code sent to the wrong guest
The host has multiple bookings in the same week and accidentally sends Guest A’s code to Guest B. Guest B arrives, the code doesn’t work, and the host has to scramble to resolve it under time pressure.
Code not revoked at checkout
The host forgets to remove the code after the guest leaves. The next guest gets a different code, but the prior guest’s code is still active. If the lock supports time-bounded codes (as most modern locks do), the issue is muted; if not, the prior guest can still enter.
Code sent too late
The guest arrives at 10 PM, hasn’t received the code, and texts the host. The host is asleep. The guest waits at the door. The review reflects it.
What the standard manual workflow looks like
- A booking lands. The host receives a notification on Airbnb or Booking.com.
- The host opens the lock manufacturer’s app (Nuki, igloohome, TTLock, August, Yale).
- Manually generate a code. Either pick a random 4-6 digit code or use the last digits of the guest’s phone.
- Set an active window. Usually from check-in time to check-out time of that booking.
- Copy the code into a message to the guest, often via Airbnb messaging or WhatsApp.
- After checkout, log back into the app to revoke the code (or set the code to expire automatically if the lock supports it).
Every step is manual, and the host is the only person responsible for getting it right. At one property this is fine; at five it becomes a recurring source of mistakes.
Common solutions hosts use today
Lock manufacturer apps used directly
Nuki Web, igloohome dashboard, TTLock, August/Yale Home, Schlage, every smart lock comes with its own app. They support generating temporary codes, but they don’t know about your bookings. You manually generate the code and set the window for each booking.
PMS-native lock integrations
Most full PMS integrate with at least 2-3 lock brands. Some support only a couple of mainstream brands; others cover a wider range; some rely on a specialist access-management platform as middleware. The integration depth varies, some only generate codes, others handle delivery, revocation, and code per booking. Always check which specific lock models are supported, not just the brand.
Dedicated access platforms
Specialist tools that focus exclusively on access management. These platforms support a wide range of locks and integrate with major PMS as middleware. Strong choice if your PMS doesn’t natively support your lock brand. Cost: a monthly fee per door on top of your PMS.
Digital guidebook tools
Welcome guide tools can display the access code dynamically once the host pastes it in. Useful for delivery but not for generation or revocation, the host still does that elsewhere.
Physical key boxes
Some hosts keep a key box at the property with a code that doesn’t change. Cheap and reliable, but the code is shared across all guests over time, so it’s a security weakness, anyone who has stayed has the code permanently.
Passing the lock app credentials to a co-host or VA
A workaround for portfolio hosts: give the lock app credentials to your co-host so they handle code generation. Works at small scale; creates security and accountability concerns at larger scale.
What full automation actually requires
To remove the host from per-booking code management, an automation has to do five things:
- Generate a unique code per booking automatically when a booking is created, no manual step.
- Set the activation window to match the booking’s check-in and check-out times, including auto-update if those times change (early check-in, late check-out).
- Deliver the code to the guest at the right time and through the right channel, typically via the welcome guide URL and automated message, plus on-demand reply when the guest asks.
- Revoke the code automatically at checkout, no host action required.
- Log every code event (created, activated, used, revoked) for security auditability.
How Nowistay handles it
Nowistay integrates natively with five smart-lock providers: Nuki, igloohome, TTLock, Tedee, and HomeIt. When a booking lands, the system generates a unique 4-6 digit code (random by default, or configurable as the last digits of the guest’s phone). The activation window is set automatically from check-in to check-out, including handling of negotiated early check-in or late check-out updates. The code is delivered through three paths: the welcome guide URL the guest receives in pre-arrival messages, an automated message at the configured time before arrival, and on-demand replies from the AI co-host when the guest asks “what’s the code?”. At checkout the code is revoked automatically. Every event is logged for audit. Cleaner codes are managed separately with a 4-hour active window per cleaning mission, so the cleaner has access exactly when needed and not before or after. Open the code list of each lock today and count the active codes that belong to guests who have already checked out. Each one is a door a former guest can still open, so remove them now. A week after revocation becomes automatic, the same list should hold only current and upcoming bookings, plus the maintenance codes you rotate every 90 days.
To configure your lock in Nowistay, choose the instructions for your device: How to Connect a Nuki Smart Lock ; How to Connect a TTLock Smart Lock.
Choosing a smart lock if you don’t have one yet
Three considerations matter more than the brand:
- PMS compatibility. Pick a lock your PMS supports natively rather than the most-marketed brand. The integration depth matters more than feature count.
- Power source. Battery-powered locks (Nuki, TTLock, August) are easier to install but require battery changes every 6-12 months. Hard-wired locks (some Yale, igloohome) are more reliable but harder to install.
- Backup access. Always have a physical key option for the host or maintenance team. Smart locks fail occasionally; physical keys do not.
Setting it up in 30 minutes
If you have a compatible lock and a PMS that supports it:
- Install the lock and connect it to its manufacturer cloud (Nuki Web, igloohome, etc.).
- In your PMS, connect the lock account via API or token.
- Map each property to its specific lock device.
- Configure the code-generation rule (random vs phone-based).
- Test by creating a fake booking and verifying the code generates.
- Test code delivery by triggering the pre-arrival message manually.
- Verify revocation by manually completing a test booking and checking the lock’s code list.
Common edge cases worth handling explicitly
Late check-in extensions
A guest’s flight is delayed and they message at 11 PM asking to check in at 1 AM. Your code’s activation window was set to end at midnight. Two options: extend the window automatically when the negotiated check-in time changes, or fall back to manual code regeneration. PMS-native integrations typically handle the first; standalone lock apps require the second.
Cleaner access
The cleaning team needs lock access for the turnover window, separately from the guest. Best practice is a dedicated cleaner code with a 4-hour active window per cleaning mission, generated and revoked automatically. Avoid sharing a master code with the cleaning team, once given, it’s permanent.
Maintenance and emergency access
Keep one or two long-lived codes for trusted maintenance staff, but rotate them every 90 days. The audit log shows whether they’re being used in expected hours; rotation closes the risk if a code leaks.
Lock connectivity issues
Battery-powered locks occasionally lose Bluetooth or Wi-Fi connectivity. Always have a physical key backup at the property (in a separate lockbox with a master code that you rotate quarterly). Smart locks fail rarely, but when they do the cost is high.
Migrating from key handoffs to smart locks
If you’re still using physical keys, the transition is straightforward but worth planning:
- Pick a lock model that’s been in market for 3+ years (more reviews, fewer surprises). Nuki, igloohome, and TTLock all qualify.
- Order one lock and install it on a less-busy property as a pilot. Run a month of real bookings to validate.
- Train your cleaning team on the new code workflow before rolling out broadly.
- Roll out to remaining properties at one or two per week, the cleaning team adapts gradually.
- Update your listing photos and descriptions to highlight self-check-in, since many guests look for it when choosing a listing.
Total transition timeline for a 10-property portfolio: typically 6-8 weeks. The investment per door is USD 150-300 for the lock plus installation, plus ongoing PMS or platform fees.
Frequently asked questions
Why automate smart-lock codes per booking instead of using one shared code?
A shared code that doesn't change is a long-term security weakness because every former guest still knows it. A unique code per booking that revokes automatically at checkout means each guest has access only during their stay. Across 10 properties at 50 bookings a month that is 500 codes annually, manual management means inevitable forgotten codes left active. Auto-revocation closes that risk.
What standard tools are used for smart-lock automation?
Lock manufacturer apps Nuki Web igloohome TTLock Yale August used directly require manual code generation per booking. PMS-native integrations automate generation and delivery for supported lock models. Dedicated access-management platforms work as middleware between locks and PMS. Digital guidebook tools display codes dynamically but require the host to paste them. Physical key boxes are cheap but share one code across all guests.
What does full lock automation require beyond code generation?
Five components: unique code per booking generated automatically, activation window matching check-in and check-out including negotiated time changes, delivery via welcome guide URL and automated messages plus on-demand AI replies, auto-revocation at checkout with zero host action, and full audit log of code events for security review. Most setups handle some but not all of these, auto-revocation and on-demand AI delivery are the most commonly missing pieces.
FeaturesCheck-in & welcome guideWelcome guide, smart locks and ID checks
Stop forgetting to revoke codes after checkout
Sign up free. Every code event is logged with a timestamp; cleaner codes have a separate 4-hour active window. EUR 12/month per property after the trial.
Try Nowistay free



