# New Zigbee dongle

**URL:** https://discourse.nodered.org/t/new-zigbee-dongle/54673
**Category:** Hardware
**Tags:** zigbee
**Created:** [3 December 2021 14:45 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673 "2021-12-03T14:45:34Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 December 2021 13:59 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/21 "2021-12-05T13:59:22Z")

</div>

I got all excited for a while when I found that page, it does show my modified values, however when I tried to change it and Apply I got

```auto
error 2021-12-05 13:53:10: Request 'zigbee2mqtt/bridge/request/device/configure_reporting' failed with error: 'Bind 0x00124b0022e93b79/1 msTemperatureMeasurement from '0x00124b001cde5703/1' failed (AREQ - ZDO - bindRsp after 10000ms)'
info 2021-12-05 13:53:10: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure_reporting', payload '{"data":{},"error":"Bind 0x00124b0022e93b79/1 msTemperatureMeasurement from '0x00124b001cde5703/1' failed (AREQ - ZDO - bindRsp after 10000ms)","status":"error","transaction":"y8kyy-4"}'

```

and it went back to the original values.

On the [page for the device](https://www.zigbee2mqtt.io/devices/SNZB-02.html#sonoff-snzb-02) on the zigbeeMQTT site it says:  
It has been reported, that the sensor reports humidity changes quite frequently (changes on 2nd digit level), but temperature changes are reported only once per hour or when temperature has changed \> ~0.6°C. This results in a _staircase_ development in recorded temperatures and inhibits fine-granular climate control. No resolution is known so far. See also [Homeassistant Community Forums](https://community.home-assistant.io/t/sonoff-snzb-02-temp-sensor-reporting-interval/216315/7).

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [5 December 2021 15:20 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/22 "2021-12-05T15:20:54Z")

</div>

I saw that. Sounds to me as though you have the start of the fix for that. But it should really surface the control in the web interface. One to report as an issue I think?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 December 2021 16:16 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/23 "2021-12-05T16:16:15Z")

</div>

> [@TotallyInformation](#):
>
> One to report as an issue I think

Well it is already in the information on the device, so surely the powers that be must know about it?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 December 2021 16:32 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/24 "2021-12-05T16:32:47Z")

</div>

On a slightly different tack, when you change any of those does it save it in the config file so that it is persistent? I wonder whether the problem is that it can only be reconfigured on initial connection, or something like that. If I manually put it in the config file it might work.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [5 December 2021 16:53 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/25 "2021-12-05T16:53:59Z")

</div>

[Support does not appear to be great](https://www.youtube.com/watch?v=I5eEAnRWz-g) in terms of firmware (yet).

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [5 December 2021 17:11 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/26 "2021-12-05T17:11:20Z")

</div>

> [@Colin](#):
>
> surely the powers that be must know about it?

An assumption - better to be explicit since you have got the answer to hand and they don't seem to.

> [@Colin](#):
>
> when you change any of those does it save it in the config file so that it is persistent?

Yes it does.

> [@bakman2](#):
>
> firmware

Ah. Well I have my ZZH, I might consider getting one of these as a backup sometime in the future. The ZZH does cost 3x as much but given that you only need 1, I have fewer problems with that than I do spending more on individual plug/switch/sensor devices.

Now, off to try and buy some cheap ethernet RJ45 plugs because I've started to think again about where I want to put sensors a bit further away from the microcontrollers and while I can create custom dupont cables, it still isn't as easy as keeping the RJ45 cable in 1 piece and wiring in a plug I don't think (and I have a LOT of old RJ45 cables 😀 ).

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 December 2021 17:55 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/27 "2021-12-05T17:55:03Z")

</div>

> [@TotallyInformation](#):
>
> Yes it does

Have you got the format for that, specifically those parameters? I couldn't find it in the docs.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [5 December 2021 18:01 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/28 "2021-12-05T18:01:14Z")

</div>

Sorry, I don't, I just know that making adjustments to that page updates the config file. As I say, I'm not very expert with Zigbee2mqtt. Indeed, I've managed to mess up the whole thing several times when trying to do updates.

---

<div class="post-metadata">

### Author: ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)
#### Post date: [10 December 2021 15:25 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/29 "2021-12-10T15:25:54Z")

</div>

Hopefully, it is the same as I have just ordered one. VAT has to be added to the £8.63. Fingers crossed !!

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [10 December 2021 15:43 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/30 "2021-12-10T15:43:46Z")

</div>

I've not used zigbee, but tempted to have a look.

The description of the device isn't clear (to me!),  
is the USB plug just for power, or does it use it to pass data via serial bus?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 December 2021 16:03 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/31 "2021-12-10T16:03:24Z")

</div>

Assuming it is the same as the devce in the first post (the usb zigbee coordinator), that is a zigbee bus coordinator, which means it is the master device that slave devices (and routers, or repeaters) connect to. Mains powered zigbee devices are usually slave devices and also routers/repeaters so they can extend the bus.

zigbee2mqtt is a good software package to drive the coordinator and provide access via mqtt.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [10 December 2021 16:17 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/32 "2021-12-10T16:17:32Z")

</div>

So is the usb plug on the zigbee coordinator just for power, or does it use it to pass data via serial bus into a Pi?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 December 2021 16:30 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/33 "2021-12-10T16:30:07Z")

</div>

> [@Paul-Reed](#):
>
> does it use it to pass data via serial bus

Well it isn't actually a physical serial bus, but yes. Zigbee2MQTT connects to the port and drives the device.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 December 2021 16:32 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/34 "2021-12-10T16:32:03Z")

</div>

You can also get wifi devices that act as a wifi/zigbee interface, like the Sonoff ZBridge, which can be flashed with Tasmota.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [10 December 2021 16:40 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/35 "2021-12-10T16:40:35Z")

</div>

The reason that I ask is that I already have & use a RF interface board attached to my Pi which then receives data on /dev/ttyAMA0.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 December 2021 16:43 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/36 "2021-12-10T16:43:38Z")

</div>

You can have multiple usb/serial devices. The next one will by AMA1. Which one to use is configurable in zigbee2mqtt. You might need to setup a udev rule to make sure they always connect to the same dev names.

It is a good idea to run a usb extension away from the board to the controller, so the rf wifi and zigbee signals don't interfere as much, if wifi is enabled on the pi.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [10 December 2021 20:12 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/37 "2021-12-10T20:12:41Z")

</div>

Better still, you can use the device ID instead of the traditional /dev/tty\* that saves you having to mess with udev rules. I did that after having my Debian server randomly swap the usb allocations. Indeed, you should also do that in Node-RED.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e49ab41b9f52cf9761de098e9cbc32fa58bec622.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11957adf041d791ee08b791367370857bf9dd753.png)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [10 December 2021 20:45 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/38 "2021-12-10T20:45:18Z")

</div>

> [@TotallyInformation](#):
>
> Better still, you can use the device ID instead of the traditional /dev/tty\* that saves you having to mess with udev rules

When you start digging into Zigbee, it's like digging a hole - the more you dig - the deeper it gets 🤔

Thanks, I'm lost already, so I'm going to stick with sonoff/tasmota. Good luck guys!

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [10 December 2021 21:02 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/39 "2021-12-10T21:02:13Z")

</div>

> [@Paul-Reed](#):
>
> it's like digging a hole - the more you dig - the deeper it gets

That's what I thought before I tried it and it put me off for the longest time. Much of it is badly written up to be honest because it really is very easy.

You need something to act as a controller. It defines the network. Then you need devices that you link to the controller - very much like Bluetooth. Really, that's it.

The only other thing to note is how the mesh is formed around the network. Also easy. any Zigbee device that is plugged into the mains acts as a local hub other devices close to a hub will connect to it rather than to the controller (assuming the controller is further away). Again, that's it.

You will very rarely need to know anything more unless you have so many devices that you run out of slots on the controller.

Setting up Zigbee2mqtt was slightly fiddly to start as they make some assumptions in their documentation. Running an update to it is also annoyingly fiddly until you've done it twice and realised that the instructions are unnecessarily complex and again make unwarrented assumptions.

But really even all that is actually not hard, just a bit annoying. I wrote myself this BASH script to do upgrades:

```bash
#! /usr/bin/env bash

# Stop Zigbee2MQTT and go to directory
sudo systemctl stop zigbee2mqtt
cd /opt/zigbee2mqtt

if [-d data-backup]; then
   echo "ERROR: Backup directory exists. May be previous restoring was failed?"
   echo "1. Save 'data-backup' and 'data' dirs to safe location to make possibility to restore config later."
   echo "2. Manually delete 'data-backup' dir and try again. rm -rf /opt/zigbee2mqtt/data-backup"
   exit 1
fi

# Backup configuration
echo "Backing up data folder to data-backup - will delete at end"
cp -R data data-backup

echo "Making extra backup of data folder to ~/nrmain/zigbee2mqtt-data-backup"
cp -R data /home/home/nrmain/zigbee2mqtt-data-backup

# Update
echo "If this fails - check if data/data/ exists - maybe run 'git stash'"
git checkout HEAD -- npm-shrinkwrap.json
git pull
npm ci

# Restore configuration
cp -R data-backup/* data
rm -rf data-backup

# Start Zigbee2MQTT
sudo systemctl start zigbee2mqtt

echo "Completed. Run 'sudo journalctl -u zigbee2mqtt' to see log"

cd ~/nrmain

```

It takes care of the two possible failure modes and reminds me what to do in each case.

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [6 January 2022 23:49 UTC](https://discourse.nodered.org/t/new-zigbee-dongle/54673/40 "2022-01-06T23:49:01Z")

</div>

> [@TotallyInformation](#):
>
> That's what I thought before I tried it and it put me off for the longest time. Much of it is badly written up to be honest because it really is very easy.

I went through pretty much the same phases. I've now got 43 devices on our my Zigbee mesh within our 75m² apartment(!). I have a bit different view of how easy/simple it can be. For me, setting up Zigbee2MQTT was easy. I'm running it on Docker with the help of [Home - IOTstack](https://sensorsiot.github.io/IOTstack/). Connecting new devices using the web frontend has also been mostly easy, but I have already encountered few devices that were supposed to be supported by Zigbee2MQTT but in reality turned out to have incompatible hardware/firmware revisions on the market. To the credit of [Koenkk](https://github.com/Koenkk/), the wiz behind Z2M, most of the issues have been resolved within a few weeks at most.

When talking about Zigbee in general, I haven't yet gained pretty much any understanding of things like bindings or clusters for example. Understanding them doesn't seem to be necessary in order to use and like Zigbee but I would not go as far as say it is easy. 🙂

[Previous page](https://discourse.nodered.org/t/new-zigbee-dongle/54673.md?page=1)

[Next page](https://discourse.nodered.org/t/new-zigbee-dongle/54673.md?page=3)
