Skip to content

About

Zigbee Router firmware for Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways.

Topics

Resources

Stars

52 stars

Watchers

7 watching

Forks

Latest commit

 

History

134 Commits

Folders and files

Repository files navigation

Lumi Router

This firmware replaces the stock firmware on the JN5169 Zigbee chip in Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways. Instead of serving as a coordinator for the proprietary Xiaomi Mi Home network, the gateway can operate as a router in any Zigbee network.

These instructions assume OpenWrt is already installed on the gateway. If not, follow the OpenLumi guide.

Firmware

Device Firmware file
Xiaomi DGNWG05LM LumiRouter-DGNWG05LM.bin
Aqara ZHWG11LM LumiRouter-ZHWG11LM.bin

Web interface

  1. Download the firmware file for your device model from Releases.
  2. Go to LuCI -> System -> Zigbee Tools.
  3. Click the Upload Firmware… button.
  4. Select the downloaded file and click Upload.

Command line

Connect to the device via SSH and run the commands for your model.

For Xiaomi:

wget https://github.com/igorlistopad/Lumi-Router-JN5169/releases/latest/download/LumiRouter-DGNWG05LM.bin -O /tmp/LumiRouter-DGNWG05LM.bin
jnflash /tmp/LumiRouter-DGNWG05LM.bin

For Aqara:

wget https://github.com/igorlistopad/Lumi-Router-JN5169/releases/latest/download/LumiRouter-ZHWG11LM.bin -O /tmp/LumiRouter-ZHWG11LM.bin
jnflash /tmp/LumiRouter-ZHWG11LM.bin

Reset and pairing

To reset the Zigbee settings, perform a PDM erase. After the reset, the device automatically searches for a network open for joining.

Web interface

Go to LuCI -> System -> Zigbee Tools and click the Erase PDM button.

Command line

jntool erase_pdm

Restart

Web interface

Go to LuCI -> System -> Zigbee Tools and click the Soft reset button.

Command line

jntool soft_reset

Building firmware

Use GitHub Codespaces or VS Code Dev Containers for a preconfigured environment, or follow the local build instructions below.

Open in GitHub Codespaces Open in Dev Container

Local setup

Supported platforms:

  • macOS: AMD64, ARM64
  • Linux: AMD64, ARM64
  • Windows: AMD64 (MSYS2)

Prerequisites:

  • Git, make, and curl
  • Python 3.5 or later

Clone the repository and install the SDK and toolchain:

git clone --recurse-submodules https://github.com/igorlistopad/Lumi-Router-JN5169.git
cd Lumi-Router-JN5169
make install

Build

Build the firmware with BOARD=DGNWG05LM for Xiaomi or BOARD=ZHWG11LM for Aqara:

make BOARD=DGNWG05LM

The firmware is generated as build/LumiRouter-<BOARD>.bin.

Run make clean before switching boards. This also deletes previously generated firmware files.

About

Zigbee Router firmware for Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways.

Topics

Resources

Stars

52 stars

Watchers

7 watching

Forks

Releases

Contributors

Languages