Initial Common Setup and Configurations

This document explains how to setup a device, and do the basic minimum configurations. The instructions and steps given in this document are applicable to all devices and controllers of Bhadre Automation.

1  Setting up the App on your Smart Phone

If you have not downloaded the bhadre app yet, please download it to your smartphone now. Search for bhadre in either Apple Store or Google Play store.

App Store Icon Google Play Icon

Once downloaded, open the app and press Admin Dashboard. It will prompt you to enter your username and password to login. If you have not registered yet with https://wifisecureaccess.com, press 'Create NEW Account' button on this page and register.
Fig 90: App's opening page

Fig 91: Login Page

Fig 92: Register (Create a new account)

Follow the prompts and instructions. It needs your email address as user name. You need to set your password. first name, last name and telephone numbers are optional. Password must have at least 8 characters (maximum 20 characters) and it must contain at least one lower case letter, one upper case letter, one numeric. The system will prompt you for your email verification. The system uses email address as your username. It also uses it to send notifications of events in the device, if you have configured the device to send you notifications.

The other two fields "Enable Two Factor Auth' and 'Timezone' will be defaulted to 'No' and 'US/Pacific' respectively. You can enable Two Factor Authentication by selecting 'Yes' for this field, if you want to. When selected 'Yes', a confirmation code will be sent to your email whenever you try to login. This is an additional layer of security for your account. The timezone is your timezone. Select it from the pull-down menu. The default is US/Pacific. Setting this to your timezone will help the system display the times of all your activity in your local time. All these parameters can be changed any time later by clicking 'My Profile' under 'User Admin" in the Dashboard.

If you are using a smart phone to register, you will see a page similar to Fig 93. Or, any time in the future, if you open the app and click on the Admin Dashboard, the same display will be shown. You will notice that all the admin menu is collapsed. To see the admin menu, click on the three lines at the top right corner of this page as shown in Fig 93 and 94.
Fig 93: Dashboard Menu on Smartphone (collapsed)


Fig 94: Dashboard Menu on Smast Phone

2  Setting WiFi of the Device

There are two ways of setting the WiFi of the device

  • Using the hotspot of your smart phone
  • Setting the device as a web server and using a browser (Chrome preferred) on your computer or smart phone. Refer to section 3.5 of this documentation for this method.

Using the HotSpot on your smart phone

If this is a brand new device, its WiFi has been factory reset to the following:

So, when the device is powered ON, it is trying to join this WiFi. Therefore, in order to initially connect to WiFi, you need to setup a mobile hotspot on your smart phone temporarily to this SSID and password so that the device gets connected to internet which will enable you to change its WiFi. Note: (The device is not capable of 5G and so, WiFi must be 2.4G.)

If you are using iPhone, change its Personal hotspot WiFi settings to match the above and put Personal hotspot ON. To change your iphone's SSID, you need to change the name of your phone to MyPhone. This can be done in settings → General → About → Name. To change password, Settings → Personal Hotspot → Wi_Fi Password. Once changed, click on Allow Others to Join so that your Personal Hotspot is ON with this SSID and password. If you are using IPhone 12 and above, you will see a button there named "Maximize Capability". That is normally OFF. You need to turn that ON so that it will work on 2.4GHz.

If you are using an android phone, go to settings → Tethering and Mobile hotspot. Then click Mobile hotspot. Then click on the three dots at the top right and click 'Configure hotspot'. Then change the ssid and password of your mobile hotspot to 'MyPhone' and '12345678'. Note: If your smartphone is capable of 5G hotspot as well as 2.4G, make sure that 2.4G is set on the hotspot of your smartphone as the device is not capable of 5G. Also, check the Timeout settings of the hotspot. Set it such that it does not timeout too soon while you are using Hotspot. You can set it to Never time-out. After setting it, switch on your mobile hotspot (in the previous menu).


Once the personal Hotspot is ON, put on the device, if it is not already ON. You will notice that the device will join that WiFi and connect to internet. You will see in a few seconds that the LED changes colour to RED, and staying RED. If that is not happening, make sure that your personal Hotspot is configured correctly and that it is ON. If this is not happening, there is a problem with the WiFi. You can do a factory reset of the device as explained in section 3.5 of this documentation and try again. If the device is still not joining WiFi, ask for help by contacting contact@wifisecureaccess.com.

If the device is connected to WiFi and conected to internet, the LED will stay steady RED. Then, you need to take the ownership of this device as explained in section 3.3 below before you can set its WiFi.

3  Taking Ownership of the Device


There are two ways in which you can take the ownership of a new device that you just bought. One method is by scanning the QRCode of the device using your smartphone, and the other method is by using a browser on a computer. Before you proceed, make sure that you have turned on the device and it has joined the WiFi of the Hotspot of your smart phone, as explained in the previous section of this documentation.

