More seriously, part of the reason I did the project was to see if I could have things react to the dhcp server, and not have the dhcpserver run things for me. No good reason, other than wanting all the components in my home network to run in their own VMs, and so having everything talking via etcd is convenient.
That said, if I didn't have copious amounts of free time, I definitely should have done that.
This is the lock that Im using: http://www.ebay.com/itm/12V-Electromagnetic-Door-Locks-Magne... . Its electromagnetic and not a turn lock.
And the actuator that I built to control the lock is something like this: https://www.tindie.com/products/Armtronix/wifi-esp8266-solid...
The callback script in the dhcp server pushes an event to a mqtt broker on dhcp commit event.
And all of these orchestrated by home-assistant.io, on top of which, we have also mobile and voice (alexa) integration too.
My original source: http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-...
Edit: Fix code formatting.