Best way to automate door locks

Copy paste the code in this link.
https://community.hubitat.com/t/help-automatically-locking-back-door/34998/6

It goes in apps code and then hit save. Add user app on the apps tab and then set your setting for lock time.

3 Likes