Introduction
The 2 Channel WiFi Relay Module is a network-enabled relay controller designed for remote switching, monitoring, and automation applications. It allows users to control two independent relay outputs through a web interface, REST API, MQTT, and Smart Action automation features.
The module can be used in a wide range of home and industrial automation projects, including lighting control, pump management, equipment monitoring, alarm systems, and remote switching applications.
Supporting Features:
- 2 relay outputs (SPDT)
- 4 high voltage digital inputs – upto 24V
- WiFi connectivity for remote access
- Built-in web-based configuration interface
- Smart Action automation engine
- REST API support for integration
- MQTT support for IoT applications
- Digital input monitoring
- Real-time relay status monitoring
- Local and remote operation
Prerequisites
- A 2 Channel WiFi Relay Module.
- A power source (12V DC power adapter with 1.5A current output).
- A Wi-Fi-enabled device (laptop or smartphone).
- Access to your Wi-Fi network.
- A modern web browser (Chrome, Safari, Edge, etc.).
- Optional: MQTT broker details, SSL certificates (for HTTPS and MQTTS).
LED Indicators
| Color | State | Indication |
|---|---|---|
| Red | Solid (2 seconds) | Device is powered on |
| Purple | Blinking | AP Mode: Waiting for STA Device to get conneted |
| Purple | Solid | AP Mode: STA Device is connected |
| Green | Blinking | Station Mode: Trying to connect to Wi-Fi network |
| Green | Solid | Station Mode: Connected to Wi-Fi network |
| Blue | Blinking | Trying to connect to MQTT broker / Not connected |
| Blue | Solid | Connected to MQTT broker |
| Blue + White Blink | Solid Blue with White Blinking in the Background | MQTT publishing is active — white LED blinks at every publish interval |
| Yellow | Solid | Falling back to AP (Configuration mode) |
| Red | Blinking | Factory reset initialized |
Let’s get started
Follow these steps to set up and start using your 2 Channel WiFi Relay module:
Step 1: Power the Device
The 2 channel WiFi Relay Module operates using a 12V DC power adapter (1.5A current output). Use a 12V DC adapter to power the board reliably. Once powered, the Power LED glows solid red for 2 seconds, signaling that the system has started properly.
Step 2: Configuration Mode: The Access Point Mode
The 2 Channel WiFi Relay Module features a built-in Wi-Fi Access Point (AP) made for easy, direct configuration, no app or special software needed.
- Connect to the Access Point:
- On Power on the device automatically enters AP mode, indicated by a blinking purple LED.
- On your PC or mobile device, open Wi-Fi settings.
- Look for a network with the SSID similar to the module’s Default Hostname.
- Connect to it using the Default Password.
- Once connected, the purple LED will turn solid, confirming successful connection.
- Accessing the Configuration Page:
- Open any web browser and enter: 192.168.4.1.
- Login using the default credentials when prompted.
- You will now see the configuration dashboard.
- Explore the Web Dashboard
- View live relay, inputs(Digital).
- Change network settings.
- Configure MQTT/MQTTs.
- Upload HTTPs/MQTTs certificates.
- Perform reboot or factory reset.
- Changing the Network Configuration
- From the dashboard, go to Network Settings.
- Choose automatic IP assignment (DHCP) or configure a manual IP.
- Enter your Wi-Fi credentials (SSID & password) to connect to your local Wi-Fi network.
- The device on reboot will switch to Wi-Fi Station mode. The LED will blink green while connecting and turn solid green when connected to the network of your choice.
- Reboot
Note: Once all the necessary settings are completed, reboot the device to enable the set changes.
You can reboot the device in two ways:
- From Web Interface: Click Reboot on the Device settings page under the Device Management section.
- Using the Multi-Purpose Switch: A single click will reboot the device with the saved configuration.
Step 3: HTTPS Settings
Enabling HTTPS ensures secure, encrypted communication with the device dashboard.
- What You Need:
- Server Certificate (.pem): Authenticates the device.
- Server Key (.pem): Matches the certificate and secures the session.
- How to Enable:
- Upload the certificate and key via the web interface in the Network Settings Page under the HTTPS Settings section.
- Reboot the device to apply changes.
On the next power on, you can access your 2 Channel WiFi Relay module over HTTPs.
Step 4: MQTT/MQTTS Integration
The 2 Channel WiFi Relay Module can publish real-time relay and input data to your MQTT broker, supporting both unencrypted (MQTT) and encrypted (MQTTS) communication.
- Make sure the device is connected to Wi-Fi network of your choice in Station Mode.
- Go to MQTT Settings on the dashboard.
- Enter the Broker details.
- Enable MQTTS (if required) by uploading the client and CA certificates along with the Client key.
- Submit and reboot the device.
Once the device is rebooted, it connects to the configured MQTT/MQTTs broker and starts publishing the data. The connectivity status and the publish status can be viewed on the LED indicator.
Step 5: Control the Relays
The module includes two independently controlled relay outputs.
Turn Relay 1 ON
- Navigate to the Home Page.
- Locate Relay 1 under Relay Status & Control section.
- Click on the control button.
The relay status indicator will update to reflect the new state.
Turn Relay 1 OFF
- Click on the control button again.
- Verify the relay status changes.
Repeat the same process for Relay 2.
Step 5: Monitor Inputs and Relay Status
The dashboard displays the current status of:
- Relay 1
- Relay 2
- Digital Inputs
- Network Connectivity
Monitoring these values helps verify proper operation and provides visibility into connected devices.
Step 6: Backup Management
2 Channel WiFi Relay module support easy backup and restore of configuration data to simplify deployment and maintenance. From the web dashboard, navigate to the Device Settings tab and click Download under the Backup Management Section to save current data as a csv file on your local device.
Step 7: Device Management
- Reboot
- Applies settings or refreshes device behavior.
- Initiates reconnection to the network.
- Factory Reset
- Restores all settings to factory defaults.
- Erases saved Wi-Fi, MQTT, calibration, and password information.
⚠️ Use Factory Reset only when necessary. Always back up your configurations and data before a Factory reset.
Step 8: Create Your First Smart Action
Smart Actions allow the module to automatically perform actions when specified conditions occur.
Example: Turn Relay 1 ON When Input 1 Becomes Active
- Navigate to Smart Actions.
- Click Add New Action.
- Configure the following:
- Trigger: Input 1 Active
- Action: Turn Relay 1 ON
- Save the configuration.
The module will now automatically activate Relay 1 whenever Input 1 is triggered.
Real-World Applications
- Industrial Monitoring
Track conditions across multiple zones and prevent costly downtime. - Smart Agriculture
Improve crop yield with precise environmental monitoring. - Smart Buildings
Optimize HVAC systems and energy usage with real-time insights. - Security & Access Control
Operate gates, garage doors, to enhance security and streamline entry management. - Home Automation
Control lights, fans, pumps, and appliances remotely over Wi-Fi.
Best Practices
- Secure your credentials and HTTPS keys.
- Back up your configurations and data before factory reset.
- Ensure stable network connection for consistent data publishing.
Support
For detailed instructions, troubleshooting tips, or downloads, refer to the [User Manual] or Connect With Us
This guide gives you everything you need to monitor and control relays, monitor inputs and set the smart actions on 2 Channel WiFi Relay Module.