Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 2.07 KB

README.md

File metadata and controls

45 lines (30 loc) · 2.07 KB

Updating zigbee firmware of mgl03 gateway via telnet for Zigbee2MQTT

Telnet must be opened on the gateway (via custom component from @AlexxIT or php-miio/python-miio). You will need telnet client like putty or other. You can find out IP of the gateway in MiHome or on your router. Login - "admin", no password.

The easy way

If you are using Home Assistant. You need to enable ZHA mode in the XiaomiGateway3 component and reboot gateway.

Open telnet session, connect to gateway and run commands:

wget -O /tmp/zigbee_flash_mgl03.zip "http://master.dl.sourceforge.net/project/mgl03/zigbee/zigbee_flash.zip?viasf=1" && unzip -o /tmp/zigbee_flash_mgl03.zip -d /tmp && cd /tmp && sh /tmp/mgl3_zigbee_flash.sh

You will need to select firmware version:

  • ncp-uart-sw_mgl03_6_7_8_z2m.gbl for Zigbee2MQTT
  • ncp-uart-sw_mgl03_6_6_2_stock.gbl for return to stock firmware

If you see something like in screenshot, everything is ok - you have updated zigbee firmware and you can configure Zigbee2MQTT.

Example of part of the config for Zigbee2MQTT:

serial:
    adapter: ezsp
    port: 'tcp://192.168.1.177:8888'

For addon, you need to configure adapter via UI.

Attention! Remember, once you've installed custom zigbee firmware, you will not be able to upgrade gateway via MiHome app. Only custom firmware upgrades are available in this case.

If you want to return to MiHome with gateway, you need to flash stock firmware (ncp-uart-sw_mgl03_6_6_2_stock.gbl) and turn off ZHA mode.

Script author @CODeRUS

Firmware for Zigbee2MQTT complied by Alexander Faronov(@faronov)