Does anyone know if this Sonoff device works? (SONOFF SNZB-02 Zigbee Temperature and Humidity Sensor)

SONOFF SNZB-02 Zigbee Temperature and Humidity Sensor

only with a custom DTH right now. Wait a couple weeks and it will work natively without a custom DTH.

Thanks, where did you hear this info?

SmartThings’ public github

1 Like

According to the last post, it should be live on the 27th. Is that correct?

correct, so i’d say evening of the 27th. It’s currently on acceptance branch and production is next.

1 Like

Thank you. I just ordered one to be here the 30th.

1 Like

I’m not too sure how to read the GitHub stuff. Am I reading it right that it’s being mapped to the smartsense DTH? So if I’m already using that DTH I don’t need to switch it?

That is correct. But it looks like there was some device-specific code added to handle Sonoff’s zigbee reports. If it’s not too much trouble, i’d delete the device from SmartThings, reset it and add it again.

I’m testing several of them with 2 different ST V2 hubs. They work great so far with the custom DTH. The temperature reads about 6 or 7 degrees to high when compared to other fairly accurate thermometers, but YMMV.

I just moved them to use the updated stock SmartSense Temp/Humidity Sensor hander. Seems to be okay so far, and marked as Local now.

I paired the snzb-02 using the sonoff temp humidity sensor under sonoff devices. It added easily and is using the stock smartsense dth. Problem is it shows temp/humidity/battery for about 30 mins then keeps going offline. It shows its connection is as snzb-02>sonoff zigbee plug>hub. The plug is near the sensor.

Any suggestions?

I believe I saw @Automated_House writing about this. Open your hub in the ST app and check is secure mode is set to On. If it is, turn it off.

Secure Mode is off. Any other ideas?

I don’t know how those things stay online. With the stock handler they only report temperature every one to two hours and humidity hourly but the checkInterval for inactivity is every twelve minutes. I never see any on demand reports from polls though. Yet if they don’t fall off nearly straight away they do seem to stay online.

Update: Checking the code shows the DTH ping() is just a battery report so that explains why I don’t see anything.

@orangebucket can you suggest something that might work better? Just need temp/humidity

Sadly not. I used to have an Aqara just in case I could find a use for it, and now I have the even cheaper Sonoff just so I could get rid of the Aqara.

Looking in the IDE for this device, what is your checkInterval value under “current States”?

I have 3 sensors running. 2 of them have a value of 7260 seconds. The third is only 720 seconds. I’m not sure how it only set to 720 seconds, as the Smart Sense Temp/Humidity handler should set it up as 7260 seconds. It may be because I created the device using the custom DTH and that value is only set on initial configure().

I too see the 3rd sensor with the 720 second checkInterval value as going OFFLINE randomly, based on activity.

sendEvent(name: "checkInterval", value: 2 * 60 * 60 + 1 * 60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID])

The handler tells the device to report temperature min 3600 seconds, max 7200 seconds.
zigbee.temperatureConfig(3600, 7200)
Same as humidity:
zigbee.configureReporting(0x0405, 0x0000, DataType.UINT16, 3600, 7200, null)

So if your device ends up not sending some data outside of the hub scanning the checkInterval for each device (its not real time), it will get flagged as OFFLINE even if its not. Look at your events to see how often temp/humidity is being reported. See what your checkInterval is set to.

I’ll try to delete and recreate the device with the 720 second interval and see what happens.

I deleted and repaired the sensor and it has now been online consistently for about 24 hours.

The checkinterval is 720 s.

Humidity reports about every 1 hour and Temp about every 2 hours

Very strange. The code clearly says it should be 7260 seconds, but your behavior matches what mine did in the past as well. I’m not near that sensor to try it fresh until tomorrow.

When you paired it did it auto detect that it was a Smart Sense Temp/Humidity Sensor?

Yep. I selected SONOFF (not Sonoff)>Multipurpose sensor>Temp & Humidity Sensor from devices list and it paired as the eWeLink Multipurpose Sensor using the SmartSense Temp/Humidity DTH.