New Sonoff zigbee devices

My temp sensor keeps getting offline time to time, and its hard to get awaken … Can somebody write DTH for this ? My knowledge is not enough …

Yeah i see there is ewelink integration allready, too bad it doesnt have this temp/humidity sensor on it :confused:

Applied the DTH to the connected Thing but not working at all. No action on the button is detected.

My temperature sensor is working, unfortunately it doesn’t show decimal places. Can anyone redo the DTH, I am currently using the “SmartSense Temp / Humidity Sensor”

@darrenblanchard I tested another Sonoff SNZB-01 button. Still no luck to have it working. Is there specific procedure to follow?

SNZB-01 Connection RESOLVED! The procedures are as follows:
Once you’ve setup the device handler via SmartThings Groovy IDE, follow the steps to do Round 1 detection:

  1. Insert battery. Do NOT put cover back yet.
  2. Add device on SmartThings app … took some time to detect as THING. Rename and Save.
  3. Go to SmartThings Groovy IDE and change the Device Type to the Device Type to “Sonoff Zigbee Button”. Also update the label.
    Once the above is done, do the following for Round 2 detection:
  4. Use a Mobile Phone Pin to “reset” and wait for LED to flash.
  5. Add device on SmartThings app to scan for the device again. (Previously added device should NOT be removed).
  6. The renamed device will be detected and shown. Save the device.
  7. Put back the cover.

DONE! You can test the button and all 3 type of clicks will be detected without fail.

7 Likes

There is a hidden LED on top that shines through. Hold the pair button for a few seconds until it blinks. That will update the sensor and it will start working!

Thanks. Needed to use a similar procedure to add a Sonoff SNZB-02 Temperature & Humidity Sensor, adding it first as a “Thing”, switching it to use the “SmartSense Temp/Humidity Sensor” device handler (built-in one) then putting it in pairing mode and rescanning before it would start showing any data.

More interesting findings with the SNZB-02 Temperature & Humidity Sensor. I had added it as a “SmartSense Temp/Humidity Sensor” but it was only reporting temperature events, humidity was not updating.

After much playing with various device handlers after reading about using the “ezex Temp & Humidity Sensor” DH on reddit , to get them to report temperature and humidity I had to re-add the device a couple of times with different device handlers.

So I think the overall procedure for the SNZB-02 Temperature & Humidity Sensor would be:

  1. Press and hold reset button on the device for 5 seconds until the LED indicator flashes three times
  2. Add device on SmartThings app, first time will be detected as a THING. Rename and Save.
  3. Go to SmartThings Groovy IDE and change the Device Type to the Device Type to “ezex Temp & Humidity Sensor" (and change the name to “SONOFF Temperature and Humidity Sensor” if you like)

Once the above is done, do the following for Round 2 detection:

  1. Add device on SmartThings app to scan for the device again. (Previously added device should NOT be removed).
  2. The renamed device will be detected and shown. Save the device.
  3. Go to SmartThings Groovy IDE and change the Device Type to the Device Type to “Sonoff Zigbee Button”. Also update the label.

Once the above is done, do the following for Round 3 detection:

  1. Add device on SmartThings app to scan for the device again. (Previously added device should NOT be removed).
  2. The renamed device will be detected and shown. Save the device.

It looks like the device handlers send a configure command to the Zigbee devices when they are added and perhaps its only getting the config to send temperature from one DH and the humidity from the other. Someone with better knowledge than me could probably create a DH that’s a hybrid of the two I used.

The motion sensor (03) added as an ewelink motion sensor, runs in the cloud, and has an annoying red led flash on motion that needs to go.

I changed the type of Sonoff SNZB-02 to “Zigbee Motion/Temp/Humidity Sensor” and it started to work properly.

It´s missing the device fingerprint.

Added the device fingerprint and battery charge. Just import this device handler then pair the button, it should detect the button automatically the first time.

5 Likes

Hi, I followed your instructions but in step 3 there is no “Sonoff Zigbee Button” in the list of Device Types. My ST is V2. Instead there is an option “ZigBee Button”. I selected this one and then finally i can see a list of possible events for automation: “Pressed”, “Held” and “Standby”. I thought that perhaps they could somehow be mapped to “single click”, “double click” and “press and hold” but no, it’s not. Single click does not result in any action. Both double click and long press result in same action “Pressed”. I am using a plug to test the automation. Battery meter not working neither.

Any clue on if there is a way to update the list of Device Types or another type in the list that could map the right actions or any help since I am about to return the button! This forum is my last hope…

1 Like

replace the device handler with this: New Sonoff zigbee devices
then just add it using the mobile app, with the find option.

Fantastic! Thanks very much. All working now!

Did you get any for the SNZB-01??

Thanks, for the solution. I can now put the switches to use!

To add some clarification around the device handler. You will need to go to IDE and select My Device Handlers, there you will need to create a new handler called “Sonoff Zigbee Button” paste the handler in this thread and publish “for me”.

Then under My Devices scroll to the bottom and the handler “Sonof Zigbee Button” will be there (its not alphabetical).

It worked as described once the handler was created and applied.

Is there something to do in DTH to make tile work in mobile app ? Its just saying updating or disconnected, but inside it shows information correctly ?