What this package does is fairly simple. It lets you define sensors for when a lock-code should be active. A lock-code is a “user slot” for a specific lock. When a lock-code sensor turns true/false the code should be entered/deleted from the lock. Then through the setup script, it will configure a lock with as many code slots as you define in the .ini file, in addition to generating the lovelace for that lock.
I pushed out a significant update to the first release of this project. It’s still very much a work in progress and this release should still be viewed as a beta.
So what’s different between this release and the prior? Besides bug fixes, it boils down to support for multiple locks and the setup procedure.
Place the files from github into a directory called packages/lock-manager. From a command prompt, modify the setup.sh script so that it is executable.
chmod +x setup.sh
FrontDoor.iniand replace the values in the file to be used to configure your lock. For example, specify the number of PIN slots you want for this lock. Make sure you have modified your lock’s entities so that you have appended _FrontDoor (or whatever you are naming your lock) after every entity for that lock. Also make sure you’ve specified the “base” name for the lock in the ini file.
Repeat step 2 for each additional lock you have. So you if you have another lock in the back, copy FrontDoor.ini to BackDoor.ini and modify those values accordingly.
./setup.shand this will take each ini file in the directory and create a subfolder for each lock. So if you have two ini files and one had a lock named FrontDoor and the other a lock named BackDoor you will end up with two directories named accordingly. Restart Home Assistant.
In each subdirectory created in step 4, there will be a lovelace file which contains a new view representing that lock. So for the example in step 4, you should have the following two files:
If you are using the GUI lovelace design, open the “raw source” and paste the contents of each file at the end of the raw source YAML. Save the code and exit the GUI editor and you will see two new views representing the two locks.
Feedback, as always is welcome.