# Leaksmart Water Sensor

**URL:** <https://community.smartthings.com/t/leaksmart-water-sensor/51505>\
**Category:** Devices & Integrations\
**Created:** [June 28, 2016, 11:57pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505 "2016-06-28T23:57:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![twspencer](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@twspencer](https://community.smartthings.com/u/twspencer)\
**Post date:** [June 28, 2016, 11:57pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/1 "2016-06-28T23:57:36Z")

</div>

Has anyone been able to get the leaksmart moister sensor to work. I have tried changing the device type multiple times with no success. Any help would be great.

---

<div class="post-metadata">

**Author:** ![scottalex](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@scottalex](https://community.smartthings.com/u/scottalex)\
**Post date:** [June 29, 2016, 3:05pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/2 "2016-06-29T15:05:41Z")

</div>

I use and it works well.

> [@\[OBSOLETE\] LeakSmart Water Valve](https://community.smartthings.com/t/release-leaksmart-water-valve/48669):
>
> I won’t be converting the LeakSmart Water Valve DTH into an Edge Driver, but the device should be functional with the built-in driver. This is a device handler for the LeakSmart Water Valve. It polls regularly so you can use a SmartApp like the Simple Device Viewer to monitor it and receive notifications if it stops reporting. The battery level it displays is just an estimate so every time it goes down a level you should test to make sure the batteries can still power it. If you notice that the device is displaying 0%, but it still works on batteries or it’s showing more than 0% and it doesn’t work, please let me know so I can adjust the calculation.

---

<div class="post-metadata">

**Author:** ![twspencer](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@twspencer](https://community.smartthings.com/u/twspencer)\
**Post date:** [June 29, 2016, 3:20pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/3 "2016-06-29T15:20:56Z")

</div>

Scott, thanks for the update but unfortunately that is for the valve. I have the valve up and functioning. I cannot get the water sensor to work. Do you use the water sensor?

---

<div class="post-metadata">

**Author:** ![scottalex](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@scottalex](https://community.smartthings.com/u/scottalex)\
**Post date:** [July 1, 2016, 5:23am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/4 "2016-07-01T05:23:03Z")

</div>

ahh my apologies, no sorry I don’t use the leaksmart sensors.

---

<div class="post-metadata">

**Author:** ![XFighter](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/xfighter/32/41462_2.png) [@XFighter](https://community.smartthings.com/u/XFighter)\
**Post date:** [July 3, 2016, 4:17am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/5 "2016-07-03T04:17:57Z")

</div>

I am also interested. My Kit came with one sensor. It was cheaper to buy the kit with installation than to pay just for the valve and installation separately.

---

<div class="post-metadata">

**Author:** ![Jnox](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jnox](https://community.smartthings.com/u/Jnox)\
**Post date:** [July 6, 2016, 3:43am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/6 "2016-07-06T03:43:32Z")

</div>

Anyone else that was able to figure this one out?

Jack

---

<div class="post-metadata">

**Author:** ![dhelm2](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dhelm2](https://community.smartthings.com/u/dhelm2)\
**Post date:** [July 6, 2016, 8:11pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/7 "2016-07-06T20:11:35Z")

</div>

Also interested

---

<div class="post-metadata">

**Author:** ![friedpope](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/friedpope/32/13131_2.png) [@friedpope](https://community.smartthings.com/u/friedpope)\
**Post date:** [July 7, 2016, 1:47pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/8 "2016-07-07T13:47:30Z")

</div>

Add my name to the list…  
They were on a steep discount at my local HD and I sort of assumed that since the valve showed up in a quick search the sensor would have a device type. I picked up two for $18 each!

Both of them paired right away with an “unknown” device type but I don’t seem to see any data in the logs when they’re triggered. If anyone has any info on these I’d love to get them working.

---

<div class="post-metadata">

**Author:** ![dhelm2](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dhelm2](https://community.smartthings.com/u/dhelm2)\
**Post date:** [July 7, 2016, 2:42pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/9 "2016-07-07T14:42:56Z")

</div>

Same here. I picked up 3 @ 18 each! I have the SmartSense Water Sensor device type currently assigned and am getting temp and battery values updated periodically, but the moisture alarm is not signaling Smartthings.

---

<div class="post-metadata">

**Author:** ![John\_Luikart](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@John\_Luikart](https://community.smartthings.com/u/John_Luikart)\
**Post date:** [July 8, 2016, 3:18am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/10 "2016-07-08T03:18:36Z")

</div>

Same here. I hope someone builds a device handler for this pronto now that these are on a fire sale.

---

<div class="post-metadata">

**Author:** ![Jnox](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jnox](https://community.smartthings.com/u/Jnox)\
**Post date:** [July 8, 2016, 4:11am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/11 "2016-07-08T04:11:47Z")

</div>

Same here picked up three of them at $18 each. They seem to be built well, but no go on sensing moisture!

---

<div class="post-metadata">

**Author:** ![genghis.tron](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@genghis.tron](https://community.smartthings.com/u/genghis.tron)\
**Post date:** [July 8, 2016, 1:21pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/12 "2016-07-08T13:21:19Z")

</div>

I grabbed one also… I couldn’t get it to even be recognized by smartthings.

---

<div class="post-metadata">

**Author:** ![dhelm2](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dhelm2](https://community.smartthings.com/u/dhelm2)\
**Post date:** [July 8, 2016, 1:25pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/13 "2016-07-08T13:25:59Z")

</div>

There is a button on the inside of the battery compartment you have to press to put the sensor in pairing mode, then smartthings will recognize it as a “Thing” when adding.

---

<div class="post-metadata">

**Author:** ![genghis.tron](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@genghis.tron](https://community.smartthings.com/u/genghis.tron)\
**Post date:** [July 8, 2016, 2:24pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/14 "2016-07-08T14:24:15Z")

</div>

I tried that, I will give it another shot. My local Home Depot also has the 3/4" valve kit for $73. I am new to smartthings, can someone verify if the on/off function works with the samsung hub. I have been reading though the community posts and I am not very clear on it. Thanks

---

<div class="post-metadata">

**Author:** ![John\_Luikart](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@John\_Luikart](https://community.smartthings.com/u/John_Luikart)\
**Post date:** [July 8, 2016, 2:52pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/15 "2016-07-08T14:52:13Z")

</div>

Someone already wrote a device handler for the valve, so you should be able to get the valve to work. As far as I know we still need someone to write a device handler for the sensor. I’m working on it, but I’ve never written one before so… Don’t hold your breath. Someone with some experience could probably make one in an hour or so.

Here is a link to the valve device handler thread.

> [@\[OBSOLETE\] LeakSmart Water Valve](https://community.smartthings.com/t/release-leaksmart-water-valve/48669):
>
> I won’t be converting the LeakSmart Water Valve DTH into an Edge Driver, but the device should be functional with the built-in driver. This is a device handler for the LeakSmart Water Valve. It polls regularly so you can use a SmartApp like the Simple Device Viewer to monitor it and receive notifications if it stops reporting. The battery level it displays is just an estimate so every time it goes down a level you should test to make sure the batteries can still power it. If you notice that the device is displaying 0%, but it still works on batteries or it’s showing more than 0% and it doesn’t work, please let me know so I can adjust the calculation.

---

<div class="post-metadata">

**Author:** ![genghis.tron](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@genghis.tron](https://community.smartthings.com/u/genghis.tron)\
**Post date:** [July 8, 2016, 2:53pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/16 "2016-07-08T14:53:11Z")

</div>

Thanks John

---

<div class="post-metadata">

**Author:** ![BatraD](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BatraD](https://community.smartthings.com/u/BatraD)\
**Post date:** [July 8, 2016, 3:02pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/17 "2016-07-08T15:02:29Z")

</div>

interested in getting these sensors hooked up to ST as well… Bought a few earlier at $35 each… cant find any more at the $18 price…

Make sure you update the firmware through a Wink hub before using them with ST (they have a battery drain issue in the old code)

---

<div class="post-metadata">

**Author:** ![dhelm2](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dhelm2](https://community.smartthings.com/u/dhelm2)\
**Post date:** [July 8, 2016, 3:17pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/18 "2016-07-08T15:17:44Z")

</div>

I’ve started as well. I used the SmartSense Water Sensor as a template, as it reports the temp change back to ST. The battery is reporting on refresh, although the code that calculates the percentage is off – new batteries will report “–” and show a message in the logs as the voltage is too high, probably due to differences in the batteries used in the devices. I’ve emailed leakSmart to see if I could get some technical docs for the sensor, no response yet. I am new to this as well, but from what I can see it will be subscribing to the proper cluster and parsing the correct data back. From the raw data after pairing I think I have the following as accurate:

```
   fingerprint inClusters: "0000,0001,0003,0020,0402,0B02,FC02", outClusters: "0003,0019", manufacturer: "Waxman", model: "leakSmartv2", deviceJoinName: "LeakSmart Sensor"

```

Clusters 0B02 and/or FC02…

---

<div class="post-metadata">

**Author:** ![John\_Luikart](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@John\_Luikart](https://community.smartthings.com/u/John_Luikart)\
**Post date:** [July 8, 2016, 11:01pm UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/19 "2016-07-08T23:01:03Z")

</div>

I think I resolved the battery issue just by tweaking the getBatteryResult function.

I just modified the function to calculate for 3 1.5 volt batteries I think it was calculating for 4 in the original code.

What I’m not getting is any indication of the actual “Dry” or “Not Dry” It may be because the fingerprint is not correct, or because I don’t know what I’m doing, or a combination of the 2.

Can anyone explain what the purpose of the “shouldProcessMessage” method is?

> <https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/smartsense-moisture-sensor.src/smartsense-moisture-sensor.groovy#L133>

---

<div class="post-metadata">

**Author:** ![friedpope](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/friedpope/32/13131_2.png) [@friedpope](https://community.smartthings.com/u/friedpope)\
**Post date:** [July 9, 2016, 2:17am UTC](https://community.smartthings.com/t/leaksmart-water-sensor/51505/20 "2016-07-09T02:17:54Z")

</div>

It looks like _shouldProcessMessage()_ takes in a zigbee cluster and checks that the _profileId_ is not 0x0104, or the _command_ is either 0x0B or 0x07, or the _data.size_ is larger than 0 and the first byte of that _data_ is 0x3e. If any of those “OR” clauses are true it returns false, otherwise it returns true.

That probably made no sense, and it probably doesn’t matter for troubleshooting… yet.  
I think that method is just filtering messages to see if the devicetype is really equipped to handle it.

If you tap into the code just before the _if (shouldProcessMessage(cluster)_ statement and dump the cluster to the log you should be able to read out everything that is being taken in from the device. I’ll see if I can capture anything useful from that.

[Next page](https://community.smartthings.com/t/leaksmart-water-sensor/51505.md?page=2)
