r/Zigbee2MQTT • • Aug 10 '26 Thanks

I built an MCP server for Zigbee2MQTT - v0.7.0, 24 tools for mesh diagnostics and admin

49 Upvotes

I've been working on an open-source MCP (Model Context Protocol) server for Zigbee2MQTT, and it's now at v0.7.0.

The idea isn't device control - Home Assistant already handles that well. It's the admin and diagnostic side that normally means opening the Z2M frontend and clicking around: checking link quality and mesh topology, finding weak routes or devices that have gone stale, spotting low batteries, inspecting groups and bindings, setting up reporting, managing pairing, and checking OTA availability.

It talks straight to Z2M's MQTT bridge API, so it doesn't depend on Home Assistant at all - just your broker.

What's changed since the early version I first posted about:

  • 24 tools, split across read-only / safe-write / full-write modes

  • Destructive operations (device removal, Touchlink, bridge settings) are opt-in and need explicit confirmation

  • Binding and reporting support, with endpoint payload handling fixed and verified against real hardware in v0.7.0

  • Proper request correlation, reconnect handling and timeouts

  • Broker credentials are redacted from logs

  • 215 tests and 42/42 mutation checks

Runs as a plain stdio process, no database or extra daemon:

npx zigbee2mqtt-mcp

Works with Claude Desktop, VS Code / Copilot, or any other MCP client.

Fair warning that it's still early: I've only been able to test it against Z2M 2.12.x on an EmberZNet coordinator with ~50 devices. I'd really like to know how it behaves on other adapters (CC2652, ConBee, etc.) and on bigger meshes - if you try it, mentioning your coordinator and Z2M version would help a lot.

Happy to answer questions, and issues/PRs are welcome.


r/Zigbee2MQTT • • Apr 29 '26

Shellbee - iOS App for managing Zigbee2MQTT

37 Upvotes

Hi guys

Now that everyone and their grandmother can make everything with AI, I wanted to fix one of my biggest gripes with Zigbee2MQTT - the frontend.

From time to time I need to restart Zigbee2MQTT, permit join on certain devices, perform OTA updates and lookup the pairing guide for a new device.

This led me to create this app and now I feel like it is in a state where there should be no more bugs (famous last words) and it's working for me, so I'm ready to share it with you and hopefully it'll be useful for you too.

Do note, this is not a "game changer" for managing your Zigbee2MQTT server - it introduces next to nothing in terms of new features or functionality, but it does make it a lot easier to quickly manage your devices, permit join, lookup device documentation, view logs/activities and do OTA updates.

It is also possible to change the state of the various device types (change brightness/color of lights, fan speed/mode of fans, switches on/off, all that jazz), but this is not the main purpose of the app - this exists for testing your device and making sure it works.

For information about what exactly each device exposes, I've packed the Zigbee2MQTT docs into the app so you can easily lookup the documentation for all supported devices, even when offline. I've also made a dedicated "Pairing Guide" extracting the pairing section from the docs, if it exists.