In the first method. open wifisecureaccess app on your smartphone and go to Scanning page and press Scan QRCode button. The camera will come ON. Scan the QR code of the device. The QRCode is on the label pasted on the box. Then follow the prompt. You will be prompted to confirm the buzzer sound as well as the color of the LED a few times to make sure that you have this device in front of you, having connected to internet. If everything is correct, it will assign the ownership of this newly bought device to yourself.

For the second method, open https://wifisecureaccess.com and click on Dashboard. If you are already logged in, you can see a tab "Take Device Ownership" in the sidebar menu. If this is your first device, you will see that on the main page as well. Click on that, and follow the prompt. After getting the confirmation that the device is turned on and connected to internet through its WiFi, you will be prompted to enter the QRCode or Mac address of the device. On the label of the device, you will see either the mac address or the QRcode of the device. Enter it as shown on the label. Follow the rest of the prompts. If you respond to all the prompts correctly, the ownership of the device will be assigned to you and a popup window will appear confirming it.

Fig 105: Intial page view.

Once you have taken ownership of the device, your main dashboard page may look like the one shown in Fig 106, if you are using a smartphone. And, if you expand the dashboard menu, you may see several options as shown in Fig 107. If you are using a browser on a computer, you will see the dashboard menu on the left side bar.

Fig 106: Dashboard view when you own a device

Fig 107:Dashboard expanded menu when you own a device

Once the ownership is transferred, click on 'Access Control Admin' in the Dashboard menu. Then click on 'My Devices in Access Control'. You will see your device listed there. If you have more than one device, all of them will be listed there. Once the device is assigned to you, nobody other than you will be able to configure it. In the later sections of this documentation, you will learn how to allow others to use this device. You will also learn how to configure this for your specific needs and how to use it.

4  Changing WiFi of the Device

If the device is already connected to internet, you can change its WiFi any time as per the steps given here. In the dashboard menu, click on 'Devices Admin' to expand that menu. Then click on 'Set WiFi'. It will take you to a page where it will prompt you to enter the SSID and password of your WiFi. Make sure that the WiFi is 2.4G and not 5G. The device is not capable of 5G WiFi. If the device is running firmware version greater than 4.2, you will see a pulldown menu with all the available WiFi at that location. You can choose one, and enter its password. Once entered, click Submit. If successful, you will see the device restarting, the led blinks blue and then changes to steady Red. The device is now set to go and ready for use.

If you accidentally entered wrong ssid or password, or if the device is not getting connected to the new WiFi, you will hear double beep from the device. The device will revert back to the previous ssid and will try connecting to it. If it is unsuccessful to connect to previous ssid, it will stay in that loop of attempting to connect, and LED will stay BLUE with occasional flashing. You can also do a factory reset as per the steps given in section 3.5 of this documentation. If you are running older firmwares, you will have to do a factory reset and repeat the steps given in section 3.2 and 3.4, if you entered wrong ssid and password.

If the device is still not connecting to your wifi, check the settings of your wifi router. Check if your router has set any limits on the nummber of devices that can connect to it. Also check if its wireless mode is 802.11bgn, and its channel setting is Auto.

If the device was connected to the hotspot of your smartphone before changing wifi, try disabling hotspot on your smartphone now. If changing wifi was not successful, the LED will start blinking blue again after a few seconds.

Fig 108: Setting WiFi of the Device.

The device will remember the WiFi that you set and will connect to that WiFi hereafter whenever power cycled or reset. If you have used mobile hotspot of your smartphone to get initial connection, you can switch that off now. You can change your smart phone's name and WiFi password to whatever they were initially. After switching off the hotspot on your mobile phone, try resetting the device by pressing the reset button on the device. If everything is set correctly, the device will restart and join the WiFi. You will see LED blinking Blue while trying to join WiFi and then turning to red when successfully connected to WiFi and connected to internet and the cloud server.

If this is not happening, there is something wrong either with the ssid and password that you entered, or with your internet connection through WiFi. Make sure that the ssid and password that you set are that of a 2.4G wifi and not 5G. Make sure that your router has internet connection. If anything has gone wrong, do a factory reset of WiFi as per the steps in section 3.5 of this documentation, and then try to set WiFi again.

5  Doing a Factory Reset of WiFi

The WiFi of this device can be reset to the factory reset any time, if you find a need for it. The factory reset WiFi is : ssid = MyPhone and password = 12345678.

If the device is running firmware version 4.2 and above, you can also set its WiFi using a browser on your computer or Smart Phone by doing a factory reset. This is another method of setting WiFi of the device. After doing a factory reset, follow the steps given here in this section to do so.

