Install Keyless Entry to Your House, Building, or Office

Published April 5, 2020  ( 5 min read )
automation

With the advent of newer and newer technologies, smart phones have become an essential tool in our day-to-day life. In addition to talking over the phone, it can help us in several other day-to-day tasks in life. Smart phones can also provide a key-less entry to our house or office building so that we do not have to carry keys with us any more.

In this blog, you will learn how to install a key-less entry system for your house or building. With the wifisecureaccess system installed and configured, you will be able to open the door of your house or building using your mobile phone. The system uses AES encyption giving you the desired security. No un-authorised person will be able to open this door. As we are using a 'Fail Secure' type of electric strike on the door, you can also use your existing keys to open the door as well. So, lets get stated:

Things we need


  1. WifiSecure Access Smart device
  2. Electric Door Strike for the door
WiFiSecureAccess smart device can be purchased from Amazon.

Fig 1: WiFi Secure Access Smart Device



Electric door strike is an elecromechanical device that is fitted on the door to activate/deactivate the lock. The following figures give some detailed view of electric door strikes.

Fig 2: Electric Door Strike

Fig 3: Electric Door Strike Parts explained

Fig 4: Electric Door Strike Fitted On door

Fig 4A: Electric Door Strike Fitted On door

There are several makes and models of door strikes available in the market. You can buy from anywhere of your choice. Make sure that its voltage and current rating are 12V, 400ma(or less). A 'Fail Secure' type door strike is recommended so that the door remains locked in the event of a power failure or system failure. You can also use a 'Fail Safe' type of an electric strike, if you do the cabling as in Fig 5C below. Normal keys can still be used during such failures. Given below is a link from Amazon just to show one place where you can buy from. The link below is just an example, and not a recommendation to buy this. You can buy any electric door strike of your choice so long as its rating matches with the smart device. If this link is not avilable, search in ebay or amazon for 'electric door strike'.


Step 1

Install the door strike on the door as shown in Fig 4 and Fig 4A. You may get the help of a tradesperson to fit this on the wall, if you do not have enough tools and skills to do so. When fitting the door strike, its two cables have to be brought out neatly to the smart device.

Fix the smart controller anywhere inside of the house/building such that nobody can tamper with it from outside. You can either install it hidden inside the wall, or exposed. It can be either near the door or anywhere far from it where there is power and WiFi. Run the cable from the electric strike's coil to the smart controller, preferably hidden within the wall.

Step 2

Connect the cables as shown in Fig 5, Fig 5A or Fig 5B if the electric strike is 'Fail secure' type. Connect one wire of the electric strike to P0 and the other wire to VDD on connector J9 of the device. Connect a wire from VDD on coonector J9 to 12V on connector J2 of the smart device.

Do the cabling as in Fig 5C, if the electric strike is 'Fail Safe' type.

Fig 5: Cabling External 12V loads to Smart device

Fig 5A: Cabling of door strike to smart device

Solenoid can also be connected through the RELAY of the smart device as per the Fig 5B and 5C. If you want the solenoid to be normally ON, then use the cabling as shown in Fig 5C. In this diagram, the power supply can be either the onboard 12V or any external power supply. If you use external power supply, you can use electric strikes of higher current and voltage rating (upri 240V and 10A). Make sure to add an external diode as shown in the diagram
Fig 5B: Cabling of solenoid through RELAY (Normally OFF)


Fig 5C: Cabling of solenoid through RELAY (Normally ON)

Note: If you have some other controller already connected to the coil of the electric strike, you can still cable this smart device in paralell with it. If you want to do that, use the external power supply to VDD or RELAY instead of using the 12V from the device. Other than that all other cabling is the same as shown above

Next, apply power to the device. Depending on what power is available near the door, either connect 12V to connector J1, or connect 240/110V to connectors J3 and J4 of the smart device. Put the jumper PJ1 depending on what power source you are using.

Fix the smart controller anywhere inside of the house/building such that nobody can tamper with it from outside. You can either install it hidden inside the wall, or exposed. It can be either near the door or anywhere far from it where there is power and WiFi. Run the cable from the electric strike's coil to the smart controller, preferably hidden within the wall.

Step 3

Once the installation and cabling of the electric strike and smart device are completed, put power on the device. If this is brand new device, follow the steps given in section 2.0 'Installation' of the documentation. That section explains how to set up WiFi of this device. It is a requirement to have WiFi available at the door. If the above steps are completed successfully, you should be seeing the LED of the smart device red

Allowing multiple Users: After completing the steps in section 2.0, create a group of those who will be allowed to use this entry door. The steps are as explained in Section 4 'Allowing Multiple Users' of the documentation. So, complete those steps. When creating a group, name that group with meaningful name such as 'My House' or anything that you like. If you are using this on a door/gate of an office/building, have a look at all extra features and configurations available under Section 4 of the documentation.