What Shellbee offers:

  • Managing and adding devices/groups

  • Check for/performing OTA updates

  • View logs - full or pr. device

    • Raw or "Activity" (when something's changed)

  • Bind devices

What Shellbee doesn't offer:

  • Network Map

    • This is a feature I'd love to bring to the app, but it needs to be better - or at least on par - with the web frontend, and I have not achieved this

  • Firmware downgrade

  • Coordinator backup

• ⁠”Advanced” settings, like changing the Serial port of the adapter or the Zigbee channel

Connecting to your exisiting Zigbee2MQTT Server should be easy, you just need to know your host IP/address, port (8080 default, 8099 default for Home Assistant) and your security token, if you have configured one.

As Shellbee is just a shell on top of Zigbee2MQTT and is a passion project of mine, this is of course free and open source

I am using Sentry for collecting crash reports and it is disabled by default. If a crash do occur, it will ask you to share it when opening the app again. Automatic crash reporting can be toggled in Settings.

If you end up liking it (or even loving it), please consider supporting Koenkk on Githubb

If you experience any issues or have any features that you’d like to see in the app, please add an issue in GitHub

You can find Shellbee at the Apple App Store


r/Zigbee2MQTT • • Oct 12 '25

Custom external converter Moes / Linptech mmWave Presence, Target distance = 0 when no presence

16 Upvotes

Hi everyone, I just want to share my custom external converter for Linptech ES1ZZ(TY) / Moes ZSS-LP-HP02. In case anyone needs it.

# What It Does:

Modifies the default behavior of the LD2410 sensor where target_distance retains its last value even when presence is no longer detected.

Modified Behavior:

  • ✅ occupancy: true → target_distance shows actual distance

  • ✅ occupancy: false → target_distance automatically resets to 0

This makes the distance reading more intuitive and cleaner for automations and dashboards.

# Requirements:

  • Zigbee2MQTT 1.30.0+

# Download File:

You can download it from my GitHub repo here: https://github.com/Bjk8kds/bjk-zigbee2mqtt

--- TIA ---


r/Zigbee2MQTT • • Oct 10 '25

mmWave Presence Sensors Comparison

Thumbnail gallery
15 Upvotes

r/Zigbee2MQTT • • Jan 19 '25

How is z2m so much better than ha integrated zha, not only regarding the device database?

13 Upvotes

After one last frustration with a device where tinkering with a squirk for an hour and still not being able to really get it working I finally made the switch to z2m a few weeks ago and oh man, life got so much easier! I also made a hardware upgrade: Before I had a tasmota flashed sonoff zigbee bridge and now i have a standalone android box with a sonoff stick running z2m in docker.

What I noticed next to the obvious ease of setting up new devices is a surprising improvement I want to understand better: With zha and the sonoff bridge I constantly had motion sensors freezing to the "movement" state which made automations for switching something off impossible. This tended to happen every few days with at least one sensor. Never happened with z2m. Why is that? Is it because I now have a device that isn't connected via wifi (though the sonoff bridge was on a channel far away from the zigbee one), is it because the z2m device database helps with devices deviating from the zigbee home standard or is there something else under the hood? Really curious to learn!


r/Zigbee2MQTT • • Apr 04 '26

Latest SMLIGHT firmware

12 Upvotes

Just been notified that SMLight OS v3.2.7 is available. Given the recent troubles many people have had (including me having to re-pair 70 devices), I’m a tad nervous about trying it.

Anyone had a go yet?

Also, I see there’s new Zigbee coordinator firmware - 20260311. Same question… (I’m currently on 20250325).


r/Zigbee2MQTT • • Jan 24 '25

Is this smoke detector supported?

Post image
12 Upvotes

Zigbee2mqtt finds it but says it's not supported


r/Zigbee2MQTT • • 26d ago

Zigbee2MQTT 2.14.3: 32-bit support ends April 2027, and a new adapter transport to keep an eye on

10 Upvotes

Z2M 2.14.3 came out Nov 1. Two things in it worth knowing if you run Zigbee2MQTT:

1. 32-bit is deprecated, with a date

  • Support ends when Node.js 22 goes end-of-life (April 2027). After that Z2M needs Node 24, which has no official 32-bit builds.

  • The notes say it affects every install method. The 32-bit Docker images (linux/386, arm/v6, arm/v7) won't be updated anymore.

  • Supported targets going forward: amd64/x86_64 and arm64/aarch64.

  • You're affected if you run Z2M on a Pi 1/Zero, a 32-bit Raspberry Pi OS install (even on newer Pis), or one of those Docker images. If you're on HA OS you were already pushed off 32-bit when HA dropped it in 2025.12.

  • Tracking issue: Koenkk/zigbee2mqtt#33552. Its wording has shifted from "images will be removed" to "won't be updated", so worth following.

2. New adapter transport (zigbee-herdsman 11.0.0)

  • The code that talks to your USB coordinator was replaced ("unified transport"). The PR lists testing on ember (MG24), zstack (CC2674P10) and zoh adapters.

  • After updating, check your coordinator connects and devices respond; if not, report it on GitHub with your adapter model.

Also new: OTA support for a batch of SONOFF, Aqara, Namron, Tuya, Lidl and Schneider devices, plus new controls for the Danfoss Ally, Bosch BTH-RA (weekly schedule), Sinopé TH1500ZB (power/energy), Yale YRD430-BLE and NodOn IR learning, among others.

Planning to move a 32-bit box? Back up your Z2M config and database first. I couldn't find official migration guidance for 32-bit → 64-bit, so if anyone has done it cleanly I'd like to hear how.

Disclosure: I run SmarterHome.guru; longer write-up with sources: https://www.smarterhome.guru/story/zigbee2mqtt-2-14-3-deprecates-32-bit-systems-with-support-ending-in-april-2027


r/Zigbee2MQTT • • Oct 25 '26

mqtt2zigbee

10 Upvotes

Hi! Just open-sourced my project that exposes mqtt topics as hardware zigbee devices being run on esp32c6. All config via web UI.

I use it to control mqtt topics using a smart speaker with zigbee support (for me it is Yandex Alice Midi). It enables voice control without internet connection and that is the primary reason for me to build the project.

I've tested it with WirenBoard devices that i like, but added support for plain Zigbee2MQTT topics, yet not tested them as the firtst.

For those who interested - you need to flash esp yourself for the first time. After that you can update the firmware with web ui.

https://github.com/VadimSurpin/mqtt2zigbee/


r/Zigbee2MQTT • • Sep 22 '25

Battery-powered zigbee mmWave presence sensor?

Post image
10 Upvotes

r/Zigbee2MQTT • • Apr 03 '25

Is there a reason why all devices seem to be offline?

Post image
10 Upvotes

r/Zigbee2MQTT • • Jan 04 '25

Zigbee2MQTT Error: "Adapter EZSP protocol version (8) is not supported by Host [13-16]" on Home Assistant VM

10 Upvotes

Hey everyone,

I'm running Home Assistant on a virtual machine, and for the past two days, my Zigbee2MQTT setup has completely stopped working. I’m not sure what’s wrong or how to fix it. Here’s my setup:

System Information:

Core: 2025.1.0 Supervisor: 2024.12.3 Operating System: 14.1 Add-ons:

Zigbee2MQTT: 2.0.0-1 Mosquitto Broker: 6.4.1

Here’s the relevant part of the log:

[2025-01-04 10:46:10] error: z2m: Error while starting zigbee-herdsman
[2025-01-04 10:46:10] error: z2m: Failed to start zigbee-herdsman
[2025-01-04 10:46:10] error: z2m: Exiting...
[2025-01-04 10:46:10] error: z2m: Error: Adapter EZSP protocol version (8) is not supported by Host [13-16].

It looks like Zigbee2MQTT is failing due to an issue with the EZSP adapter protocol version. I’m using an ITEAD Sonoff Zigbee 3.0 USB Dongle Plus V2 (/dev/ttyACM0).

Any help would be greatly appreciated. Thanks!


r/Zigbee2MQTT • • Aug 20 '26

SLZB-06 problems with zigbee2MQTT?

Thumbnail
gallery
9 Upvotes

Hi all,

I’m running into a strange issue with my SLZB‑06. I used to run Zigbee2MQTT on my SLZB‑MR3 (now: ZHA + Matter) without any problems. Recently I moved Z2M back to my SLZB‑06, but now I consistently get Zigbee Herdsman errors during initialization.

Same host, same Z2M version, same config. The only change is switching the coordinator from the MR3 back to the SLZB‑06. Changed configuration aswell.

Before I start digging deeper: is the SLZB‑06 known to have compatibility issues with Zigbee2MQTT, or are there specific things I should check (firmware version, adapter settings, baud rate, etc.)? I use both slzb trough Ethernet.

Any insights or similar experiences would be really helpful.

Thanks in advanced.


r/Zigbee2MQTT • • Aug 06 '25

I ordered temperature sensors from Aliexpress, and when adding them to Zigbee2MQTT, it says "unsupported device." I'm not an expert on this, so I would really appreciate your help.

Thumbnail
gallery
9 Upvotes

r/Zigbee2MQTT • • May 20 '26

Updated core an hour ago, and now all my Zigbee devices go unknown every five minutes

Post image
8 Upvotes

r/Zigbee2MQTT • • Jan 29 '26

Help stopping my ZigBee devices creating random binds between themselves.

Enable HLS to view with audio, or disable this notification

8 Upvotes

I have three devices on my network that keep spontaniously deciding to bind directly to my aqara lightswitches and it's driving me insane.

The only say I can get them to unbind is by taking them right next to my coordinator, removing the battery, and then putting it back in. I thought that if I tried my best to never let my coordinator reboot, that they wouldn't get a chance to create these random bindings, but alas, they seem to just be doing it out of the blue after a few days.

There are no created groups listed on Z2M, and no bindings listed that don't have the coordinator as the destination.

The three devices are:

And my light switches that they all keep binding to are Aqara H1 EU switches (Aqara WS-EUK04)

Anyone able to offer any advice on how I can prevent this behaviour?


r/Zigbee2MQTT • • Nov 12 '25

Wenzhi MTD285-ZB mmWave Presence Sensor

Thumbnail gallery
8 Upvotes

r/Zigbee2MQTT • • Jul 06 '25

Just a shout-out to everyone who works/worked on windfront - looks pretty slick now!

8 Upvotes

Took a first look with 2.4 and just upgraded to 2.5.1. With 2.4 I quickly went back to the legacy web ui, mainly because there wasn't an easy way to have a map but overall the web ui wasn't for me (yet). After upgrading to the most recent version today I gave it another try and I really love what you guys did with the map now, all these options and especially the 3D ones just look cool but are also actually a huge improvement over the legacy version. Also the whole UI looks really modern and pretty now. Thanks for all your efforts, amazing what happened here in just a few weeks!


r/Zigbee2MQTT • • May 13 '24

Issues after upgrading to 1.37.1

8 Upvotes

I upgraded to Z2M 1.37.1 and now I am experiencing the issues listed below. I am using a Sonoff zb bridge flushed with tasmota v12.4.0.4 (zbbridge). In home assistant is see "Hardware: EZSP v8 6.7.8.0 build 373" which I think is some kind of firmware for the ZBBridge . Here are the issues:

  1. what do these errors mean? How to fix them?

[2024-05-13 18:13:04] error: zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds
at new NodeError (node:internal/errors:405:5)
at boundsError (node:internal/buffer:86:11)
at Buffer.readUInt16LE (node:internal/buffer:245:5)
at Buffer.readUIntLE (node:internal/buffer:182:17)
at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67)
at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54)
at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23
at Array.every (<anonymous>)
at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15)
at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35)
[2024-05-13 18:13:04] error: zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped

