Skip to content

vahempio/Tasmota-for-eWeLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tasmota for ZB-GW03 eWeLink with ZHA

All credits to thehelpfulidiot (with the fantastic blog article) and the original Tasmota firmware, many thanks!

The build is based on Tasmota v10.1.0 and support hot/cold reboot. Successfully tested on eWeLink gateway - ZB-GW03-V1.3

You can find the product in many places, including Amazon (already purchased this one).

Compatible hardware

ZB-GW03 Zigbee to LAN bridge/gateway based on Espressif ESP32 and a Silicon Labs EFR32MG21 Zigbee radio (CoolKit-Technologies "SM-011 V1.0" module).

Install the dev environment

Install the platformio in CLI with:

pip3 install -U platformio

Build

platformio run -e tasmota32-EWELINK

Firmware will be located at .pio/build/tasmota32-EWELINK/firmware.bin

You can use the already built firmware in this git repository bin/tasmota32-EWELINK_11.1.0.bin located here.

Program

Use any tasmota flasher with the previous bin file. Take a look to the official documentation.

Configure your Zigbee gateway for ZHA

Firstly, set up your Tasmota with the WiFi access point: connect it and open 192.168.4.1 to enter your WiFi credentials.

Secondly, add this template in the console (ETH support):

backlog Template {"NAME":"ZB-GW03-V1.3","GPIO":[0,0,3552,0,3584,0,0,0,5793,5792,320,544,5536,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,608,640,32,0,0,0,0,0],"FLAG":0,"BASE":1} ; module 0

Then, perform a firmware upgrade with the bin/ncp-uart-sw-6.7.9_115200.ota located here (original source).

Now, plug the ethernet and check in Information that you have a valid ethernet IP address.

For better stability, desactivate permanently the WiFi with:

Wifi 0
backlog rule2 on system#boot do Wifi 0 endon ; rule2 1

Remap Zigbee Tx/Rx pin to the TCP interface with:

backlog template {"NAME":"ZHA-bridge","GPIO":[0,0,5472,0,5504,0,0,0,5793,5792,320,544,5536,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,608,640,32,0,0,0,0,0],"FLAG":0,"BASE":1} ; module 0

And finally start the TCP server:

backlog rule1 on system#boot do TCPStart 8888 endon ; rule1 1 ; tcpstart 8888

Congrats, your eWeLink Zigbee gateway has been converted to an opensource ZHA bridge!

With Home Assistant, add the Zigbee Home Automation integration with the ethrnet IP adress and port number 8888.

References