Sonoff SNZB-06P Zigbee Presence Sensor

Since there’s been no discussion of the new Sonoff SNZB-06P in the OH community, I thought I’d share my experience as I set up a couple of them.

The first thing to know is that it’s cheap. Sonoff sells them through Walmart Canada’s website, and a three pack is less than CAD$50.

It’s a surprisingly tiny little thing and feels better-built than Sonoff’s battery-powered sensors. I like the magnetic base, which allows the sensor to rotate freely and can be mounted magnetically, with screws, or with an included 3M sticker.

The SNZB-06P comes with a long USB-C cable and only needs 5V/1A, so any old USB adapter should be sufficient. Within a minute of plugging it in, I had it joined to my Zigbee2MQTT network. It also functions as a router to improve a Zigbee mesh network.

As far as detection goes, it feels as fast as a PIR motion sensor. The sensitivity range can be set to 2.5m, 3.5m, or 4m by double-pressing the sensor’s button.

When occupancy is detected, the sensor also reports dim/bright, so that you can trigger a rule on occupancy and light level. I wish it reported actual lux levels continuously, but in most cases this would be sufficient.

Note that you need to be on Zigbee2mqtt v1.35.2 to access light levels (and get a few fixes). You can see all of the Z2M settings on their SNZB-06P page.

The challenge is going to be finding the right places to put the sensors, because they can see through non-metal objects (e.g. walls), and will pick up anything that moves (e.g. fans, curtains, pets). Unlike a PIR sensor, you can’t strategically block a radar-based presence sensor with furniture.

Questions? Let me know if there are any scenarios you’d like me to test.


Update #1

I placed a sensor on my dresser, pointing toward my bed. When I laid down, I was in line with the sensor with my feet closest to it and my head farthest away. This was asking a lot, because I presented almost no cross-section of my body to it. I was just curious if it was sensitive enough to pick me up based on just my breathing. Answer: it is not. I was practically invisible to it.

I think this is a good thing. If it were too sensitive, there would be a lot of false positives.

I then moved the sensor up over the door next to my dresser, so that it could see more me. This worked very well, and may end up being its permanent home. The included 6ft USB cable is just long enough to reach from the outlet next to the door.

Other thoughts:

  • The 2.5m setting seems like less than 2.5m. I need to do more range tests.
  • If I’m really close, it can pick me up from beside or even slightly behind it. For example, if I walk through the door it’s mounted above, it finds me immediately.
  • I really wish it also had temperature and humidity sensors. I’d pay more for those to be included.

Update #2

I just discovered that the magnetic base is strong enough to hold the sensor to a drywall screw. So if you know where the studs are in your wall, you can just run the sensor up the wall until you find a screw.

I don’t love that the USB-C cable sticks right out the side of the body. I guess that’s necessary so that you can angle the sensor on the base, but it means that there’s no way to hide the cable.


Update #3

Building on my earlier observation, I’ve determined that Sonoff has set a reasonably high threshold for changing from clear to occupied, and a lower threshold for maintaining the occupied state. I tested this by throwing a series of increasingly larger objects in front of the sensor (onto my bed).

  • Things that didn’t trigger it: my phone, my wallet, a glove, a small Amazon box
  • Things that did trigger it: a slightly bigger Amazon box, a baseball cap, a sweater

It would be even better if the thresholds were adjustable, so that you could adjust it to ignore small dogs and cats.


Update #4

After numerous tests, I’ve settled on using the SNZP-06P in combination with the existing IR motion sensor I already had in my bedroom (in a TP-Link Kasa lightswitch). The IR sensor turns on lights when there’s motion, and the SNZP-06P turns them off when I leave the room.

The difficulty is that you want the presence sensor to be very sensitive when someone’s in the room (so that the lights don’t turn off), and less sensitive when no one’s in the room. As noted in Update #3, I think Sonoff tried to do this, but the threshold to trigger occupancy is still too low. If Sonoff is reading this, please make that an adjustable setting!

I suspect that I’ll have to tweak some more in the summer when my bedroom fan is running most of the day, but that’s an issue for Future Russ.


Update #5

These sensors have worked pretty well for me so far, but there have been a couple of times when one of them has gotten stuck in the Occupied state. The only way I can figure out to reset it is to change the timeout in Zigbee2mqtt. It’s not a big deal, but a bit of a concern.

10 Likes

Wow thanks for mentioning this. I haven’t jumped on aqara fp1 because it was expensive, but this one is cheap indeed. I’ve just ordered 5 from them (itead.cc) plus a backup zigbee dongle. Free shipping to Australia!

1 Like

I know, right? I kind of regret that I got the two-pack instead of the three-pack.

The reviews are a little mixed on the ITEAD website, but that’s pretty much the case with any Sonoff sensor. Their quality control is not good. Since Walmart handles free returns for 3rd-party sellers, I figured there’s no risk to trying these out.

Where the FP1 has an advantage is its ability to identify regions in a grid. I can’t use the Sonoffs in my work room, because my 3D printer will keep setting it off. An FP1 could be set to ignore that region, but the best price I can find on AliExpress is CAD$50 for a single FP1, with a one-month delivery timeline.

1 Like

Have you played with your SNZB-O6Ps yet? I’m curious what your impressions have been.

