GitHub 火线榜

GitHub 火线榜 · 仓库档案

Koenkk/zigbee2mqtt

Zigbee to MQTT bridge , get rid of your proprietary Zigbee bridges (简介来自仓库自身文档。)

数据截至 10月26日Koenkk

最好成绩

#500

总榜 · TypeScript 分面

1.6万

累计 Star

2045

Fork 总数

0

近 30 天在榜天数

项目状态许可证: GPL-3.0最近 push: 10月25日Open Issues(含 PR): 487

自 2026-10-25 起采集;未知 = 尚未采集到

把上榜徽章放进你的 README · Koenkk/zigbee2mqtt[![把上榜徽章放进你的 README](https://git.vaiox.xyz/api/badge/Koenkk/zigbee2mqtt.svg)](https://git.vaiox.xyz/zh/repo/Koenkk/zigbee2mqtt)
<a href="https://git.vaiox.xyz/zh/repo/Koenkk/zigbee2mqtt"><img src="https://git.vaiox.xyz/api/badge/Koenkk/zigbee2mqtt.svg" alt="把上榜徽章放进你的 README" height="20"></a>

项目文档



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.

If you aren't familiar with Zigbee terminology make sure you read this to help you out.

Zigbee2MQTT integrates well with (almost) every home automation solution because it uses MQTT. However the following integrations are worth mentioning:

Home Assistant


Home Assistant OS using the official addon (other installations)


Homey


Integration implemented in the Homey App (documentation & support)


Domoticz


Integration implemented in Domoticz (documentation).


Gladys Assistant


Integration implemented natively in Gladys Assistant (documentation).


ioBroker


Integration implemented in ioBroker (documentation).


Architecture

Architecture

Internal Architecture

Zigbee2MQTT is made up of three modules, each developed in its own Github project. Starting from the hardware (adapter) and moving up; zigbee-herdsman connects to your adapter to handle Zigbee communication and makes an API available to the higher levels of the stack. For e.g. Texas Instruments hardware, zigbee-herdsman uses the TI zStack monitoring and test API to communicate with the adapter. The module zigbee-herdsman-converters handles the mapping from individual device models to the Zigbee clusters they support. Zigbee clusters are the layers of the Zigbee protocol on top of the base protocol that define things like how lights, sensors and switches talk to each other over the Zigbee network. Finally, the Zigbee2MQTT module drives zigbee-herdsman and maps the zigbee messages to MQTT messages. Zigbee2MQTT also keeps track of the state of the system. It uses a database.db file to store this state; a text file with a JSON database of connected devices and their capabilities. Zigbee2MQTT provides several web-based interfaces (zigbee2mqtt-frontend, zigbee2mqtt-windfront) that allows monitoring and configuration.

Developing

Zigbee2MQTT uses TypeScript. Therefore after making changes to files in the lib/ directory you need to recompile Zigbee2MQTT. This can be done by executing pnpm run build. For faster development instead of running pnpm run build you can run pnpm run build:watch in another terminal session, this will recompile as you change files.

Before running any of the commands, you'll first need to run pnpm install --include=dev. Before submitting changes run pnpm run check:w then pnpm run test:coverage.

Supported devices

See Supported devices to check whether your device is supported. There is quite an extensive list, including devices from vendors like Xiaomi, Ikea, Philips, OSRAM and more.

If it's not listed in Supported devices, support can be added (fairly) easily, see How to support new devices.

Support & help

If you need assistance you can check opened issues. Feel free to help with Pull Requests when you were able to fix things or add new devices or just share the love on social media.

当前上榜

近 30 天势头

近 30 天没有上榜记录。

同类项目 · 共享主题

← 回到榜单