To do a factory reset, open the box of the device, and locate two push buttons marked Reset(SW1) and WiFi Reset(SW2). If you have installed Scanner box, you can do this on the Scanner box as well. If you open the Scanner box, you will find these two push buttons on the PCB of the Scanner box as well. WiFi Reset Button is also called Factory Reset button. Refer to Fig 109 below to locate these push buttons. If the device is operating at 110V/240VAC, make sure not to touch any of the high voltage tracks or terminals( terminal marked L and N on J2 connector) to avoid getting shock. Then, press and hold SW2 (WiFi Reset button). While holding it down, press and release SW1 (Reset button). Keep holding Factory Reset button until the device restarts and LED changes to flashing blue/green. Then, LED will change to BLUE. At this moment, the ssid and password of the device has been reset to 'MyPhone' and '12345678' respectively. You can release holding the factory reset push button at this time.

Fig 109: Factory Reset Push button on the device.


If the device is running firmware version below 4.2, it will attempt to connect to wifi with SSID = MyPhone and password = 12345678. This is the method that we discussed in section 3.2 earlier in this documentation. You will see LED Blue and flashing occasionally. If you have enabled hotspot on your smartphone, the device will connect to it. and the LED will turn solid RED. If it is unable to connect, LED will flash blue occasionally and stay in that loop until connected. Refer to section 3.2 of this documentation, and then follow section 3.3 to take ownership of the device and section 3.4 to change its wifi.

When the device is running firmware version 4.2 and above, the device will go into access point mode and operate as a web server. It will advertise an SSID = WiFiSecureAccess. LED will stay solid BLUE without any occasional blinking. Follow the steps below to set its wifi at this time. (Note: If you press reset push button again at this time, the device will change to the previous mode and LED will start blinking Blue and will attempt to connect to factory reset ssid)

Setting WiFi of the device using a browser when the device is in web server mode

If your device is running firmware version 4.2 and above, factory reset will put the device in web server mode advertising an SSID = WiFiSecureAccess, and LED will stay solid BLUE without any occasional flashing. If you look at the available WiFi in your smart phone or computer, you will see this WiFiSecureAccess there. You will see this only after doing a factory reset of the device that is running firmware version 4.2 and above, and when LED is staying solid Blue. Now, connect your computer or smart phone to this WiFi. Once your computer or smartphone is connected to this WiFi, open a browser (Chrome preferred) on your computer or smart phone and enter the ip address 192.168.1.1 in the url. You will see a window similar to the one shown in Fig 110 below.

Fig 110: Setting WiFi using a browser.

On this page, it will list all the available SSIDs. Enter your SSID and Password and press Submit button. If your entry is correct, the device will set the WiFi of your device to that. Then it will try to connect to that wifi. You will see LED flashing occasionally BLUE. If it is able to connect to this wifi, you will see the LED changing to RED and staying RED (solid RED). If this is a brand new device, as a next step, you need to assign the ownership of this device as explained in section 3.3 of this documentation. If ownership is already assigned, the device is ready to be used.

If it is unable to connect, the device will beep twice (after a few seconds of attempts) and will revert back to the factory reset ssid (MyPhone). Then, it will try to connect to factory reset ssid. If so, follow the steps as explained in section 3.2, or do the factory reset again and enter the correct ssid and password.

6  Setting a backup WiFi

If the device is running firmware version 4.2 and above, and if you have more than one WiFi at your premises, you can set up a backup WiFi on this device so that the device will switch over to the backup WiFi whenever the main wiFi fails. Unless you set a backup WiFi, the default backup wiFi is the main WiFi that you have set. If you want to set a backup WiFi, open the dashboard and click on 'Set Backup WiFi' under Device Admin. You will see a page similar to Fig 111. Just like the way you set the main WiFi in section 3.4, this page shows all the available WiFi in a pull down menu. You can select one of those, or select 'Other ...' to set anything else. Once selected, press Submit. If successful, the device saves this backup WiFi and will switch to this WiFi whenever the main WiFi fails with three attempts.

Fig 111: Setting Backup WiFi



7  Initial Configuration of the Device

Once the wifi is set, and once the device is online and connected to the internet, you can check its default configuration. The device comes with a default configuration with its name as its macaddress and its port named as RELAY. The device also assumes that it is cabled to an electric strike or a magnetic switch on the door. If the controller is cabled to an electric strike or a magnetic switch, it is ready to be used with a smart phone without doing any further configuration. You can now operate it either using the WiFiSecureAccess App on the smartphone, or by GoogleHome or Alexa. The door can now be discovered by GoogleHome as well as Alexa. But, if you have cabled the controller to a garage door, or a gate or a parking gate, it is important to change the name of the port from from RELAY to 'Garage', 'Gate' or 'Parking Gate' before using it. In addition, there are several other useful and important features which are worth exploring before start using it. Let us first go through the current default settings before making any modifications.

