HomeHome AutomationGetting started with Sonoff ZIGBEE 3.0 USB DONGLE PLUS

Getting started with Sonoff ZIGBEE 3.0 USB DONGLE PLUS

Sonoff we have a ZigBee problem!

My adventures with Zigbee started with a CC2531 coordinator, which I used for a long time. It was recommended by me to anyone willing to give Zigbee2MQTT a go. Instead of flashing it yourself, you could get CC2531 on ITEAD Store pre-flashed and make your life easier. Now there is a new coordinator Sonoff ZIGBEE 3.0 USB DONGLE PLUS. It’s more powerful on paper, supports ZigBee 3.0 so you should get one right?

About that…

Sonoff ZIGBEE 3.0 USB DONGLE PLUS

It’s not the first Sonoff adventure with ZigBee devices. Between CC2531 and Sonoff ZIGBEE 3.0 USB DONGLE PLUS, they released a dedicated ZigBee hub to support their ZigBee Sensor range. It took approximately a month to get the hub hacked thanks to the community and run custom, tasmota based firmware on it. The process is messy, and there is a big market for a budget coordinator which is easy to use!

Sonoff ZIGBEE 3.0 USB DONGLE PLUS brings the power of TI CC2652P + CP2102N with +20dBm output gain, ZigBee 3.0 support and flashed coordinator firmware for Zigbee2MQTT. A USB style dongle is wrapped in an aluminium case which may (or not) decrease the direct interference caused by WiFi.

The dongle looks great, and the case makes it seem bullet-proof, but comes at a massive disadvantage. It will take a lot of space around the USB port. You may consider a USB extension cable if you want to use your neighbouring USB ports for anything else.

The Sonoff ZIGBEE 3.0 USB DONGLE PLUS comes pre-flashed with coordinator firmware and this is the firmware on my unit:

Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}

It’s worth mentioning that the pre-flashed firmware has support for up to 21 devices directly and 40 through the ZigBee mesh, but with a newer than 20210120 firmware your support for devices can be extended to 100. (ZigBee2MQTT figures claim 50/200).

Inside

It’s actually easy to open, as the Sonoff ZIGBEE 3.0 USB DONGLE PLUS is secured with 4 machined screws and simply slides out from the enclosure. The stick contains the TI CC2652P + CP2102N circuit and a dedicated header for dev access.

Despite having power indicators, the aluminium enclosure covers up the LEDs so you are not able to tell if the device is working. I’m yet to find out what the dip switch for the hardware control is for, but it is here (you will know when to enable this for flow control). Time to put it back to its case and start some testing.

Setting up Sonoff ZIGBEE 3.0 USB DONGLE PLUS

I’m pleased to say that Sonoff ZIGBEE 3.0 USB DONGLE PLUS is plug and play. If you are getting started, follow the installation instructions and plug your device in. Run

