Why Didn't My Door Lock Code Work?
When a guest texts you saying the code isn't working, you have about two minutes before the situation turns into a refund request. This article is the fast triage: the five causes that account for almost every "code not working" incident, in the order to check them.
Your locks reach Staykey one of two ways, and a few fixes differ between them:
- Home Assistant: the lock is connected through the hub at the property
- Cloud account: the lock is connected through its brand's app (Yale, Schlage, Kwikset, August and others). These locks take door codes only; Staykey can't unlock them remotely. See connecting a cloud account.
Fast Triage (90 seconds)
Before reading the details below, run this quick pass:
- Open the stay and confirm the code. Choose Stays in the sidebar, open the stay, and go to Access → Access Code. Is the code the guest is entering the same one shown as the Guest access code?
- Check the Lock programming card. Just below the code, it shows the overall state and a row for each lock. Active on the guest's door is what you want. Failed shows the reason under that lock. See understanding the stay page.
- Check the time. The card shows when the code is valid. A stay's code works from one hour before check-in until check-out.
- Check the lock. Open the property and choose Home Assistant or Cloud accounts in the Integrations group. A lock that's reporting shows Online; one that isn't shows Unavailable. Cloud-account locks also show their battery level.
- Check the activity. The stay's own Activity (on its At a glance page) or the Activity feed in the sidebar shows what happened at the door: the code being set, a wrong code being rejected, the keypad locking out. Click an entry for the details. See using the activity feed.
If steps 1–5 all look fine and the code still isn't working, jump to The nuclear option at the bottom of this article.
The Five Most Common Causes
1. The Guest Is Using the Wrong Code
More common than anyone likes to admit. The guest may be:
- Looking at a code from a previous booking at a different listing
- Reading the Wi-Fi password as the door code (it happens)
- Using the code for the building door instead of the unit door (for multi-door properties)
- Missing a digit because they're reading from a tiny preview in a message thread
How to tell: The lock is Active on the stay, and the activity shows Unrecognized code rejected at [lock] or [lock] keypad locked out after repeated wrong codes when the lock reports it.
Fix: Ask the guest to open their Staykey guest link: the one in your Airbnb message, or the text Staykey sent them if you use guest link texts. It always shows their current code in a big readable format. If they can't find the link, copy it from the stay's At a glance page (Copy link) and send it again in the booking thread.
2. The Lock Is Offline
If Staykey can't reach the lock, it can't put the new code on it. The previous guest's code may still be the only one the lock knows.
How to tell: The lock shows Unavailable on the property's integration page, or the lock's row on the stay shows Failed with We couldn't reach the lock while programming. Check that it's online and retry.
Fix:
- Home Assistant, Z-Wave or Zigbee lock: the hub is usually the issue. Check that Home Assistant is online, and restart it if needed
- Home Assistant, Wi-Fi lock: the property's Wi-Fi is usually the issue. Restart the router
- Cloud-account lock: open the brand's own app and check that the lock (and its bridge, if it uses one) is online there
- Once the lock is back, click Retry on the stay's Access Code page, or Retry on that lock's row to retry just that lock. The page follows along live: the lock shows Programming… until it reports back, then Active or Failed. You can also click Retry now on the failed entry in the activity feed.
See device not responding for the full rundown.
3. The Code Isn't Active Yet (or Anymore)
A stay's code works from one hour before check-in until check-out. A guest who arrives at 11 a.m. for a 3 p.m. check-in will be turned away by the lock until 2 p.m. After check-out, Staykey removes the code.
On a Home Assistant lock, Staykey programs the code when that window opens. On a cloud-account lock, the code is loaded ahead of time and the lock only accepts it inside the window.
How to tell: The Lock programming card shows the window as Valid [from] → [until], and it doesn't include now. Before the window opens, the code shows Pending.
Fix:
- If you've approved an early check-in: open the stay, go to Guest → Stay dates, change the Check-in time, and click Save. Staykey moves the code's window to match, so the code starts one hour before the new time.
- If the guest has extended their stay: change the Check-out time (or date) the same way. See what happens when a guest extends their stay.
- Otherwise, let the guest know when the code will start working.
4. The Lock's Code Slots Are Full
Many smart locks hold a fixed number of codes. If the lock is full of codes Staykey doesn't manage (old owner codes, codes set at the lock by hand), there may be no room for the guest's.
How to tell: The lock's row on the stay shows No slots or Failed with The lock has no remaining slots, or the activity shows No free code slots on [lock].
Fix:
- Remove codes you no longer need, in Home Assistant or the lock's own app. Leave Staykey's codes alone: Staykey removes each stay's code at check-out on its own
- Then push the code again from the stay's Access Code page (the button reads Retry or Set Now)
On a cloud-account lock, change only codes you set yourself. If a Staykey code is changed or deleted in the brand's app, Staykey notices: the activity shows Codes on [lock] changed outside Staykey and you get an Access Code Failed notification. Click Retry and Staykey puts the code back.
5. The Battery Is Too Low
Below about 15–20%, most smart locks start failing intermittently — particularly on cold mornings or after heavy use. The lock may accept the code, beep, and fail to retract the bolt. Guests read this as "the code didn't work." A lock with dead batteries can't accept new codes either.
How to tell:
- Cloud-account lock: the battery level shows on its row on the property's Cloud accounts page, and the activity shows [lock] battery is low when the lock reports it
- Home Assistant lock: check the lock's battery in Home Assistant
Fix:
- If the guest is already at the door, have them enter the code, wait a few seconds, and try again (some locks need two tries at low battery)
- If the guest is not yet at the door and you can get there, swap batteries before they arrive
- Long-term, replace batteries on a schedule rather than waiting for them to die
Platform-Specific Gotchas
- Kwikset 910/914 (Home Assistant): Sometimes the lock responds to the wrong slot number after a Home Assistant restart. Clicking Re-program on the stay pushes the code again and fixes it.
- Schlage BE469 (Home Assistant): The keypad deactivates for 30 seconds after 3 wrong attempts. If the guest mis-entered a couple of times, they just need to wait. Staykey sends a Keypad Locked Out notification when a lock reports this.
- Cloud-account locks: if the code wasn't on the lock when the window opened, the lock's row shows Failed with The code wasn't on the lock by the start time, and you get an Access Code Failed notification. Check the lock is online in the brand's app, then click Retry.
- Yale Assure: The Yale keypad needs the
# key pressed after the code. Non-obvious, worth adding to your house guide.
The Nuclear Option
If nothing above diagnoses the issue, the fastest path for the guest is:
- Remote unlock (Home Assistant locks only). The guest's own dashboard has an Unlock button for each Home Assistant lock on their stay, as long as the lock is online. Ask them to open their Staykey link and tap Unlock. If the door isn't there, add it under Access → Devices on the stay. Cloud-account locks can't be unlocked remotely through Staykey.
- Backup method. If you have a lockbox or a keyed deadbolt override, walk the guest through it while you troubleshoot. With cloud-account locks, keep one.
- After the guest is inside, open the failed entry in the activity feed. Its details explain what went wrong and list each attempt.
Once the immediate issue is resolved, check the lock and the stay so the next guest doesn't hit the same wall.
Still can't figure it out? Contact support with a link to the stay and the lock model. We can usually identify the root cause within an hour.