To start with, click on Devices Admin in the dashboard menu. Then click on My Devices. Then, select the device from the available devices. If this is your first controller, you will see only one device. If you have more than one device, all will be listed here. If you have not changed the name of the device yet, you may see its name as its mac address.
Note: The pictures shown in this document are snapshots taken when using a computer. If you are doing this on a smartphone, your view will be similar, but without a dashboard menu at the left side. When using smart phone, to see the dashboard menu, you have to click on the three lines at the top right as shown in Fig 106 and 6B above.

Fig 112: Devices List.

PS: The output port (normally RELAY, until changed) may not show the current status (Open/Closed) correctly unless a sensor is installed and at least one notification is enabled. More about it later in section 3.14 of this documentation.

Now on this page, click on any device. It will show the details of that device. You will see its two output ports (RELAY and BUZZER). It will show whether the output ports are currently Open or Closed, or ON or OFF. If it is ON or Open, you will see a green circle with a check mark. If it is OFF or Closed, you will see an orange circle with a cross mark. You can click on the orange button of BUZZER. You will hear the buzzer sounding. Click this button again to put that off. If you click on the orange button on RELAY, you will get an error message saying that this cannot be activated from this page, as it is in Access mode.



Fig 113: Device Details.

Now, click on Sensor Value on this page. You will see one sensor listed here: D7. If you have cabled Ultrasound sensor to the controller and if enabled, you will see an additional sensor named U_SOUND. You will also see the current values sensed by these inputs. D7 is an ON/OFF type input. If you have connected a magnetic sensor connected to D7 as explained in section 2 above, and if you bring the two parts of the magnetic sensor close to each other, and if you refresh this page, you will see that this displays as ON. If you are not seeing this field as ON when the two parts of the magnetic sensor are close to each other, make sure that the gap between the two parts of the sensor is less than 10mm. Also make sure that the cable from the sensor to the device is not broken. If you have ultrasound sensor, you can see the distance measured by it. Keep in mind that you have to refresh this page to see the new value if the sensor status changes.

Fig 114: Device Details.

Now, click on Device information. You will see a page similar to the following.
Fig 115: Device Details.

On this page (Fig 115), It will display all the details of this device such as its mac address, QRCode, NFC TagID, name of the device, firmware version, and so on. These are all for information. You may have a close look at all of them. Number of reconnects in this is the number of times the device lost connection to the server. If you see a higher number here, that indicates a weak wifi, or some frequent issues in connecting to internet.

On the firmware version tab, it will show you the current version and the latest version available. If the firmware is not up to date, you will see an orange button to click on to update its firmware.

7.1: Checking and Updating Device Firmware

We Strongly recommend updating the firmware to the latest by clicking the link on this page, if it shows new firmware is available


7.2: Configure Device and settting its name

There are few parameters of the device that you can set. Setting the name of the device and its time zone are a few. To change some of these parameters, click on 'Configure Device' under Device Admin on the left side bar menu. It will present a form similar to Fig 116. You can Change the name of the device to anything you like. But, the name must not contain the word Garage, gate or Parking (case insensitive) unless this is used for controlling garage door or gate or parking gates. Similarly, you should not include a word Door unless this is connected to an electric strike or magnetic lock or anything similar

There are several other configurable fields on this page that may be left as defaults now. Check the Timezone on this field. By default, it is set to the timezone of the owner of the device. If this is not correct, you may change it to the timezone where this device is installed. This helps in displaying all information in that timezone. Click here to know the format of different time zones. If this field is left empty, it will change it automatically either to the timezone of the owner of the device or UTC.

Fig 116: Configure Device.

Notes on 'Use Type' field in the above form:
This field will be either 'ENTRY', 'EXIT', 'ENTRY/EXIT', 'PRIORITY GATE', or 'CONTROL/SENSOR'.
When used for access control, this field should be set to anything other than 'CONTROL/SENSOR'.

7.3: Ports and security configurations

There are few other parameters of this device that can be set. Click on 'Ports and Security' under 'Device Admin' in the Dashboard menu. Fig 117 is the page that will show up when clicking 'Ports and Security". On this page, you will see several fields. What you see here are the default values of each of the parameters. The name of the dind7_label is Sensor by default. This is the label of the port to which the sensor is cabled. You can change its name to anything that you prefer, or leave it as it is.

