For the jn5169 chip, which is installed on our gateway, the Zigate firmware is used. You need to flash it and reset it to default settings.
wget https://github.com/openlumi/ZiGate/releases/download/55f8--20230114-1835/ZigbeeNodeControlBridge_JN5169_COORDINATOR_115200.bin -O /tmp/zigate.bin
jnflash /tmp/zigate.bin
jntool erase_pdm
Then you should install the required libraries and zigbee2mqtt itself.
opkg update
opkg install mosquitto node-zigbee2mqtt
sed -i -e 's/baudrate: 1000000/baudrate: 115200/' -e 's/homeassistant: false/homeassistant: true/' /etc/zigbee2mqtt/configuration.yaml
/etc/init.d/zigbee2mqtt restart
Now the zigbee2mqtt web interface will work on http://GATEWAY-IP:8080/.
It will send zigbee events to the local MQTT server.
If you need to configure the connection to the external MQTT broker, edit
the configuration file /etc/zigbee2mqtt/configuration.yaml
and restart
the zigbee2mqtt
service.
If this is not your first zigbee2mqtt instance, be sure to read the documentation.
/etc/init.d/zigbee2mqtt restart