SONOFF SNZB-04 ZigBee Door Window Contact Sensor Internal

I was almost ready to throw in the towel, tried everything, except for holding it with the battery side facing the hub (vertically of course). That was the trick! Thank you so much.

1 Like

I just got a couple of these and while I managed to pair them to HE, I'm not having luck 'configuring' them. Is there any trick to it?

Not sure if it is hidden in your screenshots, but what device type do you have these paired as?
Looking at mine, it is "Sonoff Zigbee Contact Sensor". I do recall that some of my Sonoff devices took several minutes to report appropriate data.

I just received a new SNZB-04 Contact Sensor and noticed a difference while setting it up.
With the new one after re-assembling the sensor there is a rattle coming from inside, movement from the battery within it's holder. The strange thing is if I swap the cover from an older sensor the rattle follows the cover, there's no visual difference between old and new covers. To stop the rattle I ended up bending the battery pcb negative contacts up quite a bit and adding some cushioning on the cover to push against the battery positive contact.
I did not have any issues pairing the sensor even with the battery moving around in it's holder but still prefer it to not be able to make noises.

Haven't had any issues but not using the built in drivers.

Which drivers are you using then?

Also, after successful pairing, do you also need to press the 'reset' button for the lights to blink so that the device can be initialised / configured, using whatever drivers one is using? Or does it initialise / configure without you having to do anything else (bring close to the hub, vertical, etc. etc. -- sometimes it feels like some sort of 'voodoo IT').

I've tried three different drivers: 'Generic Zigbee' and 'Sonoff Zigbee' both from HE and these ones: [RELEASE] Sonoff Zigbee Button, Motion/Temperature&Humidity/Contact Sensor Drivers

And yes, my device has also the rattling issue, fixed by putting a toothpick in there... Does everything from Sonoff feel like it's more DYI than a market-ready product...?

That's helpful, thanks. I've tried all 3 drivers that I've seen people using, including the one you mentioned. Did you have to do anything in particular to do the initial 'configuration' or 'it just worked'?

Using the community driver mentioned before, here is what I am now getting after initialising the driver. It's probably something silly that I'm missing, but what do these mean..?

SNZB-04 Contact Sensor

I've not had any issues, my hub is about 20 feet away through a couple walls but with a few Tradfri Repeaters scattered about.
Start discovery, reset sensor, wait... open/close, states update. All good.

Devices dropping off (missed checkin events) are often mesh related, you can try waiting and see if the sensor finds a better more stable route back to the hub.
Or add a repeater or six to your mesh. I've had good luck with the Tradfri Repeaters.

Yeah, you got me thinking about the repeaters business... However, I thought they were needed only if you already had 20-30 Zigbee devices connected or if the device in question was far away from the hub. Neither of these two is the case with me, so I didn't think this was the cause... But maybe it is...

I will get a few repeaters and see what that does.

1 Like

I just deleted the device and started from scratch -- pairing, etc. -- and it's now working! Thanks @Ranchitat!

1 Like

I had a similar issue. I did bent the contacts as well. I had the same issue with smartthings sensors as well. Seems to be a common issue with the low priced battery powered zigbee devices.

@Ranchitat @rdstov @hansenjacobs
Are these still working well for you? Just curious if the pairing issues (oriented vertically with the antenna facing the hub... really!?) turned into longer term problems or if they went away. Also how has battery life been?

Better than expected, especially for the price.
No pairing issues either.
Batteries still good.

I’ve had no issues. They actually all still report 100% battery as well. I’m not sure how accurate this is though.

I was able to get them paired. However, it occasionally stops reporting status for several days at a time. I plan to get a different sensor soon. Additionally, two buttons and my one temperature sensor stopped responding after 2-3 weeks and they were not re-pairing again.

Strange, different versions maybe...?
Also my ZigBee mesh has several Tradfri repeaters/outlets (10?) on it and no suspect powered devices i.e. bulbs, unsupported plugs/outlets etc.

My feedback on these sensors:

  1. Build quality of the battery contacts is bad. The large "+" tab bends too easily, and is not soldered down low enough. It is best to fit it better by pushing it down while heating one solder point after another. And then still, you need to bend it down a bit. The PCB is prepared for through hole tabs that very likely would fit better, but they didn't use that.
  2. Contrary to many other zigbee sensors, the time between status reports can be very long: I see 5 hours approximately. And it doesn't seem to retry in case of a failed report, making the situation worse. All other sensors I have, report reliably once every hour at least.
  3. The sensitivity is not great. I went even as far as adding an external antenna on one.

Conclusion: could do better.

Side note, that is valid for many zigbee sensors: If you want to add an external contact, be aware that the current through the contact is 0.33uA. That is very low. (It uses a 10MOhm pullup.) Not all contacts or optocouplers can handle that low reliably, and on top of that you may need cable shielding. If you use shielding, do so from the battery -, as the contact itself is connected through fairly large resistors.

(cannot edit, so I add)
About my point 2: that is the default reporting interval. It is possible to set a shorter interval, with the right software.