The name of relay1 label is by default 'GARAGE' if this a gate/garage door controller, or 'DOOR', if it is an electric strike or solenoid controller. You can change these names. However, if this is a garage or gate controller, the word 'GARAGE' will be automatically appended even if you do not add it. Similarly, if this is controlling an electric strike or solenoid, the word 'DOOR' or 'RELAY' may be addedd automatically, if the system finds a need to add it.

Depending on the way you want to use this controller, you may also have to set a few other parameters in this 'Ports and Security' form. If this is connected to a garage/gate controller with separate push buttons for 'Open' and 'Close', then, you need to set the field 'Separate ON/OFF Button' to 'Yes'. If door sensor is cabled to the device, you need to ser 'Door sensor Connecte' to 'Yes'

If this gate/door is to open only if the customer identity is verified by an identity verifer, then set the field 'Allow only verified Customer' to 'Yes'. And, you can also set restrictions on entry based on some propertries of the customer such as citizenship, gender, and age, set the parameters accordingly. If this device is used not for opening or closing a gate/door, but as identity purposes such as account opening or identity verification, then set the field 'Privilege Use' accordingly. And, if this door gate is allowed to be opened by Police/Fire/Ambulance, then set the field 'Allow Police/Fire/Ambulance' to 'Yes'.

You can also set two-factor authentication on this door/gate. If set, the system will prompt the user to enter the two-factor information (such as a pin or face recognition) when trying to open this door/gate. This is for doors/gates that requires very high security. Two-factor authentications can be any one of 1) a personal pin, 2) a verification code sent to customer's email or 3) face recognition. If personal pin is set as 2FA, it will prompt for the user's personal pin when trying to open this door/gate. The personal pin is the pin set in the user's personal profile. If face recognition is set, the system will prompt the user to take a picture of his face using his smart phone. Once taken, it will check if the picture taken matches with his profiler picture. The door/gate will open only if the picture matches with his profile picture.

The other fields 'Allow in GoogleHome' and 'allow in Alexa' are by default 'Yes'. That makes this door or gate discoverable in GoogleHome and alexa. If you do not want this door or gate to be operated using voice command through Google Home or Alexa, you may set these to 'No'. The field 'Enable Two Factor Auth (2FA)' is a field for additional 2-factor authentication. If you set this to 'Yes', it will prompt for your personal pin whenever you try to open or close this garage. Your personal pin for this can be seen under My Profile. By default, your pin is 1234. You can change the pin to anything you like by clicking MyProfile under User Admin in the Admin Dashboard.
Fig 117: Device Labels.


7.4: Printing additional QRCode labels

Under device Information (Fig 115), you have noticed that each device has two QRCodes. One is called the Exit QRCode and the other is called the Entry QRCode. Exit QRCode is the one pasted on the controller. Entry QRCode is pasted on the scanner box. The scanner box is not normally used in Gate and Garage door installations. On all other installations, you can install this at a location outside the door. One can scan this QRCode to enter. In other words, Exit QRcode is to be scanned for exiting and Entry QRcode is to be scanned for entry. You can print as many additional QRCodes as you want and paste it any other locations if you find a need. To print any of these QRCodes, click on 'Show QRCode Label' under Device Admin in dashboard menu. Then select the name of the device. It may then prompt for Entry or Exit. Once selected, it will show that QRCode label. You can save this image on your computer and print it using a color printer. Then you can paste it anywhere you want.

7.5: Changing QRCode of a device

If any time you find a need to change the QRCode of a device due to any security reasons, you can do so in the Device Configuration page. Click on 'Configure Device' under Device admin under the Dashboard menu. At the bottom of the page that opens up, you will see the tabs 'CHANGE ENTRY QRCODE' as well as 'CHANGE EXIT QRCODE'. Click on the appropriate button depending on which QRCode that you want to change. It will prompt for confirmation. Once conformed, it will create a new QRCode and will show you that code in the Configure device page. You can print this QRCode label as described earlier. Note: Once the QRCode is changed, the earlier QRCode is no more valid. You will have to replace the old QRCode with the new one where you had pasted the earlier one. If you do not want to use the QRCode any more, do not paste the label on the device or anywhere.

7.6: Changing NFC tag of a device

Each device comes with two NFC tags. The NFC tagIDs of a device can be seen in the 'Device Information' page (Fig 115). These tags are pasted under the top cover of the device as well as the scanner box. For any reason, if you find a need to change these NFC tags, you can do so in the Configuration page (Fig 13). click on 'Configure device' under Device Admin in the Dashboard menu to get to the Device Configuration page. At the bottom of this page, you will see a tab 'DELETE ENTRY NFC TAG' as well as 'DELETE EXIT NFC TAG'. These tabs will be seen only if these NFC Tags are already assigned to the device. If you want to replace any of them, click on these delete tabs. That will prompt you to confirm. Once confirmed, that NFC tagid will be deleted, and the device configuration page will be displayed with that NFC TagID as empty.