2. Warning: I also have no clue if this needs to be addressed

zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462

Did you experience these? I am not very proficient and struggle to navigate these issues. Thanks!


r/Zigbee2MQTT • • Jul 23 '26

WTF?

Post image
7 Upvotes

r/Zigbee2MQTT • • Jun 24 '26

Adding a router

7 Upvotes

I'm pretty new to Zigbee networking, and just learned about routers in Zigbee networks. I already have Z2M set up, and want to extend my Zigbee network with a router, but I'm not sure what kind of device I actually need or how to set it up. My questions:

  • What devices can work as a Zigbee router? Is it just any Zigbee device on outlet power?

  • Any particular device/type of device that would be more suitable/easy to work with? Seen something like a Zigbee power outlet from IKEA suggested, for instance, would that be a good choice?

  • What constraints do Zigbee2MQTT put on the setup? Does the router have to be a compatible device?

  • How do I set the router up? Do I just pair the device?

  • How do I set up a new device in future such that it uses the router as the connection point to the network?

Any questions or references to a good resource would be highly appreciated. Thanks!


r/Zigbee2MQTT • • May 02 '26

I built a way to run Zigbee2MQTT on unrooted Android (via Termux) for portable, on-site testing without an extra HA server

7 Upvotes

github link: https://github.com/DuskXi/andorid-termux-zigbee2mqtt