ls /dev/tty/*

to list the ports available on your device. Run it once when Sonoff ZIGBEE 3.0 USB DONGLE PLUS is unplugged, then do the same with the coordinator plugged in and play “spot the difference” to get your device address. it will look like this:

/dev/ttyUSB0

or similar. Open config file:

sudo nano /opt/zigbee2mqtt/data/configuration.yaml

and add the device to the configuration (don’t forget to change your MQTT server options etc).

homeassistant: false
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://xxxxxxx'
  user: xxx
  password: xxxxxxx
serial:
  port: /dev/ttyUSB0

Flashing Sonoff ZIGBEE 3.0 USB DONGLE PLUS vs CC2531 vs zzh

Sooner rather than later, you will face the fact that you have to change the firmware. I already tried the latest one, and due to the performance issues outlined below, I reverted back to the original rev: 20210120.

With time better firmware will be available for sure, thankfully the flashing process is pretty straightforward. You will need a Windows PC and the following:

Get everything installed and organised nearly and then:

Screenshot re-used from CC2652R but applies to CC2652P
  • Hold BLS button down, then plug the coordinator into the USB, let go after 2-3 sec
  • Open TI software and select CC2652P from the dropdown at the right
  • Pick the firmware .hex file for CC2652P
  • Select: Erase Program & Verify options
  • Use Play button to start the process.
 >Page: 43 verified OK.
 >Verification finished successfully.
 >Reset target ...
 >Reset of target successful.

This is the message upon the successful flash. If you are given anything else, make sure you held the BLS button long enough before and after the coordinator had been plugged in.

Sonoff ZIGBEE 3.0 USB DONGLE PLUS vs CC2531 vs zzh

Zigbee coordinators

Improved range, number of devices and better shielding are the advertised benefits of Sonoff ZIGBEE 3.0 USB DONGLE PLUS, since I have other coordinators let’s verify this in a very unscientific way (sorry folks, I don’t have proper radio equipment, but I’m happy to run around and test the reported values).

Specification

CC2531 Coordinator Sonoff ZIGBEE 3.0 zzh (electrolama)
TI CC2531 TI CC2652P + CP2102NTI CC2652R
Zigbee 1.2 (recommended) tested 3.0 Zigbee 3.0 Zigbee 3.0
Flash required (guide) or pre-flashed from Sonoffpre-flashedFlash required (guide)
Devices (direct/mesh) 20/30 Devices (direct/mesh) 21/40* Devices (direct/mesh) 50/200
Range +0dBm Range +20dBm Range +5dBm
Get Yours $4.90 Get Yours $4.90 Get Yours $30
*Custom firmware can extend this to 100

Tests

For this test, I will grab an end device and run around like crazy reporting the linkquality values and in the same locations. For obvious reasons, expect inaccuracies in my reports, but hopefully, it should show the advantages of using Sonoff ZIGBEE 3.0 USB DONGLE PLUS over CC2531.

All coordinators will be plugged into a 1.5m long USB extension lead to removing WiFi interference from Raspberry Pi, and because Sonoff ZIGBEE 3.0 USB DONGLE PLUS covers up other USB ports with excessively big body and my DeskPi PRO runs off SSD plugged at the back.

I will take measurements with the IKEA button pressed in different locations around the house:

  1. 1.5m from coordinator
  2. next to coordinator for max linkquality value
  3. 3m from coordinator in the same room
  4. 5m from coordinator across structural wall
  5. 5m from coordinator direct line of sight
  6. upstairs at the most remote location across structural wall (approx 9m)
  7. upstairs nearer to the coordinator in the room with WiFi router across structural wall (approx 6m)

Results

Take a look at the following screenshots. Numbered dots represent locations listed above in which I pressed the button to report the link quality.

Thanks to the bigger antenna and +20dB gain, we can see bigger values coming from Sonoff ZIGBEE 3.0 USB DONGLE PLUS, although the coordinator is equally prone to signal degradation over structural obstacles. Some of that will be also due to the limited range of the IKEA button.

With that said, the CC251 performance was pretty good, being outdone by zzh in the most difficult scenarios. I’d like to give the credit to my antenna hack, but it’s unlikely the reason.

The range isn’t everything

I haven’t done the proper range test for a very particular reason. ZigBee by default is a mesh system. It relies on a strong mesh between coordinator and routers. Ideally, you want to have at least one router device in your network (usually mains powered ZigBee devices). To handle the signal across rooms and multiple floors.

You can easily double the range of your ZigBee network but adding router devices, while achieving the same result with a more powerful ZigBee coordinator would likely result in increased interference between WiFi 2.4Ghz and ZigBee signal.

As you can see, even underpowered CC2531 did pretty well in my test. Having a dedicated router on the other half would significantly increase the practical range of my ZigBee network. Considering that Sonoff ZB Basic (act as a router) costs about $10, it’s a much better solution to your range anxiety than investing in premium coordinators.

Disappointing

Sonoff ZIGBEE 3.0 USB DONGLE PLUS
Sonoff ZIGBEE 3.0 USB DONGLE PLUS

Despite very similar results to the zzh coordinator, cheaper Sonoff coordinator comes with a lot of issues I had to overcome. You could see from the graph that extra gain and may come in handy when your ZigBee mesh isn’t propagated correctly, but Sonoff ZIGBEE 3.0 USB DONGLE PLUS comes with serious compatibility issues. I struggle to pair ZigBee devices, including the Sonoff ZB button which I expected to work without issues. I had no issues with CC2531 or zzh.

ITEAD decided to rely on community built firmware and it will be up to that community to address the incompatibilities. It will purely depend on the uptake of the coordinator but in the current state, I’m struggling to recommend this to anyone just getting started with ZigBee. In terms of compatibility, I found it less convenient to use than CC2531 or zzh.

The redeeming feature is its price. Sonoff offers pretty powerful hardware, at a budget price, but until the community gets behind a dedicated firmware for Sonoff ZIGBEE 3.0 USB DONGLE PLUS, it won’t become the mainstream DIY coordinator. Until then, if you need something better than CC2531, it’s worth investing in zzh which had been serving me well.

EDIT 08/10/2021

After submitting my feedback to ITEAD, the PR team responded that they are sending the coordinator to Koen (ZStack dev) to address the issues. It’s a move in the right direction, however, I can’t figure out why Koen wasn’t brought on board in the first place to assure a smooth launch. Let’s hope Koen is incentivised well for his work and focus on Sonoff coordinator.

Afterthoughts

Now that you have your brand new Sonoff ZIGBEE 3.0 USB DONGLE PLUS working, you may want to stock up on some other Sonoff ZigBee products:

Final thoughts

If you want a taste of ZigBee in your home automation, CC2531 is still a great budget option. In a couple of months, when firmware matures, Sonoff ZIGBEE 3.0 USB DONGLE PLUS can become an interesting choice with a reasonable price of $10. With the current supply issues, you may as well pull the trigger now, and keep it in a drawer until the issues get resolved. These things are sold in small batches and sell out quickly. For now, zzh is the way to go if you are looking for upgrades. What do you think? Let me know in this Reddit thread.

🆓📈 – See the transparency note for details.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

Smart Ideas with

Automate your space in with these ecosystems and integrate it with other automation services

client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image

Learn NodeRED

NodeRED for beginners: 1. Why do you need a NodeRED server?

0
To server or not to server? That's a very silly question!

Best Automation Projects

Nora – Google Assistant in NodeRED

0
Integrate Google Assistant with NodeRED thanks to Nora - NodeRED home automation

NEST your old thermostat under $5

0
Nest-ing up your older thermostat under $5

Tuya SDK for beginners: Intro to Tuya Cloud API

0
Working with Tuya Cloud API. A guide to Cloud automation for beginners, get started with REST!

Sonoff R3 DIY mode & why it sucks

0
Long awaited Sonoff R3 DIY mode is even worse than I expected.

Things they don’t tell you about IKEA Trådfri

0
There are things you should know about IKEA Tradfri before you make your purchase

Smart Home

Is Sonoff NSPanel the future we all wanted?

0
First look at Sonoff NSPanel - a touch screen display for your light switch! Is this the future of automation?

Getting started with Sonoff ZIGBEE 3.0 USB DONGLE PLUS

0
Testing Sonoff ZIGBEE 3.0 USB DONGLE PLUS against CC2531 and zzh (electrolama) - is it the best upgrade to your Zigbee network?

Can touch this: M5Stack Core2

0
M5Stack Core2 brings touch interface to the table, new UIFlow options which make programming super easy

Aqara Roller Shade Driver E1 & Zigbee2MQTT

0
Taking Aqara E1 apart, adding it to Zigbee2MQTT and NodeRED. This time with sunset/sunrise and temp controls

Testing Imou Ranger 2C 2MP & 4MP

0
Imou Ranger 2C comes in 2 flavours 1080P and 2K so let's compare them side by side and see which one is for you