Spruce Zigbee Soil Moisture Sensors - driver needed?

Will these Zigbee soil moisture sensors work with something generic or will a driver need to be written? I understand they work with Smartthings...


I have one and was able to connect it. I set it as device= "Generic Zigbee Moisture Sensor". It is not reporting any moisture. Anyone else have any success?

I just got one of these (3rd gen Spruce snsor) and it was a pain to pair (doesn't seem to pair to channels higher than 20 and the LEDs never seemed to do the exact pattern mentioned in the manual), but I finally got it to pair and reliably report. I probably wouldn't use Generic Zigbee Moisture sensor for this since that driver is intended for binary "wet/dry" sensors like water leak sensors. The native driver I had the best luck with was "Generic Zigbee Motion/Humidity" sensor. This was intended for the Iris v3 motion sensor that reports motion, temperature (which you'd still get from the moisture sensor), and humidity. Obviously the motion part goes unused, but I figured this would get me the closest I could with a native driver. So far, it does appear to be more or less working to some extent: it reliably reports temperature, and it reports...something for humidity (though extremely low values like 1.3% when in regular air; I haven't tried putting it in soil or water to see what it would read then).

There is a public ST DTH available: SmartThingsPublic/spruce-sensor.groovy at master · SmartThingsCommunity/SmartThingsPublic · GitHub. It looks like it just reports temperature and humidity, too, and it probably doesn't do much fancy calculation with the humidity (just seems to round the raw value, though I can't see what that actually is...presumably what the generic driver reports, too). Someone in this thread claims to be using a custom driver from Mike or ihiyardi for the v1 sensor (probably not too different?), but I can't find that anywhere publicly and the poster never responded to someone who asked about it.

In any case, we'll see how it goes once I put it outside, I guess.


I migrated the public ST driver to use the HE nomenclature, there are some raw zigbee commands in there that had to be changed from "st.... " to "he....."

You can find that driver here:

I have to say, I am not overly impressed with the device. The temperature is always the same as the environment and the humidity readings don't seem to be to accurate, as in: Put in in a glass full of water and get 68% humidity.....

I posted in the other thread mentioning I got my Spruce version one working with this device driver. Its been working for over a month and properly reports temperature and humidity. If you still have an issue with the driver you are using perhaps this one will work for you. Again it was tested on the first generation Spruce.

I am not able to get the Gen1 version of the sensor to pair with HE. What's the secret to getting them to pair? I tried a fresh battery and holding the button until the LED comes on to reset it but still no luck.

Oh, interesting! Didn't know it was just the "Enivornment Sensor" driver. I have the actual Enviornment Sensor device by ihiyardi, so already had this installed. Like the Zigbee motion/humidity driver, I this one also looks like it has unnecessary capabilities implemented (I think the Spruce only does temperature and humidity), but that shouldn't cause problems as long as you don't expect them to magically appear (or use them in automations the device may be select-able for despite this). I'll both this, the ported driver above (thanks!), and see how it compares to the motion/humidity driver.

I just bought a gen 3, new, so I don't really know how the original works. In my case, I was more or less able to follow the instructions, except I had to try several times, and I'd be curious of you're on a relatively high Zigbee channel. I was using 21 and mine didn't seem to pair until I changed to 20 (or maybe that was when I had finally tried enough times?).

I am on channel 20 and it joined right away. I actually reset it a couple of times and it always joined on first try. But I am also right next to an Xbee repeater...

It's not the driver that I have an issue with. It is the measurements provided by the device. Given what I have seen, I don't trust them....

As I remember I had difficulty pairing too. First make sure to factory reset the device. I think when I paired it, Hubitat found the device but hung looking for a driver to assign. When I clicked cancel it assigned "Device" for the driver. I then changed if from device to Environment Sensor and saved it. After that I clicked on configure and it was working as expected.

Edit: Also make sure you don't have any other hub turned on. For some reason I had more difficulty pairing zigbee devices when my SmartThings Hub was turned on, even when it wasn't in pairing mode. I have no idea why or if it was some other coincidence causing pairing issues. I remember doing a lot of fiddling.

I couldn't get it to pair with my hub on zigbee ch 12. I changed it to 20 and it paired fine as device.

Now to get a working driver for it.


So if you paid the sensor to hubitat, how are you sending the info to spruce?

I am assuming you meant pair. I am not using the sprinkler controller from Spruce. I am only using moisture sensors to get the lawn moisture just for display. Both my sensors seems to stopped reporting in yesterday. Not sure why yet.

sorry yeah pair. I got the latest gen3 sensors they are very good. But I use spruce as well. I really hope they support HE soon. It's on their radar but not sure when / if they'll do it

Any update on these? One of my last few sensors in ST

the only problem i had with the spruce sensor was i had to change channels to something below 20

I had to change my zigbee to 20 to make my Schleage locks work (well join anyway). I wonder if it will mess that up if a go back down.

I have been running the fist generation Spruce without any problems
Zigbee channel = 20
Device Driver = Environment Sensor
From iharyadi

1 Like

These seem really interesting, but can't imagine paying $59 per sensor, as much as I'd love to have them in my system for a few key (fancy) house plants. we picked up a bunch of these from Ikea CHILIPULVER Plant watering sensor, green - IKEA they have 3 settings depending on the watering needs of your plan and flash a VERY BRIGHT blue LED when they need water. No connected, but also only $4.99

@jared.zimmerman They are better suited in the lawn not plants. Not sure that $4.99 job would fair too well against the zero turn

Download the Hubitat app