Skip to main content

How Smart Lock Code Communication and Backup Codes Work

Understand when Hospitable sends guest access codes, how backup codes are used, and what happens with last-minute reservations

Pierre-Camille Hamana avatar
Written by Pierre-Camille Hamana
Updated yesterday

Hospitable automatically manages smart lock code delivery to help ensure guests receive the correct access code at the right time. This article explains when code messages are sent, how backup codes work, and what happens if there’s an issue setting a reservation-specific code.


Guest Code Communication

Understanding the %smartlock_code% Shortcode

Once you've connected your smart lock and matched it to your property, we highly recommend adding the %smartlock_code% shortcode to your check-in messaging rule.

The %smartlock_code% shortcode automatically inserts the guest’s reservation-specific smart lock code into your message, ensuring seamless access at check-in time.

Example:

Message template in Hospitable containing the %smartlock_code% shortcode in the message body


When the message is sent, the guest will see their actual lock code instead of the shortcode.


Note: The %smartlock_code% shortcode only works if the property is connected to a supported smart lock and the lock is properly matched to the listing in Hospitable.


When the Guest's Code Is Sent

If you include the %smartlock_code% shortcode in a scheduled message

If you include %smartlock_code% in a scheduled message before check-in, your messaging rule settings determine when the code is sent.

Unless there is an error setting the guest’s code on the lock, Hospitable will not send a separate automatic code communication message. This is because the code has already been shared.

If you don't use the %smartlock_code% shortcode, or if there is an issue setting the guest's code

If:

  • You do not include %smartlock_code% in a scheduled message before check-in, or

  • There is an issue setting the reservation-specific code

Hospitable will send a fallback message, called the Smart lock backup code message, which is enabled by default.

This message is sent at:

Check-in time + any configured buffer time

This ensures guests receive a valid access code when it becomes active.


Default Code Communication Message (Smart lock backup code message)

Hospitable provides a default fallback message to ensure guests receive access details if needed. By default, this rule is called the Smart lock backup code message.

You can find and edit this message under: Guest Experience → Messaging rules

The rule:

Smart lock backup code message template page in Hospitable for smart lock code communication

Hospitable will only send this message if:

  • The messaging rule is enabled, and

  • There was an issue setting the code on the lock, or

  • The code has not already been shared using the %smartlock_code% shortcode in another message


Editing the Smart Lock Backup Code Message

When editing the message, you can:

  • Update the name of the rule

  • Adjust the message's wording and modify the tone to match your brand

  • Add another language

  • Update settings

    • Exclude last-minute bookings

    • Add a picture

    • Specify a reservation duration

    • Change the message's scoping

The %smartlock_backup_code% shortcode must remain in the default code communication message and cannot be removed.

You can continue using %smartlock_code% in your own messaging rules without affecting this fallback message. If you already shared a code using %smartlock_code%, the Smart lock backup code message will only send if there is an error setting that original code.

Messaging rules page in Hospitable with the smart lock code communication message open for editing

Where the Code Is Delivered

The delivery method depends on the booking source:

  • Airbnb, Vrbo, Booking.com → Sent through the platform’s messaging system

  • Direct bookings or manual reservations → Sent via email

Sending Host (Airbnb Only)

If multiple hosts are scoped for the same listing, the code communication message will be sent from the last host to send a message to the guest.


Backup Codes

Backup codes ensure guests can still access the property if Hospitable cannot confirm that the reservation-specific code was successfully set on the lock.

How Backup Codes Are Created

When you match a smart lock to a property in Hospitable:

  • Two backup codes are automatically created and set on your lock

  • They are always active on the lock

  • They are not shared with guests unless needed

By default, backup codes:

  • Begin with “HOSP”

  • Are followed by numbers

  • Match the PIN length configured for the lock


When Backup Codes Are Shared

If Hospitable cannot confirm that the reservation-specific code was successfully set on the lock, a backup code will automatically be shared with the guest (as long as the smart lock backup code message is enabled). No action is required from you.

When a backup code is used:

  • It is included in the smart lock backup code message

  • It becomes active at check-in time (including buffer, if configured)

  • It remains active until check-out time + buffer

  • After that time, it is automatically deleted

  • A new backup code is provisioned for future use

This process ensures there are always active backup codes available on the lock.

Note: If your lock becomes disconnected (for example, due to a dead battery, WiFi outage, or another issue), Hospitable cannot set new codes on the lock. If the lock remains disconnected and all backup codes are used and cannot be replaced, guests will not receive access codes until the lock is reconnected.


How Codes Work for Last-Minute Reservations

If a reservation is confirmed:

  • After check-in time, or

  • After the code activation time (including buffer, if enabled)

Hospitable waits five minutes after the reservation is accepted before triggering the code communication message.

During this five-minute window:

  1. The system attempts to create the reservation-specific code (based on your smart lock settings).

  2. If confirmation is not received within five minutes, a backup code is sent instead.

This process ensures guests receive access as quickly as possible, even for last-minute bookings.

Did this answer your question?