Earlier this month, I received a Sonoff ZBBridge Zigbee gateway, a motion sensor, and a Sonoff T2 wireless switch in order to set up everything to work as a motion activated light using Zigbee and WiFi through the eWelink Android app and cloud service. You can check out the first post to have a closer look at the hardware and accessories.
We’ve now had time to configure everything and will report the results of the project in this post. The idea is basically to detect motion with the Zigbee sensor, which then transmits the info through the gateway, and the T2 switch is controlled by the eWelink cloud.
Last time around, I thought I had a switch with a neutral wire at home, but I did not check in detail enough, and I’ve been unable to use it.
Without suitable switches in my home, it was not practical to rewire a switch with neutral especially I’m renting. So I asked somebody if they had a gang with a light switch and a socket that would ensure the neutral wire is present.
So we’ve found our candidate. That house is a bit far from where I live, so I ended up outsourcing the work, which should be interesting since nobody has a technical background over there. This will show how easy or hard Sonoff is to use for newcomers. Since I have a Yeelight light bulb, I also thought about testing eWelink to IFTTT integration, but this requires an eWelink Advanced paid plan, and it did not look like ITEAD was that interested in providing one for this and future reviews… So I’ve given up on that part.
Let’s start by installing Sonoff T2 2-gang switch compatible with the US standard that is also used in Thailand. First, we’ll need to remove the cover…
There was a lot of confusion about that, and they did not feel confident to install it, especially considering the safety issue, so an electrician friend did the wiring and electrical installation connecting switch 2, and left switch 1 unused, at least for now.
The light switches are perfectly visible at night thanks to the blue LEDs.
The rest of the hardware installation is much easier. A USB to micro USB cable is used to power the gateway…
… and for the motion sensor, one has to remove the paper inside preventing the battery from being depleted, and use the included dual-sided tape (or your own) to attach the sensor in a strategic position.
The next step is to install the eWelink app for Android and set up all three devices. Let’s start with Sonoff Zigbee bridge using the Quick Paring mode, where you’ll be asked to select a 2.4 GHz WiFi and input the password before the app tries to connect and configure the gateway.
On my side, it would not work the first time, but I could force it to pairing mode by pressing the button in the pinhole reserved for this purpose, and after the gateway was up and running, it was a breeze to add the motion sensor as a subdevice.
The same process can be repeated for the Sonoff T2, except the method to enter pairing mode is to long-press one of the switches.
At this point, we can see motion events in the app or in notifications (if enabled), and control the light from Android.
The person at the “test home” had more difficulties when trying to pair the Sonoff T2 switch, apparently because she selected the wrong SSID, and the “pairing mode” concept took a while to understand. But after two evenings, everything was working, including the motion-activated light.
In order to turn on and off the light automatically with motion, we can use the Scene menu (aka Smart Scenes) in the eWelink app with one scene to turn the light on upon motion detection, and another to turn it off if motion is not detected anymore. I sent the following instructions…
There are four Triggers (if) options with a user tap, time of day, Sunrise/Sunset, and Smart Devices (e.g. motion sensor). It would have been nice to use Sunrise/Sunset, but if only defines specific times at sunset/sunrise or a few minutes before or after, we cannot set the motion sensor to work from Sunset to Sunrise.[Update: It’s actually possible to use Sunset/Sunrise triggers to enable/disable Smart Scenes. See AJ comment below]
Ideally, we would have to add a light sensor to make it work a night and other low-light conditions.
There are two Actions (Then) categories with smart devices (e.g. Sonoff T2 switch connected to a light bulb) and a delay option, which I’ve used above to wait for 2 minutes until turning the light off when motion is not detected.
But the Scenes now used at the test home are slightly different since the delay is not necessary, as there’s already a delay of a few minutes before the light is switched off, and the effective period to turn the light off can be 24 hours. It does not matter.
But at least, the motion activated light is now working just fine.
At least for the demo. I was told one night the sensor stopped working, and they had to set it up again, as well as the Scenes. After that little hiccup, I’ve been told it’s been working for several days. Sadly, the sensor appears to be offline again today when looking remotely. The Zigbee gateway, clearly visible in the video above, had been moved to another location indoor, I’m told about 5 meters from the motion sensor, so it could be an explanation. I’ll try to have to move closer to see if the solution can be made more reliable. The specifications of the sensor indicate a 6-meter range, but I was told the light will only turn on when one or two meters away from the sensor which seems to be confirmed by the short demo above.
I’d like to thanks ITEAD for sending the items for review. You can purchase those on ITEAD website, or alternatively on Banggood where the Sonogg ZBBridge gateway goes for $16.28, Sonoff SNZB-03 motion sensor for $9.49, and the 2-gang Sonoff T2 wireless switch used in this review for $20.08. So the total comes up to about $45 including shipping.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.