Wifi Door Lock

I use an ESP-01 with a USB adapter with http://www.remotizer.com/ for (secure) remote control of my door lock. The remotizer works with a secure (paired) RF based remote control powered by a battery. Opening the case I wired V and G to +3V3 from the ESP-01. GPIO0 and GPIO2 were spliced into the lock/unlock switches of the remote. Total cost: $50 for the remote, $2 for the wifi controller, $2 for the USB adapter, and $2 for the USB power adapter. It rivals similar devices costing $200 and more that connect through the cloud (exposing your home to a lot more risk).

Use the ESP-01 as an ESP8266 based device with AutomationManager (see ESP8266). The ESP-01 has two I/O pins: GPIO0 as pin3, GPIO2 as pin 4 in MppServer. Use the MppServer "Toggle" type (see the main ESP8266 page) to control the door lock - this implements the GPIO0 and GPIO2 as momentary (0.5s) outputs to control the switches. When wired as shown, the remote locks using the AutomationManager ON button and unlocks using the OFF button.

A rule in the AutomationManager/WemoServer is triggered by the unlock event to turn the outside lights from sunset to sunrise. The outside lights are controlled by a WeMo wall switch.

Any USB power source can be used with the Wifi adapter for the Remotizer's remote board. Power comes from the USB/Flash adapter.

Power from the USB/flash adapter goes to V and G of the Remotizer board. The GPIO0 and GPIO2 pins from the ESP-01 connect to the switch pins on the side furthest from the power pads at the base of the remote board.

The entire package fits neatly into a plastic box and is then plugged into an ordinary USB adapter for power. It can be located in an outlet that's close enough to the door for the RF signal and the router for the WiFi signal.

Setup a shortcut on your phone to control the lock: