Howto Setup Zigbee2mqtt on OpenWrt

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 to the rescue

you will need to buy a zigbee sniffer and programmer but they are not to expensive at $30 for the complete set you can follow this howto 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 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

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)

and then connect your zigbee device to your openwrt router

okay good luck have fun

4 Likes

and here a sample of zigbee2mqtt running in openwrt domoticz with my cheap xiaomi MI zigbee

1 Like

Hello,

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

Could be possible to compile it as package?

Kind regards.

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

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

a ways you could try -- extend your filed system
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

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.

1 Like

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/
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?

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

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

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

zigbee2MQTT is found under devices

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?

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

then it creates automatically the switch or info panel
info:

switch:

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

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

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 page.

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

or if that does not work here try some others

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:

1 Like

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!

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
1 Like

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

Thank you so much!