In this post I will go over how to integrate a smart WIFI relay that I bought through him Ali Express into my main gate control systems.
After the integration of the WIFI relay switch, I can control the opening/closing of my main gate using Alexa and spinning application.
My main gateway that I intend to control with the WIFI relay switch
Level 1
Locate where your main gate control systems box is located
![Mian gate control box](https://www.creatifwerks.com/wp-content/uploads/2022/10/Mian-Gate-Control-Box-768x1024.jpeg)
level2
Prepare dishes
- Phillips head screwdriver
- Flat screwdriver
- Cable 1mm2 0r 0.75mm (white/black)
- Cutter
![Preparation tools](https://www.creatifwerks.com/wp-content/uploads/2022/10/Tools-To-Prepare-768x1024.jpeg)
Step 3
Open your main gate control box and look for the 2 items listed below
1. Power supply source terminal
(a) Identify what type of power source is provided by your main gate control system (AC/DC)?
2. NO / NC terminal use to control your main gate
(a) Use a jumper cable to short the NC/NO terminal of the main gate control system board, and see the result?
(b) Identify the correct NO/NC terminal that will connect to the WIFI relay switch later.
**Note: Your main gate control box may be different.
![Open your control box](https://www.creatifwerks.com/wp-content/uploads/2022/10/Open-Your-Control-Box-768x1024.jpeg)
![Check supply voltage with a multimeter](https://www.creatifwerks.com/wp-content/uploads/2022/10/Check-Supply-Voltage-With-Multimeter-768x1024.jpeg)
![Terminal identification NC NO](https://www.creatifwerks.com/wp-content/uploads/2022/10/Identify-NC-NO-Terminal-1024x768.jpeg)
Step 4
Verify your findings in step 3 against the WIFI relay switch specification to check its compatibility
in my case
- The power supply source provided is 12VAC
- No terminal is needed to control the opening and closing of the gate
![manual specification](https://www.creatifwerks.com/wp-content/uploads/2022/10/Manual-Specification-768x1024.jpeg)
Step 5
Refer to the specification manual, and connect the power source and the terminalless terminal to the WIFI relay module.
![Connect the WiFi relay module](https://www.creatifwerks.com/wp-content/uploads/2022/10/Wire-Up-the-Wifi-Relay-Module-768x1024.jpeg)
Step 6
WIFI relay module setup for Tuya app
Press the reset button for 5 seconds to activate WIFI connection
When you notice that the LED blinks very quickly, the device is ready to activate a WIFI connection
![Press the reset button](https://www.creatifwerks.com/wp-content/uploads/2022/10/Press-Reset-Button-768x1024.jpeg)
Step 7
Open the Tuya app, click the “+” located on the right side of the Tuya app
![Device scan](https://www.creatifwerks.com/wp-content/uploads/2022/10/Device-Scannnig-461x1024.jpeg)
Step 8
Select WiFI connection, which you want to connect, enter password and click connect.
![Select a Wifi connection](https://www.creatifwerks.com/wp-content/uploads/2022/10/Select-Wifi-Connection-461x1024.jpeg)
Step 9
Verifies whether the WIFI relay module is connected
![Scan for device](https://www.creatifwerks.com/wp-content/uploads/2022/10/Scanning-For-Device-461x1024.jpeg)
![Connected device](https://www.creatifwerks.com/wp-content/uploads/2022/10/Device-Connected-461x1024.jpeg)
Step 10
Main gate opening test using Tuya app and Alexa app
In order to control Tuya devices using the Alexa app, you will need to enable Tuya Skills in your Alexa app
![Enable Tuya Skills in the Alexa app](https://www.creatifwerks.com/wp-content/uploads/2022/10/Enable-Tuya-Skills-at-Alexa-App-461x1024.jpeg)
![Tuya app](https://www.creatifwerks.com/wp-content/uploads/2022/10/Tuya-App-461x1024.jpeg)
![Alexa app](https://www.creatifwerks.com/wp-content/uploads/2022/10/Alexa-App-461x1024.jpeg)
The main gate is open!!
![Main gate open](https://www.creatifwerks.com/wp-content/uploads/2022/10/WhatsApp-Image-2022-10-09-at-16.38.14-768x1024.jpeg)
Check how to install Smart Deadbolt Lock