After completing the above steps in section 2.0 and 4.0, click 'Configure Device' under 'Device Admin' in the left menubar of the Dashboard. That will take you to a page similar to Fig.6.

Fig 6: Configure Device for Entry Door

On this page, give a name to this device. Give a meangful name such as 'Front Door' or something like that. We recommend adding the word 'Door' in the name of the device so that the device will autroconfigure for door. Select the group name that you just created for device group. Select 'ENTRY/EXIT' for Use Type. You may set its timezone. Select D7 Type as 'TWO STATE ON/OFF'. If a field 'Parking Lot' is seen on the above form, select None or '----' for it. Then press submit.

As an optional feature, as explained in section 6.1 of the documentation, you can install a magnetic sensor switch that can detect whether or not the door is open or closed. Then connect that sensor to D7 and GND of the smart device. Given below are some pictures.
Fig 6A: Magnetic Door Sensor on a door

Now click on 'Configure Auto controls' under Device Admin in the Dashboard. You will see a form similar to Fig 7.
Fig 7: Configure Door Portcontrol

As explained in section 6.1 of the documentation, these controls are autogenerated. In here, you have to select the port of the smart device that is connected to the electric strike on the door. If you have cabled P0 of the smart decvice to the door strike, select P0 for OutPort in the first row of portcontrol. If you have cabled solenoid through relay of smart switch, select RELAY. The Duration field is the duration in seconds the actuator on the door will remain activated. The smart controller deactivates it after that duration. So, it is assumed that the door has to be closed either manually or by any external mecahnism after opening it. If you want the actuator to remain activated until you give another command to close it, you can override this by adding "NoAutoClose" in the name of the port label (not in the device name). If you override, it will not assume that the door is closed automatically. Instead, it will keep the actuator activated until you give another command to close it. In other words, if 'NoAutoClose' is present in the label of its port, and if you say, 'Hey Google, open ...', it will put the actuator ON and keep it ON until you say another command 'Hey Google, Close ...'.

The second row and third row are two portcontrols for notifications and warning. By default, they are disabled, as its input port is None. As an optional feature, if you want the BUZZER to be activated whenever the door remains open (after a delay duration), you can enable it if you have connected a sensor on the door. If you have connected a sensor such that it closes when the door is closed, and if you have connected that switch to D7 and GND of the smart device, select D7 for input port. Select the logical operation as 'GREATER THAN OR EQUAL TO' and Value as 1.0. If you want an email notification also sent to you when the door remains open, then in the third roiw of controls, select 'D7 ON/OFF' for input. You can also set delay as well as repeat time periods, if you want these notifications to be repeated if the door remains open. Press Submit after making these selections in the portControl window (Fig 7).

On the other hand, if you want just emails sent, but not the buzzer, select None for input for Buzzer and select D7 as input for the third port control. Press Submit when you are satisfied with the values chosen, Normally, the default values are fine enough. You can change these any time by re-visiting this page. Note: If email alerts are enabled, email is sent to an email address set in the 'Alert Email' field of the 'Configure Device' setting of the device (under Device Admin in the Dashboard menu). You can change that email address to anything you like. Unless set, it defaults to the email address of the owner of the device.

Also note: If you have cabled sensor such that it closes when the door is open, then select 'LESS THAN' in the 'Put ON/OFF when' fields of the above controls.

Step 4

If you are interested in activating these doors using Google Home Assistant or Amazon alexa, follow the steps in section 2.10 and 2.11 of the documentation. That explains how to discover these devices in Google Home Assistant or Amazon Alexa. Note: If you want to use Google Home assistant or Amazon Alexa only and no plans to use NFC tag or QR Code, you need not fix those tag outside the door.

Step 5

You are now set to go. You have completed all the installation and configurations. Open wifisecureaccess app on your mobile phone (install it, if you have not yet done so as per step 2.1 of the documentation), and press 'Activate a Device'. You will see this device listed there. Press the device. It will activate the door strike and you can push open the door. You will hear a beep sound from the device. You will also see the LED goes green when the door's electric strike is activated. It stays activated only for a duration set in the first portcontrol (as done in Step 3). You can change this duration in the first portcontrol (Fig 7 above). If you paste the QRCode label of this device anywhere near the door, you can open or close the door by pressing 'Scan QR Code' on the app and scanning the QR Code. You must have received the QR code lable when you purchased this device. You can also print additional labels by clicking 'Show QRCode Label' under Device Admin in dashboard. Save that image and print it on your printer. As explained in section 2.7 and 2.9, you can use NFC tags instead of QR Codes, if you prefer NFC tag. If you are using Google Home Assistant, open Google Home Assistant on your smart phone and say "Hey Google, Open *name of the device*". Similarly, for Alexa, you can say "Alexa, open *name of the device*.

If you are interested in knowing the use records of this door, you can press 'Device Use Records' under Device Admin in Dashboard. The system keeps use records for 30 days, and use records will show you who opened the door when.