Setting up First Sonoff Device

Hi everyone.

Newbie with Hubitat that is familiar with smarthings and basic DIY smart home networking.

I purchased the Sonoff SNZB-04 contact sensor and want to set it up with Hubitat. Do I also need a Sonoff bridge hub? Or should Hubitat be able to serve the same purpose as the Sonoff bridge?

Adding the device to Hubitat without the Sonoff bridge hasn't worked so far.

Any information is appreciated. Thanks.

You may need to install the device driver code.

From the home page click on Drivers Code (you may need to expand the Developer Tools section first).

Then click on the New Driver button in the top right, then the Import button, and paste in this link:
https://raw.githubusercontent.com/markus-li/Hubitat/release/drivers/expanded/zigbee-sonoff-contact-sensor-expanded.groovy

Then click the Save button and try to discover the contact sensor again.

1 Like

Thank you. I got it to work (no Sonoff bridge required).

Related question if you know - to receive push notifications in the mobile app, do I set up a rule in Rule Machine? I see the open/close activity in the log, but I didn't automatically receive a push notification in the Hubitat app about activity.

Sorry, I've no idea, I don't use the mobile app - someone else can probably answer that though.

You can get notifications through rule machine and there's also a native app called notifications. Not sure if this particular device will be exposed in the notifications app.

1 Like

It should work in notifications. I don't have sinus contact sensors anymore but the other sensors I have all work in the notification app

1 Like

While this driver will probably still work, Hubitat has a built-in driver for this now, "Sonoff Zigbee Contact Sensor," so it will work natively. (I'd probably recommend this given that there is unlikely to be more development on the linked community driver.) As a side note, pairing should work with or without a matching driver--if nothing else, it will pair as "Device," and you can figure that out later. So, if that doesn't work, something else is probably wrong. :smiley: (If it's anything like my luck with these devices, it's because when I think I'm pressing/holding the button, I'm not doing it the right way...)

1 Like