Playing with Sonoff Zigbee & WiFi automation – Part 1: Hardware overview

I don’t think I’ve ever used Zigbee, but I’ll soon have the opportunity as ITEAD sent me the Sonoff ZBBridge gateway, a Sonoff T2 2-gang WiFi switch as well as a Zigbee motion sensor.

I had reviewed several Sonoff devices in the past, but it had been over three years that I hadn’t. ITEAD recently contacted me basically telling me I could select whatever I wanted from their product list for a review on CNX Software. Since I had reviewed several of the company’s WiFi smart sockets, smart switches, and a light bulb, I had less to play with, and then I thought it might be fun to play with Sonoff Zigbee products. But I did not own any Zigbee hardware, so I had to think about a use case.

I have a small annoyance in the house I rent. When we come back at night, we have to leave the car headlights on until I turn on the light on the porch. So it would be nice if the light could be triggered automatically upon motion detection, while still giving me the option to manually turn on and off the light as needed. That’s how the idea started, but I had to figure something out first…

2-gang switch thailand
Photo of my light switch after extensive cleaning…

I had no idea what standard was used in Thailand for the light switch. So I asked in a Thai Facebook private group about Sonoff, and was told to use a Sonoff switch for the US market, meaning either Sonoff T0 (WiFi only) or T2/T3 (WiFi + 433 MHz RF) from the Tx series. I was also told to make sure both neutral and live were connected, which they were, as some installations may only include the live wire. I eventually asked for a 2-gang T2 switch, plus Sonoff ZBBridge for Zigbee <-> WiFi connectivity, and a Zigbee motion sensor.

Sonoff mailbags “unboxing”

When the DHL delivery man called me, I was a bit surprised as he had two bags to give me. It turns out the company sent me two sets of the hardware I asked for.

Sonoff T2 Switch Zigbee Bridge Motion SensorVery convenient to take a photo of both sides of the packages! I intend to use one set with eWelink first, so maybe I’ll use the second with ESPHome or Tasmota, or alternatively, keep it for next year’s giveaway week on CNX Software. Let’s open three packagings from one of the sets.

Sonoff user manuals

Sonoff T2 WiFi + RF433 switch comes with mounting screws plus a multilingual quick installation guide, the Sonoff ZBBridge only ships with its quick user guide, plus the motion sensor package included a double-sided sticker for attachment, as well as a quick user guide.

Sonoff SNZB-03 motion sensor

I would not usually think about opening the motion sensor, but since the case is made to be easily opened…
Sonoff Zigbee motion sensor…I could not resist, it’s actually a requirement because one needs to remove some paper that prevents the CR2450 battery from being depleted during transportation/storage before being used.  Sonoff motion sensor battery

Sonoff ZBBridge teardown

Time to open Sonoff ZBBridge (aka Sonoff Zigbee Bridge) gateway. We’ll need to take out the four rubber pads, loosen four screws before removing the bottom cover.

Sonoff ZBBridge teardownNot much to see on that side of the Zigbee 3.0 gateway. We can just remove the board from the enclosure to have a closer at the main components. Zigbee Bridge boardA Silicon Labs MG21 module is used for Zigbee connectivity, while an ESP8285 chip provides WiFi connectivity. Both are using PCB antennas. A Micro USB port is used for power, and there’s a pairing button that shows as a pinhole once in the enclosure.

Sonoff T2 WiFi switch

Sonoff Tx wireless switches come with 1, 2, or 3 gangs, and each model comes with the same enclosure with support for up to three gangs.

Sonoff T2US2CEach wire is secured with a screw. The model I have features neutral, the live input, and two live output to connect to the lights. Let’s separate the two plastic parts of the enclosure, as this will be needed for installation.

ESP8285 smart switch 2 gangAgain, the board is powered by an ESP8285 WiFi microcontroller, and fitted with two touch sensors with the PCB designed for three. We can also see a 4-pin UART that can be used to program the Espressif chip, as well as another 4-pin header with VCC, C2D, C2CK, and GND. That header is for Silicon Labs C2 serial communication protocol designed to enable in-system programming, debugging, and boundary-scan testing on low pin-count Silicon Labs devices such as the “Busy Bee” BB10 8-bit 8051 MCU used here, apparently to control the touch sensors.

Sonoff T2 WiFi switch teardownLet’s carry on with the teardown by pulling out the MCU board connect to the power board via an 8-pin header. There are some thick traces for the mains as one would expect. We’ll need to remove the four screws holding the TOUS POWER board in place, and the four terminal screws to completely take out the board.Sonoff T2 boardThe only oddities are the “via holes” on the high power traces. If I understand correctly it’s called Via stitching and can help decrease the heat generated with the extra solder added during soldering, among other benefits.

sonoff 10A 250V relaysThe power board is also fitted with two 10A/250AC relays as advertised.

To get an idea about pricing, I’ll use Banggood where ZBBridge is sold for $16.28, Sonoff SNZB-03 motion sensor goes for $9.49, and a 2-gang Sonoff T2 wireless switch is sold for $20.08. So the total comes up to about $45 including shipping. You’ll also find those on ITEAD website.

I’ll now have to replace the wall switch for my lights with Sonoff T2, place the motion sensor in a strategic location, set up the Zigbee gateway, and configure all that with eWelink Android app.

Continue reading “Setting up a motion activated light with Sonoff Zigbee sensor and T2 WiFi switch“.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
12 Comments
oldest
newest
Jon Smirl
2 years ago

Zigbee is turning into Matter+Thread. The protocol is being split into two piece — network independent Matter, and then 802.11.4 Thread. After Matter ships next year Zigbee will be in legacy status.

This split is going to make Matter much more useful since instead of just 802.15.4 for transport you can use any IP network such as wifi or Ethernet.

Andreas
Andreas
2 years ago

Zigbee will probaly remain as its own since it still has its place for those who do not want each device to be connected via IP. From a security perspective it is better to have protocol break

Jon Smirl
2 years ago

The Zigbee Alliance is the group writing the Matter spec.
https://zigbeealliance.org/about/

Andreas
Andreas
2 years ago

I know. And no where have they written that Matter will make Zigbee obsolete. Again, Zigbee will still have its place where for example a protocol break is wanted for IT security, like for utilities, medical or industrial applications.

Jon Smirl
2 years ago

Has Sonoff started doing UL/ETL safety certification yet? The clock is ticking on when Amazon is going to block non-UL/ETL listed AC products. Amazon is getting too many lawsuits from this.

TonyT
TonyT
2 years ago

My Sonoff S31’s are ETL.
My Shelly 1PM is UL, but IIRC, they also make a non-UL version (ETL?)

Jon Smirl
2 years ago

Either UL or ETL is fine. They are just two variations on the same thing.

UL and ETL are safety certifications. They test the products in their labs to make sure they won’t start fires or electrocute you. They don’t test if the app works or if the wifi is up to standard. Only safety related issues.

Oren
2 years ago

Hi JL, Can you tell me what the gateway is for? I am using zigbee products and they can all be managed via the app from anywhere in the world. Is the gateway only for cases when I want to use IR sensors to activate Aircon units or other IR devices?

Dan C
Dan C
1 year ago

How does the 433mhz work, given zigbee is 2.4ghz? Is that what the gateway does, route between their 433 network and zigbee 2.4?

Khadas VIM4 SBC