There’s a SmartApp out there called “Dry the Wetspot” that “turns switch on and off based on moisture sensor input”. It’s under “Safety & Security” in the marketplace.
EDIT: On second look, I think that one works with the water leak sensor. This should easily be doable with Rule Machine, though: