Running Zigbee2MQTT in Docker: my compose setup and the USB passthrough fix
-
I moved Zigbee2MQTT from a Home Assistant add-on to plain Docker. Here's what the install looked like.
What you need
• Docker and Docker Compose.
• An MQTT broker. I run Mosquitto in its own container.
• A coordinator like a ZBDongle-P or ZBDongle-E.
Key steps- Pass the dongle into the container using its /dev/serial/by-id/... path.
- Mount a data folder so your config and network survive container updates.
- Set the adapter in the config: zstack for the P, ember for the E.
- Point Z2M at your MQTT broker.
The fix that took me longest: permissions on the USB device. If Z2M can't open the port, check the device permissions and group.
Do you need Home Assistant? No. Z2M in Docker works with anything that speaks MQTT.
Updating is just pull and restart, but back up your data folder first.
Full Docker setup guide: https://zigbeehubs.com/blog/zigbee2mqtt-docker/
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login