Use this with individual buttons or add it to a batch action, so you can press one button and have the locks lock, the lights fade, the music fade, the Mac sleeps, and the fan turns on.
Automatically open the lock
The built-in alarm clock app can automatically unlock your door, since the whole system is controlled from the same app.