Next, if you want to use a new NFC tag, buy one NFC tag. We support only Mifare Ultralight 14443-3A type of tags which has 7 bytes of UID. These are very inexpensive tags that you can buy from anywhere. These tags come as stickers as well. Given below is an example link to buy from Amazon. This is just an example. If this link is not available, or if you would like to use a different type, search for a similar item in eBay or Amazon. These NFC tags are available in different type of shapes and packaging. You can use the type you like so long as it is Mifare Ultralite with 7 bytes of UID.

Buy Now

To associate an NFC Tag with your smart device, open the app and press 'Scan NFC Tag' and scan the tag that you purchased. If this is a new tag and if it is not associated with any other device within our system, you will be taken to a page prompting you to select one of your devices to associate this tag to. The pulldown list will contain all the devices you own (all those devices that are powered on). If you have only one device, you will see only that in the pulldown menu. Select the device that you want to associate this NFC tag to. Next, if this device is used in access control, and if this is used for entry as well as exit, you will see another option 'Exit Tag'. Choose 'Yes' if you want associate this with Exit tag, or choose 'No' if you want to associate it with the main entry tag. Press Submit button after completing the selection. If entry is correct, this tag is now associated with this device. Now, if you scan it again, it will activate the port (open or close the door/gate).

You can fix the NFC Tag and/or the QRCode label at any convenient place to access this device. These are normally pasted under the top lid of the controller as well as the scanner. The controller has the Exit Tad and the scanner has the Entry Tag.



7.7: Activating a device

Once the device is installed and the names of the device and ports are configured, you can open/close the door/gate in one of several ways: 1) From the dashboard (Using a browser on computer or smartphone), 2) by scanning the QRCode or NFC tag of the device, 3) Using Google Home assistant on your smart phone, 4) Using Amazon Alexa, or 5) Making an HTTPS POST call from any of your other applications or programs. In the following sections of this document (sections 3.8 through 3.12), you will learn how to use all these different methods.

Note: In addition to the above listed methods, the WiFiSecureAccess controller has a push button mounted on itself. By pressing this button, you can open the door/gate. This is to be used only for exiting the room. As this controller is inside the room, there is no security issue in pressing this button to exit. If, for any reason, you want to disable this push button, you can either remove it from the controller, or disconnect it internally by opening the box.

7.8: Disabling Remote Control

As said before, there are multiple ways to activate a device (or, open/close a door/gate). Some of those methods enable you to activate it from remote. For example, if you use Google Home or Alexa, or if you use "Activate a Device" button either from the App or from a browser, you are activating it from remote. In other words, you do not have to be at the door/gate to activate it (open or close). We call this as "Remote Control" of the door/gate. On the other hand, if you scan the QRCode or NFC tag of the device installed at the door/gate, you are activating it by being present at the door/gate. By default, every device is enabled to be activated from remote. However, if you do not want the door/gate to be activated from remote, you can disable remote control on the device. To do so, click on "Configure Device" under Device Admin in the Dashboard menu. On the page that opens, you will see a field "Allow Remote Control".
Fig 118: Configure Remote Control

By default, the field "Allow Remote Control" is set to 'Y'. That means that this device can be operated by any of the several methods listed above. However, if you set this to 'N', the device can no longer be operated from remote. This door/gate will be disabled in Google Home and Alexa. You also will not see a button for it in the 'Activate a Device' page. The only way, then, to operate this device is to scan its QRCode or NFC tag installed at the door/gate. That can be done only by being present at the door/gate and not from remote. This setting affects only the allowed users. It does not apply to the owner of the device. Owner of the device can operate it from remote regardless of this setting. Setting this to 'N', gives additional security that the allowed users have to be at the door/gate to open or close it.

8  Activting a device from the dashboard

You can activate a device from the dashboard either using a browser on a computer or smartphone or through the WiFisecureAccess App on the smartphone. If you want to use a browser, go to the url https://wifisecureaccess.com. Then click on the dashboard tab on the top navigation bar. That will take you to the main index page. On that page, you will see a menu 'Activate a Device'. Click on that. That will show all devices that you are allowed to activate (similar to Fig 112). Clock on the name of the device that you want to activate. That will activate a device and display a success message (or Failure message) on a popup window.

