Replace Docker-based zigbee2mqtt with a KISS LXC approach using Alpine Linux container with Node.js + zigbee2mqtt, matching the HAProxy LXC pattern. Adds USB serial passthrough for Sonoff Dongle Lite MG21. - zigbee2mqttctl: Full LXC lifecycle (install, update, check, shell) - RPCD: LXC diagnostics (lxc, cp210x, serial, container, service) - api.js: Fix callApply missing params (payload was silently dropped) - overview.js: Match new LXC diagnostics, fix applyConfig call - Makefiles: Replace +dockerd +docker +containerd with +lxc +kmod-usb-serial-cp210x Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| files | ||
| Makefile | ||
| README.md | ||
SecuBox Zigbee2MQTT - Zigbee to MQTT Bridge
Docker-based Zigbee2MQTT bridge for OpenWrt. Connects Zigbee devices to your MQTT broker via a USB Zigbee adapter, enabling smart home integration without vendor cloud dependencies.
Installation
opkg install secubox-app-zigbee2mqtt
Configuration
UCI config file: /etc/config/zigbee2mqtt
uci set zigbee2mqtt.main.enabled='1'
uci set zigbee2mqtt.main.port='8099'
uci set zigbee2mqtt.main.serial_port='/dev/ttyACM0'
uci set zigbee2mqtt.main.mqtt_server='mqtt://localhost:1883'
uci commit zigbee2mqtt
Usage
zigbee2mqttctl start # Start Zigbee2MQTT container
zigbee2mqttctl stop # Stop Zigbee2MQTT container
zigbee2mqttctl status # Show service status
zigbee2mqttctl logs # View container logs
zigbee2mqttctl permit # Open network for device pairing
Features
- Web frontend for device management and pairing
- USB Zigbee adapter support (CC2531, CC2652, SONOFF, etc.)
- MQTT topic-based device control
- OTA firmware updates for Zigbee devices
- Docker container isolation
Dependencies
kmod-usb-acmdockerddockercontainerd
License
Apache-2.0