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.
| Device | Firmware file |
|---|---|
| Xiaomi DGNWG05LM | LumiRouter-DGNWG05LM.bin |
| Aqara ZHWG11LM | LumiRouter-ZHWG11LM.bin |
Web interface
- Download the firmware file for your device model from Releases.
- Go to
LuCI -> System -> Zigbee Tools. - Click the
Upload Firmware…button. - 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.binFor Aqara:
wget https://github.com/igorlistopad/Lumi-Router-JN5169/releases/latest/download/LumiRouter-ZHWG11LM.bin -O /tmp/LumiRouter-ZHWG11LM.bin
jnflash /tmp/LumiRouter-ZHWG11LM.binTo 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_pdmWeb interface
Go to LuCI -> System -> Zigbee Tools and click the Soft reset button.
Command line
jntool soft_resetUse GitHub Codespaces or VS Code Dev Containers for a preconfigured environment, or follow the local build instructions below.
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 installBuild the firmware with BOARD=DGNWG05LM for Xiaomi or
BOARD=ZHWG11LM for Aqara:
make BOARD=DGNWG05LMThe firmware is generated as build/LumiRouter-<BOARD>.bin.
Run make clean before switching boards. This also deletes previously
generated firmware files.