Turn OFF outlet using Dry the Wet Spot?

you could modify the app.

but the easiest solution would be to just use Rule Machine and make a trigger