After a full month, I’m pretty happy with them.

I haven’t played with them :frowning: and won’t be for another 3 months.

I noticed that they don’t work well when plugged into a built in USB charger that came with my power board (which supports qc3). After a brief while it seems to go offline.

I haven’t tried with a different USB power supply. For now they’re unplugged.

Interesting. I just checked and both of mine are plugged into non-QC chargers. I hope that’s all it is!

Hi, i m also using one but it is too sensitive for my ceiling fan. And there is no way to add anything to ignore. This makes it useless in my case.

Yes, that’s to be expected with a presence sensor, since it detects movement.

You might want to check out the Aqara FP1, which allows you to block out areas (according to what I’ve read). There’s also the FP2, but it’s WiFi and currently doesn’t connect directly to openHAB. Both of them are significantly more expensive than the SNZB-06P.

My experience with the SNZB-06P was great at first.
I startt however running into issues now and occupancy seems remains ON all the time now.

Could it be temperature ? Did you run into similar issues ?

One of my two sensors has gotten stuck in an Occupied status a couple of times, and I’ve just unplugged it to reset. I couldn’t say why it happened, and didn’t look into it any further. I don’t see any reason for it to be related to temperature.

I re-paired mine. Pairing works fine. It does detect me and turns occupancy ON but it then remains ON no matter what.
I tried re-pairing, resetting, I tested in rooms where there is NO WAY to be anything trigerring the device… no matter what, it latches on ON and stays there now…

I contacted itead, let’s see what they say.

I actually had this happen earlier this week. It was late at night, so I just left it alone. I forgot about it the next morning and when I checked later in the day it was working again.

My office desk is in front of the sensor, so I would have been sitting in front of it for most of the day. This makes me think that the sensor needed a long period of actual occupancy to correct itself, and then cleared when I walked away.

So, you might want to try sitting in front of it for awhile and then leaving the room.

I am also stting in from of it. It never latches OFF now.
I even tried to point it to an empty space and do an init. It latches ON instantly and never comes back.

I am in touch with itead… let’s see. For now, the sensor is un-usable.

Update on the topic: iTead has been actually very supportive on the issue. Shipping takes time but they make it very smooth.

I got a replacement for my sensor and the new one does unlatch as it should. Just as the original one initially. So I guess the first one got an issue. I am ok with sensors having issues as long as manufacturers/resellers make it easy to get those fixed/replaced.

I also think those sensors really do not like vibrations (ie being stuck to a device with a fan that could be vibrating).

I am not sure how you guys update the firmwares on those devices. I asked iTead/Sonoff what my options would be in that case.

iTead is also supposed to have a look at my defective sensor and I asked them if the issue could be fixed by the user (I tried a reset…). That would be a better option than having to ship and wait for a replacement.

I am now considering getting a batch of 8 of those to expand … and I think people should not consider those as presence sensors (a PIR can do it just as good, even on batteries) but they shine as “no longer presence” sensors since they latch on presence pretty good once you got the placement right. So turning off the light once the sensor’s occupancy goes off works really well and you avoid those timers that can also cause troubles and more complex scripting (ie extend/cancel timers, etc…).

Was this a problem with all their earlier batch? I bought 5 early on but have never bothered to use them because they seemed buggy.

I cannot say…

What I can say is that the first sensor I got worked great at first.

Then suddenly would no longer “unlatch” as I described in this thread. So it would detect occupancy but remain “ON” after that, no matter what.

I then got a replacement and it works great again. I plan on waiting a few days and if it keeps working good, I will order a batch.

What do you mean by “they seemed buggy” @jimtng ?

I would expect that to be the case, since they’re very sensitive to the slightest of movements.

I used Zigbee2mqtt’s OTA capability. The Zigbee Binding also has OTA, but I’ve never tried it.

I disagree with this a bit. I have one that I use in combination with a PIR, and another that I use entirely on its own to detect presence. It just depends on the scenario.

Is there a way to tell when they were manufactured? Mine have been mostly trouble-free, and I assume I was the first person to use them with OH.

I am using the ZigBee binding. I will need to check that out.

I also use them with a PIR or solo. What I meant to say is that, although they are fast due to being powered, I found it acceptable to use the PIR (on battery) for to detect movement.
But PIR does not know about “no longer presence” where those actually (when they work) work great.

The Zigbee binding returns quite some information, including a datecode that may be relevant.

I think it would be, from now on, nice to gather data about zigbee_datecode, hardwareVersion and firmwareVersion for the items that are working and those not working. We may be able to spot a pattern. It is worth the effort IMO since those devices are great… when they work.

So I got 9x new of those.

  • 6 worked great off the shelf
  • 1 was physically damaged (broken plastic part inside, which is the thread of the one screw that keeps everything steady inside) but appears to be working
  • 2 just won’t detect

Since I got those 6 units to work, I we can assume I do it right.
The 2 defective units just won’t work, no matter what I try.

Update: it turned out that I got them all to work eventually, after powering them, cycling thru their 3 modes to get back to mode 1. And then they started working.

It is frustrating to see some working litterally out of the box in an instant and some really requiring some efforts.

1 Like

Have I missed this? What are these modes and how did you change it to mode 1?