ZB-GW03 eWeLink Ethernet Zigbee Gateway now hacked with Tasmota and ESPHome so can be used via MQTT or as a remote Zigbee LAN adapter with Home Assistant's ZHA integration or Zigbee2MQTT

I gave up on this. I went another route. And added a repeater to get good zigbee signal in my garage.

Hi all,
A simple question:I flashed my esphome-zb-gw03 in router mode with the very nice tuto(esphome-zb-gw03/router.md at 498a2dff57e2657b5e81f5e5349aa463d7912de5 · syssi/esphome-zb-gw03 · GitHub), and unfortunately, the pairing step doesn’t work. I start the pairing mode and I try to get the ESP with zigbee2MQTT but nothing…
Any ideas?

François

1 Like

We have built tasmota firmware in all languages based on ZB-GW03. The ETH version has wifi turned off by default, and it can be used after power-on without configuring the template. If you need to check the IP address, you can use the mdns tool to scan the network to find tasmota’s gateway, and you can also log in to the background of your router to check the gateway’s IP address. If the ETH version does not meet your needs, you can also use the WIFI&ETH version without additional configuration.

2 Likes

Good day,

First of all sorry if my questions seem very simple, I´m very new in this tasmota world.
I have bought a ZB-GW03 device that comes with tasmota preinstalled. Really this is my second one because I bricked the first one on the first day.
I have plugged and connected it to my network thru ethernet and I have one Hue light already linked. My problem is that I cannot connect it to Home Assistant in anyway.

I have MQTT installed and configured in the zb-qw03 hub, no problem here, but when I try to connect Zigbee2Mqtt it doesn’t work. I only was able to connect it when I change GPIO 3 and 5 from ZigBee TX and RX to TCP Rx and RXthe Template and started the TCP in port 8888, but at this moment I cannot access the light thru the hub (I connect with it sending commands from the console), and also no device appears in the Z2M device list, neither the coordinator.

This is my Zigbee2MQTT configuration.

Socat:

enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: “-d -d”
log: false

mqtt:

server: mqtt://192.168.0.50:1883
username: XXXX
password: XXXX

serial:

port: tcp://192.168.0.60:8888
adapter: ezsp

Please, someone who gives me a way to follow, I wouldn’t like to brick another one checking by myself.

Many thanks in advance.

Not sure if it is you or me that is confused now. Can you clarify your setup with a diagram or something?

Is it that you want the ZB-GW03 as a remote Zigbee Coordinator for Zigbee2MQTT? Or do you want to use the native Zigbee2Tasmota (Z2T) Zigbee gateway and control its devices via MQTT. You can do either one of those but not both as both of those features are mutually exclusive.

You need to understand that Zigbee module inside the ZB-GW03 is a only serial radio device and as such the Zigbee module can only be used by one single Zigbee gateway solution, (e.i. you can not connect two Zigbee gateway solutions to it), and it sounds as if you have already enabled the native Zigbee2Tasmota (Z2T) Zigbee gateway, which means that you can not also connect a different Zigbee gateway solution like Zigbee2MQTT or ZHA.

If you wanted to ZB-GW03 as a remote Zigbee Coordinator for Zigbee2MQTT or ZHA then you need to disable the native Zigbee2Tasmota (Z2T) Zigbee gateway and instead enable the serial server (e.i. the Serial to TCP Bridge that will allow serial protocol over TCP/IP pass-through) which will allow you to tunnel the serial communication from the Zigbee SoC inside the ZB-GW03 is a serial device to Zigbee2MQTT or ZHA via a socket. See → https://tasmota.github.io/docs/Serial-to-TCP-Bridge/

Also, Zigbee2MQTT is not a MQTT server (also known as a MQTT broker), but instead Zigbee2MQTT
is just MQTT client, so it can not connect to other MQTT clients like the native Zigbee2Tasmota (Z2T) Zigbee gateway.

Here are a few links to some guides about ZB-GW03 and Sonoff ZBBridge which might help you:

Hi Hedda, good day,

I’m the confused one, for sure.
Reading your post I understand that, when I receive the ZB-Gw03 it already arrives with Tasmota and a native configuration of Zigbee2Tasmota that should be an internal device soft that allows Tasmota to communicate with the zigbee antenna.
As long as I can read these days, use the coodinator via Z2T is not easy for non inizied ussers so I want the ZB-GW03 as a remote Zigbee Coordinator for Zigbee2MQTT as I like to think that it would be the easier way to manage the zigbee devices, maybe I’m wrong. I have also a Mosquitto MQTT broker installed in my HA and running.

Presently I have a HA OS running in a virtual box machine over Mac OS with a Mosquitto broker, I have installed the zb-gw03 connected directly to my router, closer to where I will have almost all of my zigbee devices.

I will read detailed the links that you have referenced in your post about disabling the Zigbee2Tasmota and the installation of ser2net, but any help will always be welcomed.
Edited: Ser2Net seems that must be used when you have a coordinator installed in another machine, than is not the case, it is its own machine.

Many thanks for your time and interest!

