Tis the season…
My first public submission is dedicated to keeping our Christmass tree well watered during the holidays this year. I’ve seen some nice implementations here using leak sensors to monitor the water level of a Christmas tree, but all seem to have focused on the SmartThings and other similar leak sensors. While those sensors will work, they burn through batteries due to lighting the LED when wet which prevents the device from sleeping.
Having some extra Utilitech Z-Wave leak detectors lying around I took a look at the documentation and learned these do not suffer from this problem. The device treats wet/dry conditions the same; after detecting water and beeping for 30 seconds, it will resume sleeping, checking in only at the set interval or when a state change (wet/dry) occurs. This behavior makes this a perfect sensor to use in this application.
I could have implemented all of this using CoRE, but I really wanted a simple app for this purpose. The Christmas Tree Water Monitor will monitor a single leak sensor and upon detecting a dry condition, will send a push notification alerting the tree has run dry. It can optionally turn the Christmas tree off, and also prevent it from being turned back on, until it has been watered again.
Being a stickler for details, I also made some GUI modifications to tosa68’s original DTH for the Utilitech leak sensor. My changes essentially invert the UI indicating a wet state as OK, and dry state as bad. This DTH is NOT required for the SmartApp to function.
In my implementation, I have the water sensor set to wake up and report in every 4 hours so I know it’s alive. Reporting of wet/dry changes is nearly instantaneous. After 4 days of the sensor being submerged in a glass of water, the battery level has not changed. I think I may have found a working combination.
I hope this can be of use to others this holiday season!