jueves, 27 de febrero de 2025

Hub Gateway ZigBee 3.0 eWeLink Tasmota Bridge mode Serial TCP to Zigbee2MQTT

 


Configuring the ZB-GW03-V1.4 ZigBee Gateway in Serial TCP Bridge mode for Zigbee2MQTT was not straightforward. After multiple attempts with different firmware versions and configurations, I even thought I had bricked the hub at some point. However, after extensive testing, I found that using the correct firmware from this GitHub repository and applying a few modifications, everything works perfectly.

This guide will walk you through the process of configuring Tasmota on the ZB-GW03 to enable Serial TCP bridging, allowing it to be used with Zigbee2MQTT.

The device can be purchased pre-flashed with Tasmota from Miravia.




Step 1: Configuring Tasmota for Serial TCP Bridge Mode

1.1 Set the Device Module

  1. Navigate to the Tasmota Web Interface.
  2. Go to Configuration > Configure Module.
  3. Select ESP32-Devkit (1) and Save.
  4. The device will reboot.

1.2 Apply Auto-Configuration for V1.2

  1. Navigate to Configuration > Auto-configuration.
  2. Select Eachen-ZB-GW03-V1.2 from the dropdown list.
  3. Click Apply Configuration.
  4. The device will reboot and apply the correct settings automatically.

1.3 Configure GPIO for TCP Communication (If Needed)

If auto-configuration is not applied or doesn't work correctly, manually configure the GPIOs:

  1. Navigate again to Configuration > Configure Module.
  2. Assign:
    • GPIO2 (TX)TCP Tx
    • GPIO4 (RX)TCP Rx


  3. Click Save.

1.4 Enable TCP Server on Boot

  1. Open the Tasmota Console and enter the following command:

    tcpstart 8888
  2. To ensure the TCP server starts automatically on boot, enter the following command:


    backlog rule1 on system#boot do TCPStart 8888 endon ; rule1 1 ; TCPStart 8888
  3. Verify logs to confirm that the TCP server is running:


    00:00:08.127 RUL: SYSTEM#BOOT performs 'TCPStart 8888' 00:00:08.128 TCP: Starting TCP server on port 8888 00:00:08.130 RSL: RESULT = {"TCPStart":"Done"} 00:00:11.481 TCP: Got connection from 192.168.x.x

Step 2: Configure Zigbee2MQTT

  1. Open Zigbee2MQTT Web Interface.
  2. Navigate to Settings > Serial.
  3. Configure the following parameters:
    • Port: tcp://192.168.x.x:8888
    • Adapter: ezsp
    • Baudrate: 115200


  4. Click Submit and restart Zigbee2MQTT.

Step 3: Verify the Connection

  1. Check the Tasmota logs for the following:
    TCP: Got connection from 192.168.x.x

Conclusion

After following this guide, your ZB-GW03 Gateway should be successfully configured in Serial TCP Bridge mode, allowing it to communicate with Zigbee2MQTT. This setup enables seamless Zigbee device management through MQTT.

For troubleshooting, always check the Tasmota logs and Zigbee2MQTT logs to identify any connectivity issues.

Enjoy your Zigbee Smart Home Automation!

No hay comentarios:

Publicar un comentario

@inphower.bsky.social - InPhOwEr

Twitter Inphower