Skip to main content

Getting started with 6-Channel Wi-Fi Relay Module In Home Assistant


Overview

The 6-Channel Wi-Fi Relay Module is a smart device from Seeed Studio designed for control within a safe DC voltage range, not for AC-powered appliances. Its six-channel configuration supports independent control of up to six loads, making it an excellent choice for automating a variety of devices in smart home environments.

In addition to its six relay channels, this module also features two extra Grove expansion interfaces, allowing users to integrate additional sensors or actuators for more advanced automation scenarios.

This guide provides a detailed walkthrough, including setup, integration, and advanced configuration for users ranging from beginners to smart-home enthusiasts.

Key Features and Specifications

FeatureDetails
Input VoltageDC 5V(For XIAO)
DC withstand voltageDC 0~30V
Maximum Load10A per channel
Channels6 (independent control for each channel)
Connection TypeWi-Fi
Electrical portNO (Normally Open), COM (Common), NC (Normally Closed)
Grove extensionIIC×1, UART×1
Safety Warning

This relay module is designed for low-voltage DC operation. Do not connect it to AC power to avoid electrical hazards. Always disconnect the power supply before wiring the relay to prevent short circuits and electric shock.

Voltages exceeding 24V may cause electric shock or burns, especially in cases of broken skin or in moist environments. Exercise caution when handling electrical devices to avoid injury.

Physical Layout and Connections

  • NO (Normally Open): The normally open terminal. By default, this terminal is not connected to the common terminal (COM). When the relay is activated, the NO terminal connects to the COM terminal. It is typically used to control a load's switch.

  • COM (Common): The common terminal of the relay, shared as a connection point to one side of the circuit.

  • NC (Normally Closed): The normally closed terminal. By default, this terminal is connected to the common terminal (COM). When the relay is activated, the connection between the NC terminal and the COM terminal is broken. It is typically used for scenarios requiring disconnection control.

    XIAO GPIORelay Channel
    GPIO2Relay 1
    GPIO21Relay 2
    GPIO1Relay 3
    GPIO0Relay 4
    GPIO19Relay 5
    GPIO18Relay 6

Getting Started

Requirements

  1. Core Components:
  2. Network:
    • Stable Wi-Fi for seamless interaction between hardware and Home Assistant.

Step 1: Setting Up Home Assistant

  1. Installation: homeassistant is already pre-installed in Home Assistant Green.
  2. Enabling ESPHome Add-on:
    • Access the Home Assistant dashboard.
    • Navigate to the "Add-ons" section and search for the ESPHome add-on.
    • Click "Install" and then "Start" to enable it.
    • Once installed, configure the add-on to ensure proper communication with the XIAO ESP32C6.

By gathering the necessary components and setting up Home Assistant with the ESPHome add-on, you'll be ready to proceed with the integration of the 6-Channel relay module.

Step 2: Preparing the Relay Module

By default, your device (XIAO ESP32C6) comes pre-flashed with firmware for 6-Channel relay. However, there are two scenarios where you may need to update the firmware:

  1. Re-flashing the Firmware: If the existing firmware is corrupted or you need to start fresh.
  2. Upgrading the Firmware: If there is a newer version of the firmware with improved functionality.

There are two simple methods for flashing the firmware:

caution

Firefox does not support flashing firmware on ESP devices. Please use Google Chrome or Microsoft Edge instead.

You can use this Web Tool for an easy and direct method to flash your firmware. Simply follow the on-screen instructions.

  • Click the CONNECT button to initiate the connection. The tool will automatically update the firmware.

If something goes wrong, follow the on-screen troubleshooting steps or switch to the ESPHome Web method to complete the process.

With either method, you'll have your firmware updated and ready for integration with Home Assistant.

Step 3: Network Configuration

  1. Enable Access Point:
    • Upon powering up for the first time, the module will create a Wi-Fi network (SSID: seeedstudio-2-channel-relay).
  1. Access Configuration:
    • Connect to the network using a phone or PC.
    • Open a browser and navigate to http://192.168.4.1.
    • Enter the SSID and password of your home Wi-Fi network.
  1. Home Assistant Integration:
    • Once connected to the home network, the module will be discoverable in Home Assistant under Settings -> Devices & Services.

This way, you can connect the module to your Home Assistant network and let Home Assistant discover it.

Step 4: Add the module device

  1. Automatic Discovery:
    • Ensure the ESPHome is installed in Home Assistant.
    • Navigate to Settings -> Devices & Services -> Integrations and look for the device.
  2. Manual Configuration:
    • If not automatically discovered, manually add the device by specifying its IP address.

After adding the device, you can see all six switches in the Overview page.

You can also set the name of each switch individually.

Step 5: Connect the appliances you want to control

Safety Warning

This relay module is designed for low-voltage DC operation. Do not connect it to AC power to avoid electrical hazards. Always disconnect the power supply before wiring the relay to prevent short circuits and electric shock.

Voltages exceeding 24V may cause electric shock or burns, especially in cases of broken skin or in moist environments. Exercise caution when handling electrical devices to avoid injury.

  1. Wiring:
    • Follow the Physical Layout and Connections section to wire the relay module.
    • Ensure all connections are secure, and there are no exposed wires.
  2. Power On:
    • Power on the module through USB.
    • Turn on the DC power supply to control other electrical appliances.

Safety and Maintenance

  1. Periodically inspect wiring for wear and tear.
  2. Use proper circuit protection devices, such as fuses or breakers.
  3. Keep the device away from water and excessive heat.

FAQs

  1. What happens if the device is disconnected from Wi-Fi?
    • The module will attempt to reconnect automatically. If it fails, it will enable its fallback access point for reconfiguration.
  2. Can I use the USB port while connected to AC power?
    • No, using USB while connected to AC power may damage the device or create a safety hazard.
  3. Can this module work without Home Assistant?
    • Yes, the module can be controlled via its local IP address or integrated with other platforms that support ESPHome or MQTT.

Resources

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...