You can also get to the dashboard through the WiFiSecureaccess App. Open the app on your smartphone. Then click on the 'Admin Dashboard' on the main scanner page of the app (Fig 119). That will take you to the main index page. There, you will see a tab "Activate a Device'. You can also see this 'activate a Device' tab in the dashboard menu, if you click ob the three lines at the yop right. To activate a device, click on 'Activate a Device' menu. that will display all the devices that you are allowed to activate (similar to Fig 112). Click on the device that you want to activate. That will activate that device. If it is a door or gate or garage, that will open or close that door/gate.

You can also do the same thing by clicking the 'Activate a Device' in the main scanning page (Fig 119) of the WifiSecureAccess app. If you press that button, it will display all the devices that you are allowed to activate (similar to Fig 112). Then press on the device that you want to activate.

Note: if the device is a gate or garage, they are, by default, in NoAutoClose mode. So, whenever you activate using this method, you are toggling the state of the garage/gate. If it is currently Closed, clicking the name of the device will open it, and, if it is currently Open, clicking will close it.
Fig 119: Open/Close Garage door


Note: As mentioned earlier in this documentation, everything that can be done by the wifisecureaccess app on a smartphone can also be done using a browser on a computer, except scanning QRCodes and NFC tags.

9  Activating a device by scanning either QRCode or NFC tag of the Device

As you know by now, by default, each device has been assigned two unique QRCodes. exit QRCode is pasted on the box of the controller and Entry QRCode is pasted on the Scanner box..

To activate a device or to open/close a door/gate using QRCode, you can scan this device using Bhadre app. Open the app, go to the scanning page and press Scan QRCode. The camera will become active, and now scan this QRCode. That will toggle the state of that device. If it is currently ON/Open, pressing the button will Off/close it. And, if it is currently OFF/Closed, pressing the button will ON/open it.

To turn ON or to open/close a door/gate using QRCode, you can scan this device using Bhadre app. Open the app, go to the scanning page and press Scan QRCode. The camera will become active, and now scan this QRCode. That will toggle the state of that device. If it is currently ON/Open, pressing the button will OFF/close it. And, if it is currently OFF/Closed, pressing the button will ON/open it.

Instead of scanning QRCode, you can scan NFC tag to open/close the door/gate. Open the WiFiSecureAccess app on your smart phone. Then, in the Scanning page, click on 'Scan NFC Tag'. Then scan the top of the controller or scanner box. (Remember that the BFC tags are sitting under the top lid of these boxes). If successful, you will feel a vibration of the smartphone, and will open or close the door/gate. A message will also pop up on smartphone indicating either Success or Fail.

10  Using Google Home assistant to activate a device

Bhadre devices are compatible with GoogleHome, and, therefore, you can use Google Home assistant to activate a device. By default, the device is enabled to be discovered by GoogleHome. To check or to change, click on 'Ports and Security' under Device Admin in the dashboard. You will see a page similar to Fig 120.
Fig 120: Enabling Google Home assistant

On this page, make sure that 'Allow RELAY in GoogleHome' is set to 'Yes', if you want the RELAY port to be activated using Google Home assistant. If you do not want to use Google Assistant to activate the door/gate, set them to 'No' and press Submit button.

If this is enabled to be discovered by Google Assistant, you can discover these ports in Google Assistant. Press + button in Google Home to add devices. Then press 'Set up device'. Then press 'Have Something already set up". On that page in Google Home, search for bhadre and select it. That will discover all the allowed ports of all your allowed devices.

Fig 121: Google Home Page

You can now rename these whatever you would like to. Hereafter, you can say 'Hey Google, open *name of the device*'. That will open that door/gate. That will open that door or gate. Or, if the device is a switch, say 'Turn On the . Note that you can change the name of these ports in the "Device Configuration" menu (Fig 13) in bhadre dashboard, and/or within the Google Home. The name in Google Home need not necessarily be the same as that in the configuration within the dashboard of wifisecureaccess.com.


11  Using Amazon alexa to activate a device

Doors and gates associated with the smart device can also be activated using Amazon Alexa. You may download and install Amazon Alexa on your smart Phone. In Alexa, press 'more' and then click on 'skills and games'. Now search for bhadre, then enable that skill. When enabling the skill, it will take you to bhadre.com and will prompt you to enter your email and password. This is your password for bhadre.com. If the entered credentials are correct, you may press Discover Devices. That will discover all the bhadre devices that you own.

As said earlier, door/gate is allowed to be discovered by Alexa by default. However, if you do not want this to be discovered by alexa, you may change the configuration. To check and change this configuration, click on Ports and Security under Device Admin the dashboard menu. You should now see a page similar to Fig 122.
Fig 122: Enabling Ports to be discovered by alexa

