# Howto Setup Zigbee2mqtt on OpenWrt

**URL:** <https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856>\
**Category:** Community Builds, Projects & Packages\
**Created:** [February 21, 2019, 3:11pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856 "2019-02-21T15:11:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [February 21, 2019, 3:11pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/1 "2019-02-21T15:11:02Z")

</div>

How to setup a private zigbee gateway as a lot of zigbee gateway phone home and are not inter-operable with other zigbee devices -- [Zigbee2mqtt](https://github.com/Koenkk/zigbee2mqtt) to the rescue

you will need to buy a [zigbee sniffer](https://www.aliexpress.com/item/CC2531-CC2540-Zigbee-Sniffer-Wireless-Board-Bluetooth-BLE-4-0-Dongle-Capture-Module-USB-Programmer-Downloader/32963612661.html?spm=a2g0s.9042311.0.0.28d84c4dU7jo5Y) and [programmer](https://www.aliexpress.com/item/CC-Debugger-and-Programmer-Downloader-Zigbee-Emulator-Support-CC2430-CC2530-CC2531-CC2540-for-RF-System-on/32906357856.html?spm=a2g0s.9042311.0.0.28d84c4dU7jo5Y) but they are not to expensive at $30 for the complete set you can follow this [howto](https://gadget-freakz.com/diy-zigbee-gateway/) to flash the sniffer.

to get zigbee2mqtt to work with openwrt you will need to upgrade nodejs as the current version on openwrt is 8.10 it requires 8.11 or higher ( max 10.15.1)

currently to do that you will need to install a [build system](https://openwrt.org/docs/guide-developer/build-system/install-buildsystem) on a linux computer

here the basic to upgrading nodejs - defaults to 8.15.0 which is fine for zigbee2mqtt

```
git clone https://git.openwrt.org/openwrt/openwrt.git/
cd openwrt

git fetch --tags ( choose version you wish to use oe v18.06.1 the current)
git checkout v18.06.1

./scripts/feeds update -a
./scripts/feeds install -a

```

now edit feeds.conf.default add line

ie : nano feeds.conf.default

```
src-git node https://github.com/nxhack/openwrt-node-packages.git

```

run the following

```
./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-*
./scripts/feeds install -a -p node

```

once done

```
make menuconfig 

```

set your Target System and Subtarget to match your device  
then go to - languages ----\> node.js---\> and select module you will to compile for nodejs.

```
make

```

once done copy to usb stick and install into openwrt system with opkg install

once newer version of nodejs and npm are installed

you will need to add some added packages to openwrt via the software installer - please install -- make and gcc

once done that execute this line to fix lpthread issue

```
ar -rc /usr/lib/libpthread.a 

```

now you can continue on with the zigbee2mqtt install from the howto

```
# Clone zigbee2mqtt repository
sudo git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
# Install dependencies
cd /opt/zigbee2mqtt
npm install

```

to start zigbee2mqtt

```
cd /opt/zigbee2mqtt
npm start

```

if all goes well it should install proper and look like this

 ![Screenshot_20190221_090013](https://forum.openwrt.org/uploads/default/original/2X/8/8a2dfc27e0f2c71c6ba1f2eb5a0ad8c071ea809c.png)

now if you have not already added zigbee2mqtt plugin to domoticz follow these instruction on how to do it the domoticz plugin folder is found at /etc/domoticz/plugin ( requires python3)

> **[stas-demydiuk/domoticz-zigbee2mqtt-plugin](https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin)**
>
> zigbee2mqtt plugin for domoticz. Contribute to stas-demydiuk/domoticz-zigbee2mqtt-plugin development by creating an account on GitHub.

and then connect your zigbee device to your openwrt router

okay good luck have fun

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [February 21, 2019, 4:05pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/2 "2019-02-21T16:05:38Z")

</div>

and here a sample of zigbee2mqtt running in openwrt domoticz with my cheap [xiaomi MI zigbee](https://www.aliexpress.com/item/100-Xiaomi-Mi-Smart-WiFi-Socket-Plug-ZigBee-Version-APP-Remote-Control-Timer-Power-Detection/32952136152.html?spm=a2g0s.9042311.0.0.4d994c4dBVqG3a)

 ![Screenshot_20190221_095815](https://forum.openwrt.org/uploads/default/original/2X/a/a2f299255d7bd992f8bc7124815d38d4534de6a7.png)

---

<div class="post-metadata">

**Author:** ![zorrua](https://forum.openwrt.org/letter_avatar/zorrua/32/5_5575768a8748004e209b776fc1b2916d.png) [@zorrua](https://forum.openwrt.org/u/zorrua)\
**Post date:** [October 6, 2019, 5:00pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/3 "2019-10-06T17:00:01Z")

</div>

Hello,

I would like to use a OpenWRT device as a ZigBee hub.

Could be possible to compile it as package?

Kind regards.

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [October 6, 2019, 6:20pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/4 "2019-10-06T18:20:52Z")

</div>

I personally have not tried the newest versions of openwrt- if they are still using 8.10. or if they upgrade nodejs to +8.11 yet.. if they did then I really would not worry to much about zigbee2mqtt package. it would probably be just as easy to manually install it and that way you are most likely to have the most support for zigbee devices

as on openwrt itself all you need to do is install make and gcc  
run this line

```
ar -rc /usr/lib/libpthread.a 

```

then to install zigbee2mqtt

```
# Clone zigbee2mqtt repository
sudo git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
# Install dependencies
cd /opt/zigbee2mqtt
npm install

```

to start zigbee2mqtt

```
cd /opt/zigbee2mqtt
npm start

```

---

<div class="post-metadata">

**Author:** ![linbox](https://forum.openwrt.org/user_avatar/forum.openwrt.org/linbox/32/28730_2.png) [@linbox](https://forum.openwrt.org/u/linbox)\
**Post date:** [January 5, 2020, 3:53pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/5 "2020-01-05T15:53:56Z")

</div>

I there a way to compile it directly into the firmware without having to install gcc and make onto the router?  
I can't fit everything onto the image it gets too large whne I compile node.js and gcc into the firmware

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [January 5, 2020, 7:26pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/6 "2020-01-05T19:26:39Z")

</div>

a ways you could try -- [extend your filed system](https://openwrt.org/docs/guide-user/additional-software/extroot_configuration)  
I never tried but it should be doable.. you could expand your file system using a usbstick complile the packages. then tar compress it save the compile revision to usb stick - -- reflash your router or just remove the the overlay - then copy the pre compiled version of zigbee2mqtt folder back on to your openwrt router .. and if it works fine you could upload the precompile version to github to save other people the trouble at a later date or provide me a link to it and I will upload it for you to github under a universal header so multiple people can send me a for various types of modems hope that helps

---

<div class="post-metadata">

**Author:** ![Jakdaw](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jakdaw/32/12469_2.png) [@Jakdaw](https://forum.openwrt.org/u/Jakdaw)\
**Post date:** [April 30, 2020, 1:03pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/7 "2020-04-30T13:03:00Z")

</div>

Alternative to running zigbee2mqtt on the router is to use USB over IP so that you can still plug the Zigbee receiver into the router but run the software elsewhere wherever you're running HA/Domoticz whatever.

usbip is a bit broken on OpenWRT at the moment - you need to uninstall libudev-fbsd and use the old libudev from LEDE. But ignoring that step, it works v well.

---

<div class="post-metadata">

**Author:** ![mgf909](https://forum.openwrt.org/letter_avatar/mgf909/32/5_5575768a8748004e209b776fc1b2916d.png) [@mgf909](https://forum.openwrt.org/u/mgf909)\
**Post date:** [June 8, 2020, 4:15am UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/8 "2020-06-08T04:15:34Z")

</div>

Hi @sash99,  
Thank you so much for writing this guide !  
I've got this running nicely on a Raspberry PI 3 on  
OpenWrt 19.07.2 r10947-65030d81f3 / LuCI openwrt-19.07 branch git-20.155.55664-f35803e

I now want to get it going on a "Mango" router [https://www.gl-inet.com/products/gl-mt300n-v2/](https://www.gl-inet.com/products/gl-mt300n-v2/)  
but i failed as it ran out of space.... and seeing your comment her about compiling it and then moving it looked like an answer! - Id rather not extend the space as there is only a single USB port on the Mango and im resisting the need to run a USB hub if at all possible.  
So, i was hoping i can just copy the working /opt/zigbee2mqtt/ from my Rpi onto the Mango...

So first question is - do i need all the directories within /opt/zigbee2mqtt/ eg: docker,.git,.github i presume are not req for running it - what about the /opt/zigbee2mqtt/node\_modules?

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [June 9, 2020, 12:23am UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/9 "2020-06-09T00:23:41Z")

</div>

yes you need to copy over everything - but you can trim stuff that is unused if you like I just never tried so it will be trial and error . I would just rename the folder test see what happens if it crashes rename it back and try again

---

<div class="post-metadata">

**Author:** ![RelentlesS](https://forum.openwrt.org/letter_avatar/relentless/32/5_5575768a8748004e209b776fc1b2916d.png) [@RelentlesS](https://forum.openwrt.org/u/RelentlesS)\
**Post date:** [June 27, 2020, 2:47pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/10 "2020-06-27T14:47:12Z")

</div>

I have issues setting this up. Detailed information about my setup can be found here.

> <https://github.com/openwrt/packages/issues/12626>
>
> Maintainer: @ammubhave @neheb @dwmw2 @stintel
> Environment: (ipq806x, Netgear R7800, OpenWrt master)
> Description:
> I am running a recent master build of OpenWRT on my Netgear...

Help and or suggestions are very welcome.  
Thanks for the guide.

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [June 27, 2020, 4:57pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/11 "2020-06-27T16:57:39Z")

</div>

zigbee2MQTT is found under devices

 ![zigbee](https://forum.openwrt.org/uploads/default/original/3X/9/7/97b466b27d3bd35e462d06de70dba22479912e9b.png)

---

<div class="post-metadata">

**Author:** ![RelentlesS](https://forum.openwrt.org/letter_avatar/relentless/32/5_5575768a8748004e209b776fc1b2916d.png) [@RelentlesS](https://forum.openwrt.org/u/RelentlesS)\
**Post date:** [June 27, 2020, 5:11pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/12 "2020-06-27T17:11:24Z")

</div>

I added a post to the github issue.  
I added the devices already but where is the Custom Menu and where are the real Zigbee Devices?

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [June 27, 2020, 5:35pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/13 "2020-06-27T17:35:09Z")

</div>

once you add zigbee2MQTT - the zigbee device are added to devices automatically (if not then you have pairing turned off check your setting)

 ![zigbee2](https://forum.openwrt.org/uploads/default/original/3X/c/4/c4d9ba6be84daafcc5ad98a131339f3348b0df85.png)

then it creates automatically the switch or info panel  
info:

 ![zigbee3](https://forum.openwrt.org/uploads/default/original/3X/6/f/6fb0ddb61c9b05b31dabc7ed063cccd840fafb39.png)

switch:

 ![zigbee4](https://forum.openwrt.org/uploads/default/original/3X/c/d/cd0c62c110a8f264d3e05246e6be585dadc32758.png)

also if you run zigbee2mqtt in a in command prompt - so can see if it actually detecting your zigbee devices -- example can be seen above how to to that

```
cd /opt/zigbee2mqtt
npm start

```

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [June 27, 2020, 5:54pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/14 "2020-06-27T17:54:01Z")

</div>

I noticed this on your github post

```
Joining new devices is disabled on the zigbee bridge

```

you will need to enable it for your devices to connect

---

<div class="post-metadata">

**Author:** ![RelentlesS](https://forum.openwrt.org/letter_avatar/relentless/32/5_5575768a8748004e209b776fc1b2916d.png) [@RelentlesS](https://forum.openwrt.org/u/RelentlesS)\
**Post date:** [June 28, 2020, 2:56pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/15 "2020-06-28T14:56:23Z")

</div>

Thanks for your help.

I connected 3 dimmable IKEA Tradfri light bulbs and the round 5 button IKEA Tradfri Remote Control. They show up under devices and I can add the bulbs to control them individually on the _Switches_ page. The 3 bulbs are also in a group (in `zigbee2mqtt/data/cofiguration.yaml`). I can add the group as well but by default it is only a On/Off Plug, not a Dimmer. If I change it to be a Dimmer. I can Turn all bulbs on with a single button press. All have the lowest brightness. Any other action I do (increase brightness , trun On /Off) turns them all off and I can never turn them on again.

> **Syslog**
>
> ```
> Sun Jun 28 16:24:19 2020 daemon.err npm[1680]: npm info it worked if it ends with ok
> Sun Jun 28 16:24:19 2020 daemon.err npm[1680]: npm info using npm@6.14.4
> Sun Jun 28 16:24:19 2020 daemon.err npm[1680]: npm info using node@v12.18.0
> Sun Jun 28 16:24:20 2020 daemon.err npm[1680]: npm info lifecycle zigbee2mqtt@1.14.0~prestart: zigbee2mqtt@1.14.0
> Sun Jun 28 16:24:20 2020 daemon.err npm[1680]: npm info lifecycle zigbee2mqtt@1.14.0~start: zigbee2mqtt@1.14.0
> Sun Jun 28 16:24:20 2020 daemon.info npm[1680]:
> Sun Jun 28 16:24:20 2020 daemon.info npm[1680]: > zigbee2mqtt@1.14.0 start /opt/zigbee2mqtt
> Sun Jun 28 16:24:20 2020 daemon.info npm[1680]: > node index.js
> Sun Jun 28 16:24:20 2020 daemon.info npm[1680]:
> Sun Jun 28 16:24:22 2020 daemon.info domoticz: Domoticz is starting up....
> Sun Jun 28 16:24:22 2020 daemon.info domoticz: Domoticz running...
> Sun Jun 28 16:24:22 2020 daemon.info domoticz: Active notification Subsystems: fcm, http (2/13)
> Sun Jun 28 16:24:22 2020 daemon.info domoticz: Starting shared server on: :::6144
> Sun Jun 28 16:24:24 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:24: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-06-28.16-24-24' filename: log.txt
> Sun Jun 28 16:24:25 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:25: Starting zigbee2mqtt version 1.14.0 (commit #unknown)
> Sun Jun 28 16:24:25 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:25: Starting zigbee-herdsman...
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: zigbee-herdsman started
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: Currently 4 devices are joined:
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: dining_table_remote_control (0x680ae2fffea3e3b0): E1524/E1810 - IKEA TRADFRI remote control (EndDevice)
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: front_bulb (0x14b457fffe260ed4): LED1842G3 - IKEA TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (Router)
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: rear_bulb (0x000d6ffffe4b5023): LED1842G3 - IKEA TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (Router)
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: central_bulb (0xccccccfffe5b491d): LED1842G3 - IKEA TRADFRI LED bulb E27 WW clear 250 lumen, dimmable (Router)
> Sun Jun 28 16:24:28 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:28: Zigbee: disabling joining new devices.
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: Connecting to MQTT server at mqtt://localhost
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: Connected to MQTT server
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/dining_table_remote_control', payload '{"update_available":false,"linkquality":60,"battery":74}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:29 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:29: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:24:30 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:24:30: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.14.0","commit":"unknown","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"info","permit_join":false}'
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Installing plugin custom page...
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Installing plugin custom page completed.
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Connected to MQTT Server: 127.0.0.1:1883
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Zigbee2mqtt bridge is online
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Joining new devices is disabled on the zigbee bridge
> Sun Jun 28 16:32:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:32:22: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"devices","message":[{"ieeeAddr":"0x00124b0014d90b53","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190608","lastSeen":1593354742725},{"ieeeAddr":"0x680ae2fffea3e3b0","type":"EndDevice","networkAddress":49629,"model":"E1524/E1810","vendor":"IKEA","description":"TRADFRI remote control","friendly_name":"dining_table_remote_control","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI remote control","hardwareVersion":1,"softwareBuildID":"2.3.014","dateCode":"20190401","lastSeen":1593346549816},{"ieeeAddr":"0x14b457fffe260ed4","type":"Router","networkAddress":47810,"model":"LED1842G3","vendor":"IKEA","description":"TRADFRI LED bulb E27 WW clear 250 lumen, dimmable","friendly_name":"front_bulb","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerS
> Sun Jun 28 16:32:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:32:22: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"groups","message":[{"optimistic":true,"devices":["0x14b457fffe260ed4","0xccccccfffe5b491d","0x000d6ffffe4b5023"],"friendly_name":"dining_table","ID":1}]}'
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Received available devices list from bridge
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Received groups list from bridge
> Sun Jun 28 16:32:22 2020 daemon.info domoticz: (CC2531) Group dining_table
> Sun Jun 28 16:33:13 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:13: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"ON","brightness":0}'
> Sun Jun 28 16:33:13 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:13: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"ON","brightness":0}'
> Sun Jun 28 16:33:13 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:13: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"ON","brightness":0}'
> Sun Jun 28 16:33:13 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:13: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"ON","brightness":0}'
> Sun Jun 28 16:33:17 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:17: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:17 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:17: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:17 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:17: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:17 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:17: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:20 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:20: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:20 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:20: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:20 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:20: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:20 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:20: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:22: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:22: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:22: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:33:22 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:33:22: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:37:54 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:37:54: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:37:54 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:37:54: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:37:54 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:37:54: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:37:54 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:37:54: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:32 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:32: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:32 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:32: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:32 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:32: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:32 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:32: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:36 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:36: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:36 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:36: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:36 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:36: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:36 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:36: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:38 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:38: MQTT publish: topic 'zigbee2mqtt/front_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:38 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:38: MQTT publish: topic 'zigbee2mqtt/dining_table', payload '{"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:38 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:38: MQTT publish: topic 'zigbee2mqtt/central_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> Sun Jun 28 16:38:38 2020 daemon.info npm[1680]: e[32mzigbee2mqtt:info e[39m 2020-06-28 16:38:38: MQTT publish: topic 'zigbee2mqtt/rear_bulb', payload '{"update_available":false,"state":"OFF","brightness":0}'
> 
> ```

There must be something wrong because I don't always press off as it is shown in the log. I e.g. change brightness of the group.

What is the preferred way to control all 3 bulbs in brightness and ON/OFF with the remote AND the Domoticz WebUI / App?

Where is the `Installing plugin custom page` ? E.g. [this](https://user-images.githubusercontent.com/2734836/79760084-363b2e00-8328-11ea-994f-32b7b58ea6be.png) page.

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [June 28, 2020, 7:42pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/16 "2020-06-28T19:42:44Z")

</div>

dimming in group on domoticz is a round about way of scripts - your best bet is to look it up on domoticz howto pages but here an example to get you started

i use this one :  
[https://www.domoticz.com/forum/viewtopic.php?t=25420](https://www.domoticz.com/forum/viewtopic.php?t=25420)

or if that does not work here try some [others](https://www.google.com/search?safe=active&client=ubuntu&hs=470&channel=fs&sxsrf=ALeKk00owo40OqWBtvpDj7yL2KpwCOwJxA%3A1593372799246&ei=f_D4XqfKDqyw_Qae4IqYAw&q=domoticz++dim+group+bulbs&oq=domoticz++dim+group+bulbs&gs_lcp=CgZwc3ktYWIQAzIFCCEQoAE6BAgjECc6BwghEAoQoAE6BAghEBU6CAghEBYQHRAeUNVLWMqMAWCxkQFoAXAAeACAAaICiAHREpIBBjAuMTEuMpgBAKABAaoBB2d3cy13aXo&sclient=psy-ab&ved=0ahUKEwjnhcadoKXqAhUsWN8KHR6wAjMQ4dUDCAs&uact=5)

---

<div class="post-metadata">

**Author:** ![RelentlesS](https://forum.openwrt.org/letter_avatar/relentless/32/5_5575768a8748004e209b776fc1b2916d.png) [@RelentlesS](https://forum.openwrt.org/u/RelentlesS)\
**Post date:** [June 30, 2020, 7:51am UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/17 "2020-06-30T07:51:48Z")

</div>

I started to develop a script to help with the setup of cc2531 and domoticz on openwrt. As of now there are a lot of TODO's. If you want to help please go ahead and contact me or open up a merge request on:

> **[mabachel/cc2531-home-automation-stack](https://github.com/mabachel/cc2531-home-automation-stack)**
>
> Utility to help you with a home automation setup on your openwrt router with a cc2531. - mabachel/cc2531-home-automation-stack

---

<div class="post-metadata">

**Author:** ![markthehipster](https://forum.openwrt.org/letter_avatar/markthehipster/32/5_5575768a8748004e209b776fc1b2916d.png) [@markthehipster](https://forum.openwrt.org/u/markthehipster)\
**Post date:** [March 29, 2021, 10:29pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/18 "2021-03-29T22:29:32Z")

</div>

Hey @sash99 ,

I know this thread is a bit old, but how did you manage to get cc2531 recognised on your usb?  
I'm trying to get my router to see `/dev/ttyACM0` but I just can't get the Pi to recognise it..  
I tried installing cdc modules, cc2530 driver ( via opkg) etc. but nothing.  
(the module works on a debian based system just fine)

It's being seen, but no udev gets created.

```
[87.167883] usb 1-1.1: new full-speed USB device number 3 using xhci_hcd
[87.280867] usb 1-1.1: New USB device found, idVendor=0451, idProduct=16a8, bcdDevice= 0.09
[87.289248] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[87.296581] usb 1-1.1: Product: TI CC2531 USB CDC
[87.301300] usb 1-1.1: Manufacturer: Texas Instruments
[87.306451] usb 1-1.1: SerialNumber: __0X00124B0018E28C7D

```

lsusb also doesnt show any class or driver for it.

Thanks!

---

<div class="post-metadata">

**Author:** ![sash99](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sash99/32/15515_2.png) [@sash99](https://forum.openwrt.org/u/sash99)\
**Post date:** [March 30, 2021, 1:36pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/19 "2021-03-30T13:36:04Z")

</div>

do you usb core installed and acm these are the kmods I have installed on my openwrt hub a couple are related to the wifi and other usb devices

```
kmod-rtlwifi-usb
kmod-usb-acm
kmod-usb-core
kmod-usb-serial
kmod-usb-serial-ftdi
kmod-usb-serial-pl2303
kmod-usb-storage
libusb-1.0
usbutils

```

---

<div class="post-metadata">

**Author:** ![markthehipster](https://forum.openwrt.org/letter_avatar/markthehipster/32/5_5575768a8748004e209b776fc1b2916d.png) [@markthehipster](https://forum.openwrt.org/u/markthehipster)\
**Post date:** [March 30, 2021, 1:50pm UTC](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856/20 "2021-03-30T13:50:01Z")

</div>

I barely had a few of these 🙂 I'll try to build a new image in a few with these, and fingers crossed it works.

Thank you so much!

[Next page](https://forum.openwrt.org/t/howto-setup-zigbee2mqtt-on-openwrt/31856.md?page=2)