Well, I think that I’m still a bit confused.
I would like to use the zb-gw03 as a zigbee ethernet coordinator for zigbee2mqtt, seems that Z2M would be the easier way for me to integrate devices later (I needed a couple of hours to switch on/Off my light from Node-Red)
Understood that, as I have preinstalled Zigbee2Tasmota I must disable it before starting other configurations, but I cannot find the way. I have tried reassigning GPIOs 2 & 4 from ZBTX & ZBRX to TCP TX & TCPRX and starting TCP service in Port 8888 latter, it let me connect Zigbee2MQTT to the hub but it doesn’t receive any info, neither from the hub itself. Is there any command that I have to RUN to disable ZIgbee2Tasmota in the HUB? I cannot find it in the documentation.

Another way that I could try would be installing ESPhome firmware by Syssi, but I have not clear if it has any issue with the 2023.5.1 version of ESPHome that I have installed, and I’m not sure to downgrade it without harming two devices that I already have connected.

Sorry for another crying brick.

Regards from Huelva.

Suggest you ask that in the Tasmota community → https://github.com/arendst/Tasmota/discussions

Same here. I followed all the steps from here: How to Convert the Sonoff Zigbee Bridge into a Router / Repeater | digiblurDIY
But I cannot pair the device to my Zigbee network.

Were you able to find a solution?

Hi I’m using a ZB-GW03 ethernet gateway with Tasmota and a zigbee smart plug connected to it.
Plug is publishing its states power consumption… when I log to tasmota console with the IP adress of the gateway.
But I’m not able to sort out what should be the command to switch on or off this smart plug either from Tasmota console first, then from MQTT explorer and finally from HOME ASSITANT

23:00:57.964 MQT: tele/tasmota_2D60CC/PC_Tuya29/SENSOR = {"ZbReceived":{"0xFB25":{"Device":"0xFB25","Name":"PC_Tuya29","AppVersion":77,"0000/FFE2":54,"0000/FFE4":0,"Endpoint":1,"LinkQuality":144}}}
23:01:24.746 MQT: tele/tasmota_2D60CC/PC_Tuya29/SENSOR = {"ZbReceived":{"0xFB25":{"Device":"0xFB25","Name":"PC_Tuya29","RMSVoltage":241,"RMSCurrent":0,"ActivePower":0,"CurrentSummationDelivered":"0x000000000023","Endpoint":1,"LinkQuality":141}}}

Hope I’m clear enough

The Zigbee section in this forum is really about Home Assistant’s built-in ZHA integration and Zigbee devices that use that native component, so this is not the best or correct place to post a question about Tasmota and/or MQTT.

You need to instead post that question as a new discussion question to the Tasmota community → https://github.com/arendst/Tasmota/discussions

Zigbee2Tasmota is a stand-alone Zigbee gateway that is build into Tasmota with embeeded MQTT and really has nothing directly to do with Home Assistant so as such unlikley anyone here can help → https://tasmota.github.io/docs/Zigbee/

We can only help here if using If you are using togther with ZHA via Ser2Net, as then Tasmota is only passing bytes between the ZHA as Zigbee gateway host application and the Zigbee radio chip firmware.

Alternatively could try create a new seperate post in the the third-party integration sections and tag it with MQTT → https://community.home-assistant.io/c/third-party/15

Hi Hedda
Sorry for not beeing at the right place (Title was so long that I got confused). I’ll open a new topic as I do not want to use ZHA & Z2M because I have already 2 Lidl hacked gateway connected to them. I was looking to use this one as an independant one because of the ESP32 to publish to the broker and read with HA the states from the broker.
Anyway thanks

I wanted to use the zb-gw03 as a zigbee router. At this point I bought the version that comes with tasmota pre-installed and already works as a gateway in a second ZigBee instance but I wanted to transform it into a router first to have everything on the same ZigBee network.

Do you recommend using Tasmota or converting to Esphome?
I am using zigbee2mqtt.

You simply need to flash the router firmware to the ZigBee part. Neither Tasmota or Esphome have any use afterwards.

Where can I find the router firmware?

Here is a guide for ESPHome on converting from Zigbee Coordinator into a Zigbee Router device:

Steps will be almost the same as for the original Sonoff Zigbee Bridge so for Tasmota can follow this:

PS! Just to clarify one thing; note that once you have flashed the EFR32MG21 module with Zigbee Router firmware then it will only act a Zigbee Router, thus there will be no LAN-network connection to the Zigbee chip, and that works disconnected from the LAN-network. So do not think that you can use it as a Zigbee extender over your LAN-network, that is not possible to achieve with Zigbee. If you have two separate locations then you either need to use two completly separate Zigbee networks, or you can use loads and loads of Zigbee Router devices that act as repeaters to cover the entire area between the Zigbee Coordinator and the end device, (it is not possible to bridge the gap by converting Zigbee to IP and then back again to Zigbee within the same Zigbee network). For more tips on extending a Zigbee network see all the tips in this guide:

So in my case is better to use as a second gateway in two separate zigbee networks.

But there is no other module to work as router and over LAN?

Thanks for the clarification

You can’t route Zigbee packets over Ethernet.

As stated above, you have two areas which are too far away to use Zigbee Router devices then you need to setup two completly seperate Zigbee networks, so yes that means seperate gateway and seperate Zigbee Coordinator, (which will have nothing to do with each other at the Zigbee level). If you for example use two separate Zigbee2MQTT installations at both locations then you can still control both using MQTT (which is controlled at the application level, and not at the Zigbee level).

No, none. That is not a feature/funtion in the current Zigbee specification. So not possible at all today.