selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Zigbee2MQTT logo

Self-host Zigbee2MQTT

2.14.3

Zigbee-to-MQTT bridge that replaces vendor hubs

ReleaseOpen SourceGPL-3.0
sudo curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
Updatedlast week
LanguageTypescript
Setup difficultyModerate
Stars
15 804
Rating
5.0 (1)
Port
8080 (Built-in web frontend (and the first-run onboarding page))
Requires
MQTT Broker
Docker
ghcr.io/koenkk/zigbee2mqtt
Built-in web frontend (legacy frontend package)WindFront, the redesigned frontend packageFirst-run onboarding page

What is Zigbee2MQTT?

Zigbee2MQTT is a Node.js bridge that lets one Zigbee coordinator adapter run your whole Zigbee mesh, so lights, sensors and switches keep working without the manufacturer's own gateway. Everything the coordinator sees is republished as MQTT topics, and commands go back the same way, which means any home automation system that speaks MQTT can drive the devices. A built-in web frontend on port 8080 covers pairing, device settings, the network map and firmware update checks, and a first-run onboarding page writes the initial configuration.yaml for you; Home Assistant MQTT discovery can simply be switched on. You supply an MQTT broker (Mosquitto is the recommended one) and a supported coordinator adapter, one of five adapter families. It runs on Linux, in Docker or Docker Compose, as a Home Assistant add-on, on Windows, in a FreeBSD jail or on Kubernetes, with published images for x86, ARM and RISC-V. Notable limits: each instance manages a single coordinator and one Zigbee network, install-code and QR commissioning only works on certain adapter types, and a frontend HTTPS setup or reverse proxy is up to you.

Zigbee2MQTT alternatives

Should you self-host Zigbee2MQTT?

Zigbee2MQTT scores 77/100 on selfhost.directory (how scoring works) and ranks #5 of 104 in Home Automation. It has 15 804 GitHub stars, +113 in the last 30 days.

It shipped 16 stable releases in the past year. The latest, 2.14.3, came out on 1 November 2026. New versions land roughly every 4 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is GPL-3.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is Home Assistant (92/100, 92 099 stars). It scores higher overall, so compare the two before you pick. See Zigbee2MQTT vs Home Assistant side by side.

Features

  • Automatic coordinator adapter discovery
  • Built-in web frontend
  • Device availability trackingDisabled by default.
  • Device blocklist
  • First-run onboarding wizard
  • Frontend access tokenOff by default.
  • Home Assistant Integration
  • Large supported-device catalogue
  • Multiple instances on one host
  • OTA device firmware updatesUpdate checks contact third-party servers; can be disabled.
  • Runtime configuration changes over MQTTSome options require a restart.
  • Swappable UI package
  • Works with any MQTT-based home automation system
  • Zigbee network map
  • Zigbee-to-MQTT bridging

Zigbee2MQTT README



Zigbee2MQTT 🌉 🐝

Allows you to use your Zigbee devices without the vendor's bridge or gateway.

It bridges events and allows you to control your Zigbee devices via MQTT. In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using.

The documentation provides you all the information needed to get up and running! Make sure you don't skip sections if this is your first visit, as there might be important details in there for you.

How to install Zigbee2MQTT

Install Zigbee2MQTT with Docker

$ docker run \
   --name zigbee2mqtt \
   --restart=unless-stopped \
   --device=/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED3DDF-if00:/dev/ttyACM0 \
   -p 8080:8080 \
   -v $(pwd)/data:/app/data \
   -v /run/udev:/run/udev:ro \
   -e TZ=Europe/Amsterdam \
   ghcr.io/koenkk/zigbee2mqtt

A rootless container can be started with --user 1001:1001 --group-add dialout, or with podman run.

How to configure Zigbee2MQTT

  • version4MQTT protocol version; set to 5 when using the retention device option.

    values: 4, 5

  • mqtt.serverRequired MQTT server URL; mqtts:// is used for a TLS connection.
  • ZIGBEE2MQTT_DATAEnvironment variable to specify a custom data directory (holding configuration.yaml, database.db and logs).
  • ZIGBEE2MQTT_CONFIG_MQTT_BASE_TOPICExample of overriding any configuration.yaml value through an environment variable prefixed with ZIGBEE2MQTT_CONFIG_.
  • Z2M_ONBOARD_NO_SERVERDisable the onboarding server completely.

    values: 1

Zigbee2MQTT releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

What are general limitations that apply to all Zigbee implementations?

One instance drives one coordinator and one Zigbee network, a device can only belong to a single coordinator, and Zigbee cannot be extended across sites over IP or VPN.

How do I run multiple instances of Zigbee2MQTT?

Give every instance its own base topic and its own Zigbee channel in configuration.yaml.

I read that Zigbee2MQTT has a limit of 20 devices (when using a CC2530/CC2531 adapter), is this true?

No, that only applies to devices talking directly to the coordinator; mains powered devices act as routers and a network of routers multiplies the usable device count.

Why is the action property always empty?

With the legacy Home Assistant action sensor enabled, a published action is immediately followed by an empty one so that the sensor's state changes and can trigger automations.

How to interpret RSSI and LQI values?

RSSI is the raw signal strength in -dBm between two devices, while LQI is an unstandardised link quality number, so the two must be read together; the docs advise non-experts to ignore them.

Why are some links missing from my networkmap?

Usually nothing is wrong: sleepy end devices can be dropped from a router's child table through child ageing while still being able to communicate via that router.

What does and does not require re-pairing of all devices?

Changing the network key or panID, and most adapter switches, require re-pairing; updating Zigbee2MQTT or the coordinator firmware does not.

How do I move my Zigbee2MQTT instance to a different environment?

Copy the contents of the data directory, update the coordinator path in configuration.yaml and start Zigbee2MQTT again.

How do I migrate from one adapter to another?

Update to the latest version, stop Zigbee2MQTT, decide whether re-pairing is needed, then either remove the coordinator backup and database or copy the old adapter's IEEE address into the new one, adjust the serial port in configuration.yaml and start again.

Why does my device not or fail to pair?

Split the problem in two: either nothing is logged at all (interference, adapter placement, other Zigbee hubs still powered, device limit reached) or the interview fails (pair closer, replace the battery, retry, or enable debug logging and file an issue).

My network is unstable and/or performs poorly, what can I do?

Restart the Zigbee device with the poor connection, since routes can be lost after the coordinator moved, and follow the guide on improving network range and stability.

More in Home Automation

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…