Schlage

Schlage is a lock manufacturer whose Encode range of smart deadbolts and levers connects directly to your WiFi network, without needing a separate hub or bridge.

The Schlage integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] controls those locks through Schlage’s cloud API. It reports lock state, battery level, and keypad status, and exposes the lock’s settings so they can be changed from Home Assistant.

Here are some of the things you can do once your locks are in Home Assistant:

  • Lock all doors at bedtime or when the last person leaves home.
  • Get notified when a lock jams, its battery runs low, or its keypad is disabled after too many wrong codes.
  • Give a guest or pet sitter a temporary PIN code that stops working when their stay is over.

Supported devices

The following devices are known to work with the integration:

  • Schlage Encode Smart WiFi Deadbolt
  • Schlage Encode Smart WiFi Lever
  • Schlage Encode Plus Smart WiFi Deadbolt

Other Schlage WiFi locks that you control with the Schlage Home app may work, but have not been tested and may not support every feature.

Unsupported devices

The following devices are not supported by the integration:

  • Schlage Connect locks, which use Z-Wave instead of WiFi. Use the Z-Wave integration instead.
  • Locks that you control with the Schlage Breeze app, which uses a different cloud service.

Prerequisites

  1. Install the Schlage Home app on your phone and create a Schlage account.
  2. Add your locks to your account in the app.

The integration signs in with the email address and password of your Schlage account. Only accounts that sign in with an email address and password are supported.

Configuration

To add the Schlage hub to your Home Assistant instance, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

Username

The email address of your Schlage account.

Password

The password of your Schlage account.

Supported functionality

The Schlage integration provides the following entities for each lock.

Binary sensors

  • Keypad disabled: Indicates that the keypad has been disabled because too many incorrect codes were entered. Turns off again when the lock records a newer event in its activity log.

Locks

  • Lock: Locks and unlocks the lock, and shows whether it is locked, unlocked, or jammed. The entity has the same name as the lock itself. The changed_by attribute shows what last changed the lock, such as the thumbturn, the keypad, or a mobile device.

Selects

  • Auto-lock time: How long the lock waits before it locks itself.
    • Options: Disabled, or a delay. The available delays depend on the lock model, and match the ones in the Schlage Home app.

Sensors

  • Battery: The remaining battery level of the lock, as a percentage.

Switches

  • 1-touch locking: When turned on, you can lock the door from the outside with a press of the Schlage button.
  • Keypress beep: When turned on, the lock beeps when you press a key.

List of actions

The Schlage integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.

  • Add PIN code (schlage.add_code) Adds a PIN code to a Schlage lock.

  • Delete PIN code (schlage.delete_code) Deletes a PIN code from a Schlage lock.

  • Get PIN codes (schlage.get_codes, returns data) Returns all PIN codes stored on a Schlage lock.

For an overview of every action across all integrations, see the actions reference.

Schlage automation examples

Here are a few ideas to get you started.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the visual automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Automation: Notify you when a lock jams

A jammed lock may leave your door unsecured. Send a notification to your phone as soon as it happens.

  • Trigger: Lock jammed
    • Target: Front door lock
  • Action: Send a notification message
    • Target: My Device (notify.my_device)
YAML example for a jammed lock notification
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Notify when the front door lock jams"
triggers:
  - trigger: lock.jammed
    target:
      entity_id: lock.front_door
actions:
  - action: notify.send_message
    target:
      entity_id: notify.my_device
    data:
      title: "Front door lock jammed"
      message: "Check the front door. It may not be locked."

Automation: Notify you when the keypad is disabled

When someone enters too many incorrect codes, the lock disables its keypad. Find out right away, because it could mean that someone is trying to get in.

  • Trigger: State: Keypad disabled changes to on
  • Action: Send a notification message
    • Target: My Device (notify.my_device)
YAML example for a disabled keypad notification
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Notify when the front door keypad is disabled"
triggers:
  - trigger: state
    entity_id: binary_sensor.front_door_keypad_disabled
    to: "on"
actions:
  - action: notify.send_message
    target:
      entity_id: notify.my_device
    data:
      title: "Front door keypad disabled"
      message: "Too many incorrect codes were entered."

Data updates

The Schlage integration pollsData polling is the process of querying a device or service at regular intervals to check for updates or retrieve data. By defining a custom polling interval, you can control how frequently your system checks for new data, which can help optimize performance and reduce unnecessary network traffic. [Learn more] Schlage’s cloud API for the state of your locks every 30 seconds. After you lock or unlock from Home Assistant, it also updates right away. Changes made in another way, such as with the keypad or the thumbturn, can take up to 30 seconds to show up.

Known limitations

  • The integration only works through Schlage’s cloud. When your internet connection or Schlage’s service is down, you can’t control your locks from Home Assistant.
  • A lock that has been switched from WiFi to Bluetooth in the Schlage Home app is no longer connected to the cloud, so Home Assistant can’t control it and may show an outdated state.
  • The integration can create permanent PIN codes and temporary PIN codes, but not PIN codes with a recurring weekly schedule.
  • Adding new locks to your account, managing key fobs, scheduled locking, and firmware updates are not supported. Use the Schlage Home app instead.

Troubleshooting

Can’t sign in during setup

Symptom: “Invalid authentication”

When you set up the integration, the form shows the message “Invalid authentication”.

Description

Schlage didn’t accept the email address and password you entered, or your account doesn’t sign in with an email address and password.

Resolution

  1. In the Username field, enter the full email address of your Schlage account.
  2. Check that you can sign in to the Schlage Home app with the same email address and password. Accounts for the Schlage Breeze app are not supported.
A lock is missing

Symptom: A lock in the Schlage Home app doesn’t show up in Home Assistant

Setup succeeds, but one or more of your locks are missing.

Description

The integration only finds locks that are connected to your Schlage account through WiFi. A lock that has been added to Apple Home may no longer be available through Schlage’s cloud.

Resolution

  1. In the Schlage Home app, check that the lock is added to the account you used to set up the integration, and that it is connected to WiFi.
  2. If the lock has been added to Apple Home, remove it from there.
A lock is unavailable

Symptom: The entities of a lock are unavailable

The entities of one lock are unavailable, while your other locks work.

Description

Schlage’s cloud reports that the lock is not connected.

Resolution

  1. In the Schlage Home app, check that the lock is online.
  2. Check the battery level of the lock, and replace the batteries if needed.
  3. Make sure the lock is within range of your WiFi network.

Removing the integration

This integration follows standard integration removal. No extra steps are required.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. Next to the entry you want to remove, select the three dots menu. Then, select Delete.
    • Depending on the integration, the entries are listed under one of the following headings:
      • Devices
      • Hubs
      • Services
      • Integration entries
  3. To confirm, select Delete.
    • Home Assistant also deletes the devices and entities of the entry.
  4. If Home Assistant asks you to restart, restart Home Assistant.
  5. If Home Assistant asks whether to also delete the application credentials, select Remove or Keep.