On this page, select 'Yes' for "Allow RELAY in Alexa" if you want garage to be discovered by Alexa. Press Submit after making the selection(s). Then, login to Alexa on your smartphone and discover ports as you did before. If all settings are correct, you should be seeing these devices discovered in your Alexa application on your smart phone. You can now open the door/gate by saying, for example, "Alexa, open XYZ", where XYZ is the name you have given to the device. Similarly, to close the garage door or gate, you can say "Alexa, close XYZ". If the device is a switch, use the utternace "Turn ON", or "Turn OFF", instead of "OPen", or "Close". All the features of Alexa are now available to you for managing the equipments connected to this smart devices.

12  Activating a device with an HTTPS POST call

You can also activate a device or open or close the door/gate from any of your other application programs using an HTTPS POST call. This helps integrate the WiFiSecureAccess system/devices with your other application programs. This feature also helps the developers to integrate this with their programs.

To activate a device, make an HTTPS POST call with the following details:

POST HTTP/1.1
Host: wifisecureaccess.com/access/devicePortsJson/
Content-Type: application/json
data = { "email": email, "password": password, "device_name": device_name, "action": action, }
--where email is the email address of the owner of the device, password is the password of the owner of the device, device_name is the name of the device and action is either 'ON' or 'OFF'.

Refer to section 8.1 of this documentation below to see more details about this and to see a sample python program.

PS: If you plan to use this type integration with any commercial applications where usage rate is high, please contact WiFiSecureAccess prior to doing so to avoid interruption and to get support

13  Enabling Two Factor Authentication on devices

By default, devices are secure, meaning that nobody else other than those who are allowed will be able to activate them. But, if you are interested in an additional layer of security, you can enable 2FA (two fact authentication) on these controllers. If you enable it, the user will be prompted for two factor authentication when trying to activate a device. To enable 2FA on any device, click 'Ports and Security' under Devices admin in the dashboard, just like the way it was done when enabling GoogleHome. You will see a page as in Fig 123.
Fig 123: Enabling 2FA on Ports

On that page, you will see a field 'Enable Two Factor Auth (2FA)'. By default, it is disabled. There are multiple optiions for two factor authentication. The options are Personal Pin, 'Send code by email', or 'face recognition'. You can choose any one of them, and press Submit. Google Home always uses Personal Pin, regardless whether you set anything other than 'No'. Once enabled, whenever you tell Google assistant to, activate that device (such as 'Hey google, Open Door'), Google Assistant will respond 'Can I have your pin?'. If you are activating this port by scanning QRCode or NFC tag or by pressing 'activate' button on your smartphone, the system will prompt for the pin before before activating that door/gate. You will have to enter your personal pin correctly to open the door. Your pin can be seen under your profile (click My Profile under User Admin in dashboard to see it). By default, the pin is 1234. You can change it to anything you like. This 2FA is an extra layer of security, and it is optional.

If you set 'Enable Two Factor Auth' to 'Send Verification Code' or 'Fingerrint', these will be used when trying to open this door/gate either by scanning its QRCode or NFC tag, or when pressing its button under 'Activate a Device' on a smart phone or computer. If you set it to 'Personal pin', it will prompt you to enter the personal pin. If you set that to 'Send Verification Code by Email', it will send a code to your email address. You will have to enter that code to open that door or gate. And, if you have set this to 'Face Recognition', it will open up your camera on your smartphone or computer and ask you to take a selfie. It will then match that photo with your profile picture to provide access.
Fig 124: My Profile


Note: The above method of 2FA will not work with Alexa. For 2FA in Alexa, you need to set it in Alexa itself. Refer to documentation on Alexa for setting pin codes for Locks and Doors.

14  Device Use Records

The system keeps record of the use of this garage door for 30 days. At any time, you can see who used this garage door and at what time. To see the use records, click on 'Device Use records' under 'Device admin' in the dashboard menu. You will see a page similar to the one in Fig 137 with two columns (User and use_time).

You can download these use records to your computer, if you want to do so for keeping any records, or for analysing the data. To download, click on 'Download Device Use records' under Device Admin in the dashboard menu. There you can provide the dates between which you want to download the data. Leaving any of these dates will take that date as open-ended. Leaving both dates as blank wi ll download all the available use records for the past 30 days.

You can also add a program in any of your applications to download these records, and do analysis. These use records can be read using a python program. Refer to section 9.1 of this documentation.

15  Device Configuration Menu

Any of these configurations that you have done can be changed any timec when need arises. There are several product-specific configurations that you will do later when need arises. For example, if this device is a scanner, there are specific configurations required. Similarly if this is thermostat, a few other configurations are rerquired to meet your needs. You will look into these later. But, have a look at the Devices Admin menus that you may need later depending the product that you purchased and depending on your application of that product.