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.
I am trying this out and I am getting weird results. I have my LeakSmart Valve paired with Smartthings and when it paired it showed up as a generic Thing. I used your code and paired it with the Thing. Now it shows up as a water faucet with open/close options. When I select to either open or close the valve the corresponding light will blink for about 5 seconds and then the other light will blink and it goes back and fourth like that for about 30 seconds. At around 30 seconds the lights start to just alternate every second from green to red for about 10 seconds and then all the light go out. Looking at the log on the IDE smartthings page it seems the valve is opening and closing back and fourth for the first 30 seconds. Any reason why it is doing this and is there any way to get it to pair as a valve as that might be the first issue.
If you didn’t install the code before pairing the device, the configuration code wouldn’t have run.
Have you tried opening the device settings through the mobile app and tapping Done? That should force the configuration code to run if it hasn’t already.
Before you switched to the Zigbee valve, did you try updating the settings as suggested or remove it and pair it again after installing the DTH?
The original works, but it doesn’t report the battery level and the DTH doesn’t do anything when the device checks in so you can’t use a monitoring SmartApp to get notified if it drops off the network.
What is the DTH? I tried removing the valve multiple times from
Smartthings and adding it back and it will still always initially show up
as a generic Thing. It works fine though now that I have it set as a
Zigbee Valve. I don’t use any of the actual apps in Smartthings to control
anything. I find the programming in Smartthings to be extremly buggy and
unreliable. I use a combination of Tasker and Sharptools to control all my
automation. Doing this also allows for far more customization in what
happens. The built in programs for Smartthings are extremely limiting and
frustrating. With Tasker I can do basically anything I want high a high
level of customization.
I thought it might be a different model of the same product, but it matches the one the device handler was written for.
If the device handler was installed and published before it was paired, it should have identified it as the LeakSmart Water Valve and not a Thing so I’m not sure why it didn’t work for you.
I’ve recently had to switch to your DTH and I can say that it works great. I was forced to switch because recently the Zigbee Valve DTH stopped working properly. I could control the valve but it’s no longer reporting open/close status. I reset and re-paired the valve but the results were the same, no status updates so the valve always reported the last state.
Switching to this DTH immediately corrected the status reporting and it works great. If I revert back to the native Zigbee valve DTH the stuck status reporting behavior returns. Any ideas why? I don’t mind using your DTH but I’m concerned there may be another issue with the valve.
I wrote the device handler, but I don’t have the device and I’ve never actually seen it.
@greg did all the testing and I think he was seeing a similar problem at first. We went back and forth a bunch of times with me sending him code and him sending back the live logging data after testing it.
I think I ended up fixing it through trial and error so I’m not exactly sure what was causing it.
Is there any way to modify this device handler to have the valve show up in Smart Lighting so I can controll it via a remote? It is working great for app and Alexa control, but would be convenient to use the physical button. Thanks!
The handler supports the Switch capability so it already works with Smart Lighting…
Update:
It should have showed up in Smart Lighting, but I just remembered that one of the SmartApps, possibly SmartLighting, verifies the state before executing the command so it’s possible that it wasn’t working as expected in Smart Lighting.
I just released a new version that should fix that problem.
It’s working now. When I last tried it a while back it was not showing up
as a switch in smart lighting. Thanks for the reply and the great device
handler!
I am using this device handler and even after replacing the batteries it’s still showing 0%. It’s been like this for weeks. Working fine. If I remove then add the sensor back in it reports the correct voltage. Any ideas?