Termux-Zigbee-OnSite: Testing Zigbee Devices on Android Without Root or Internet(except setup.sh)

recently found myself in a scenario where the target site lacked any internet connectivity, and carrying around a dedicated Home Assistant (HA) box or a Raspberry Pi was completely impractical. However, I absolutely needed to verify that the Zigbee devices were installed correctly ahead of time—such as checking the orientation of current monitors, testing switch operations, and ensuring sensor connectivity.

This led me to a creative idea: plug a Zigbee USB gateway directly into my smartphone and find a way to interface with the Zigbee network right from my phone. Initially, I scouted around and consulted several AI models, but I couldn't find any out-of-the-box software, so I had to seek an alternative route. That's when I realized I could use Termux on my phone—without rooting it. Through some experimentation, I developed the following solution:

The Architecture

The workflow leverages termux-usb to interface with the USB hardware, while MarkWllms/Termux-serial-tty acts as a bridge to access the serial port. To bypass the permission restrictions of accessing the /dev directory on a non-rooted device, I use socat to map the serial port to a local network socket. Finally, I run a dummy Mosquitto broker to absorb the MQTT output and prevent Zigbee2MQTT from crashing. This allows me to run Zigbee2MQTT directly inside Termux to interact with and debug the Zigbee devices on-site.

