Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
Go to file
Koen Kanters ba2d9aefe6
Fix Home Assistant installed_version error (#15369)
* Fix HA installed_version error

* add link
2022-12-05 16:52:11 +01:00
.github Add polling when bounded for Trust and Gledopto (#15126) 2022-11-22 19:35:15 +01:00
data Dont add advanced configuration by default. 2018-05-24 20:19:04 +02:00
docker Update Docker image to use node:18-alpine3.16 (#14915) 2022-11-10 17:48:17 +01:00
images [ImgBot] Optimize images (#4602) 2020-10-08 20:35:42 +02:00
lib Fix Home Assistant installed_version error (#15369) 2022-12-05 16:52:11 +01:00
scripts Update external converter tester. 2022-11-22 19:16:25 +01:00
test Fix Home Assistant installed_version error (#15369) 2022-12-05 16:52:11 +01:00
.dockerignore Enable TypeScript (#8074) 2021-07-21 19:35:14 +02:00
.eslintignore Zigbee-herdsman (#1945) 2019-09-09 19:48:09 +02:00
.eslintrc.js Add compatibility tests (#12527) 2022-05-21 08:37:39 +02:00
.gitignore Home Assistant discover number selection entities for numeric values supporting set (#8640) 2021-09-06 17:38:34 +02:00
.npmignore Enable TypeScript (#8074) 2021-07-21 19:35:14 +02:00
.npmrc Add .npmrc 2018-07-03 18:57:36 +02:00
babel.config.js More TypeScript refactoring (#8797) 2021-09-18 18:23:28 +02:00
cli.js Implement cli version of z2m (#5034) 2020-11-21 16:02:49 +01:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2021-01-28 20:37:05 +01:00
CONTRIBUTING.md Fix a typo in CONTRIBUTING.md (#10159) 2021-12-14 16:49:23 +01:00
index.js Remove core-js polyfills (#14788) 2022-11-05 14:17:53 +01:00
LICENSE Initial commit 2017-09-27 16:38:22 +03:00
package-lock.json Update zigbee-herdsman-converters to 14.0.683 (#15356) 2022-12-04 20:09:14 +00:00
package.json Update zigbee-herdsman-converters to 14.0.683 (#15356) 2022-12-04 20:09:14 +00:00
README.md Update README.md 2022-11-02 22:00:25 +01:00
tsconfig.json More TypeScript refactoring (#8797) 2021-09-18 18:23:28 +02:00
update.sh Rework ci and use package-lock.json instead of npm-shrinkwrap.json (#12631) 2022-06-02 14:38:07 +00:00



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.

Getting started

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.

Integrations

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

Home Assistant

Domoticz


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 Zigbee adapter 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. Zigbee-herdsman handles the core Zigbee communication. 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 a web-based interface that allows monitoring and configuration.

Developing

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

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.