Understanding Water Leak sensors and preventing false alarms in Hubitat

Hi all, I need some help with some water leak sensors I recently purchased and creating rules to prevent false alarms.

First off, I have a few water leak sensors scattered around the bathrooms and kitchen. I also have a Zooz Titan water valve. I have Hubitat Safety Monitor installed and it works well to alert me when the sensors detect something.

What I am having trouble with is setting up some rules to shut off the valve but to prevent false alarms. For example, if someone touched the sensor when cleaning or moving it around, I didn't want the water being shut off.

First, I set up a rule that triggers when any of the sensors detect moisture, and continue to detect moisture for 5 seconds. If the rule triggers, shut off the valve. Simple. However, the rule isn't triggering. The HSM rule triggers like it should, but this separate rule does not.

Also, even if it would trigger, it wouldn't work like I thought it would. Evidently the sensors don't report a dry status unless you manually clear the wet status. So even though the sensors are no longer reporting wet, they don't change their wet status until you go into HSM and clear the alert.

TL/DR: I need a rule that will not shut the water off for a short sensor alert.

It might help if you posted the rule that isn't working.

That usually isn't the case. What sensor and driver are you using? I have seen this behaviour but it isn't typical.

This would keep me awake at night thinking about the scenario that a supply pipe under pressure burst and flooded the sensor, which was just lucky to live long enough to send a wet. Perhaps thinking about it as "and not report dry within 5 seconds". You've probably thought this through more than I have, though.

Somewhat related, I have a "Suppress water leak actions" on my dashboard which I use for testing the sensors. It allows me to see the device report wet/dry, but the water doesn't cut off, the lights don't turn blue, and no notifications are sent. The suppressed state ends after ten minutes and I have other checks to make sure this doesn't get set and left on. I do test the rule with full functionality periodically.

What kind of sensors are you using that do that? Touching them and crossing the terminals will make them report wet, but in that scenario they should immediately go back to dry when you put them down. I often test leak sensors by putting my fingers over the contacts, so I know mine go dry immediately afterward.

I think you need better sensors, or a better driver. Better does not mean expensive, the Zigbee sensors I buy from Ali Express work great for me and they don't stay wet by just touching them.

I take the opposite approach. I close valve immediately and alert me via text app message and Alexa echo. I feel better safe than sorry. I can easily clear the alert and reopen the valve . very rarely have I had an issue. especially after I told my wife to avoid the sensors when steam cleaning the bathroom

Thanks for the quick replies. Sounds like I need to check my sensor drivers. I am just using generic drivers but I see there is a driver I can download for this brand of sensor. I'll try that and see what I get.

Thanks, HAL9000, for the challenge on a sensor dying right at the point of a leak. I'll have to think more about that. I assume (but we all know...) that the sensor state would continue to report a wet state, but maybe not. Or maybe false alarms are a small price to pay for a more robust safety system.

Thanks. This might be the proper thinking. Maybe I need to make clearing the false alarms an easier process instead of worrying about how to ignore them.

For the alert side, I treat a wet reading as "wake a person," not "trust the house to clear itself." Name the exact sensor in the notification so you know which bathroom or kitchen pad went off. Keep the urgent push at any hour. Then require a person to look at the spot and clear the incident on purpose. That alone cuts a lot of the "I bumped it while cleaning" panic, because the system does not quietly reset and leave you guessing.

Auto-closing a valve is a different layer. I would keep that behind a longer sustained wet, a suppress switch for testing, and only after you trust the sensor and driver to go dry again on their own. HSM for the loud alert, separate rule for the valve, and make sure the valve rule is watching the device wet/dry, not the HSM alert state.

I put the alert and clear pattern here: Water leak detection alerts | Home Automation Cookbook