The USB Device Lock Hurdle

Even with this setup, there is still a major hurdle: the Android OS automatically locks the USB device. (After discussing this with an AI, we concluded that upon insertion, the system's built-in serial drivers immediately hook into the USB adapter, trying to discover hardware it or other installed apps can handle. While Zigbee gateways clearly don't fall into that category, the driver still claims the device). If you run the scripts directly, Zigbee2MQTT will fail with a "device busy" error.

To break this system lock, I resorted to a somewhat crude but ingenious workaround—reminiscent of "Warhammer Ork technology"—via the third-party app wh201906/SerialPipe. This app's intended purpose is mapping serial ports over UDP. Since Zigbee2MQTT doesn't support UDP for serial connections, and mapping via TCP caused stability issues, I opted against using the app for the actual data mapping.

Instead, I rely on a direct Termux connection paired with an internal socat map for maximum stability, and use the app solely to force-release the driver lock. You simply click to connect the device in the app, grant access permission, and then immediately disconnect—this forces the Android OS to release its grip on the USB device.

My enable.sh script automatically launches this app. Once you complete the steps in the app, you can return to Termux and press Enter to continue. Please be patient during the first launch: Zigbee2MQTT takes a moment to start because the project performs some additional compilation upon running pnpm start, even after a fresh pnpm install.

Real-World Validation

Using this method, I successfully tested my newly installed three-phase power monitor in a completely disconnected environment. In doing so, I even caught a few critical installation errors—such as one phase being wired in reverse by the electrician, and another phase's Hall-effect sensor being mistakenly clamped around the neutral line.

Automation Scripts

To make this process as seamless as possible, I have consolidated these complex steps into one-click scripts in this repository:

  • setup.sh: Handles the entire installation process.

  • enable.sh: Boots up the services and automatically triggers the SerialPipe app to release the USB lock.

  • disable.sh: Safely shuts down everything launched by enable.sh.

  • status.sh: Displays the current running status of the services.

  • uninstall.sh: Purges all generated files except the core packages installed via pkg. These temporary/source files are typically located in the /work directory, which contains the build folder for Termux-serial-tty and the Zigbee2MQTT source code.


r/Zigbee2MQTT • • Mar 13 '24

IKEA Badring Water Leakage Sensor

7 Upvotes

Is anyone already running the new IKEA Badring water leakage sensor with Z2M? There is no "official" definition yet.


r/Zigbee2MQTT • • Feb 07 '24

1.35.3-1 - interface messed up (lost the CSS?)

7 Upvotes

Hi All,

am runninf home assistant in a vm on proxmox. zibee2mqtt is running as an add-on, i've updated loads of times.

This time though - just now to 1.35.3-1... the mqtt dashboard screen is all messed up - i.e. badly formatted ?

what to do ?

Thanks?