Hi Fellow HAers-
I struggled with trying to add the Schlage Deadbolt to Home Assistant. The answers are buried in multiple thread posts and component posts. I hope this helps and consolidates it for folks!
Steps to Add Schlage Deadbolt Z-Wave Connect to HA
if you already added your lock but not securely scroll to bottom of this post to learn how to remove it first
-
In order to add secure ZWave device (which the Schlage lock is) you need to add a network key to your ZWave configuration.
A) Go to your command line in your Pi and execute this command
cat /dev/urandom | tr -dc '0-9A-F' | fold -w 32 | head -n 1 | sed -e 's/\(..\)/0x\1, /g' -e 's/, $//'
B). This command randomly generates a network key for you copy that (it looks like you can also go to a website to grab a key, but I just used the command line) -
Open your configuration.yaml file find your Zwave configuration parameters it’ll look like this (maintain formatting)
zwave:
usb_path: /dev/ttyACM0
network_key: "<YOUR NETWORK KEY>"
-
Restart Home Assistant
-
Find your programming code for the Schlage Lock - it was on the back of the lock prior to installing
-
Navigate to the ZWave Manager in the HA UI ->Configuration -> Z-Wave
-
When you’re ready click “Add Node Secure”
-
Now go to your Schlage Lock and follow these instructions (came with your lock)
-
If you saw a check mark on the lock after a few minutes you should be able to see the lock appear in your HA States search for Schlage
-
Optional if you want to test to see if it works from a lock/unlock perspective go to services (within Developer tools). Let’s say the deadbolt is unlocked - select “lock.lock” service, then “lock.locked” entity, in the service data put
{
"entity_id": "lock.locked",
"code": "<your access code, not programming code>"
}
How to remove the Schlage Lock from ZWave, because you didn’t add it securely
1). Go to your Z-Wave manager in HA UI - Configuration -> Z-Wave
2). Click Remove Node when you are ready
3). Go to your Schlage Lock and follow the instructions below, same as enrolling
4). It’ll take a little bit for Home Assistant to remove it completely, wait a few minutes and restart HA
5). Now go back to the top to add the Deadbolt using Z-Wave “Add Node Secure”