How to Protect Appliances from Flooding with a Smart Plug
Set up a leak sensor and heavy-duty smart plug so water automatically cuts power to a washing machine or other 120 V appliance before it feeds a flood. Includes per-hub automation logic, the trigger-semantics mistake that can silently disable the rule, a monthly test routine, and the hard limit: this is a single-circuit safety switch for appliance-origin leaks, not a response to rising floodwater.
The useful version of this smart plug recipe is very small: a leak sensor gets wet, the hub sees “wet,” and a heavy-duty smart plug turns off the appliance that may be feeding the leak. In the reproduced Zooz example that makes this worth doing, a Zooz ZSE42 water leak sensor was placed in a dish of water and a Zooz ZEN15 power switch cut power to the connected washing machine near-immediately after the sensor tripped.[1]

That is the lane. This setup can help when a washer hose, condensate pump, dehumidifier, dishwasher, or other 120 V plug-in appliance starts putting water where it should not. It is not a plan for rising floodwater. If exterior floodwater is coming into the house or water may reach outlets, the job moves from automation to electrical safety: avoid wet electrical equipment, shut off power at the breaker or main when it is safe to do so, and have appliances and wiring inspected before re-energizing them.[2][3][4][5]
Use it for an appliance-origin leak, not rising floodwater
The phrase “smart plugs to protect appliances during flood how-to” can mean two very different things. Only one of them belongs in a hub automation.
| Situation | What the smart plug can do | What it cannot do |
|---|---|---|
| Washer, dishwasher, dehumidifier, condensate pump, or similar plug-in appliance starts leaking | Turn off the one controlled 120 V load when the nearby leak sensor becomes wet | Repair the leak, shut off the water supply, dry the room, or prove the appliance is safe to reuse |
| Water is rising from a storm, sewer backup, or exterior flooding | Nothing reliable or safe enough to treat as flood response | Replace breaker/main-shutoff guidance, inspection, evacuation decisions, or electrical-safety rules |
The distinction matters because a plug behind a washer is itself electrical equipment. If water is rising toward outlets, the winning move is not a clever rule; it is getting the circuit de-energized safely and keeping people away from energized wet equipment.[2][3]
Hardware that belongs in this recipe
For a North American washer-style setup, start with three pieces: a leak sensor placed where the first water will appear, a hub that can run the rule, and a smart plug rated for the appliance load. In the Zooz walkthrough, the pairing was straightforward: ZSE42 leak sensor, ZEN15 power switch, and a Z-Wave hub.[1]

Do not casually substitute a tiny lamp plug here. Appliance loads need a device that is meant for them, and the printed rating on the plug is not decoration. As one current compatibility guide example, Emporia lists its smart plug at 15 A peak and 10 A continuous.[6] That kind of rating is exactly why the appliance nameplate and the plug manual both need to be checked before anything is left unattended.
Also keep the voltage boundary clean. Standard North American plug-in smart outlets are not a magic disconnect for 240 V appliances. Electric dryers and most electric water heaters are outside this recipe. A small 120 V water-related load may be a candidate if the plug is rated for it; a hardwired or 240 V appliance is not.
If you are still choosing the sensor, use a hub/protocol match first and brand preference second. NestGrid’s smart flood sensor hub compatibility guide is the better place for that shopping decision; this recipe assumes the sensor and plug already report correctly to the same automation system.
The automation shape to copy
The rule should be boring enough to read in one pass:
- Trigger: the leak sensor state becomes wet.
- Action: turn the appliance smart plug off.
- Optional action: send a notification or sound a hub alarm.
- Recovery: leave the plug off until a person has found the leak, dried the sensor, checked the appliance, and deliberately turns power back on.
Do not make the first version clever. No five-minute delay. No “only if the washer is running.” No automatic power restore when the sensor dries. The immediate off action is the point; the cleanup and reset belong to the person standing in the laundry room.
A practical Z-Wave build: Zooz ZSE42 plus Zooz ZEN15
Pair the ZSE42 leak sensor and the ZEN15 power switch to the same Z-Wave hub. Put the sensor on the floor where water from the washer is most likely to arrive first: under the hose connections, near the front edge if that is where the machine weeps, or in the low spot that actually collects water. Plug the washer into the ZEN15 only if the washer’s nameplate and the ZEN15’s rating allow it.
Then create the rule: when the ZSE42 reports wet, turn the ZEN15 off. The Poc Network reproduction is useful because it does not ask the reader to imagine a cloud dashboard doing something vague; it describes putting the sensor into a dish of water and seeing the power switch cut the washing machine load near-immediately.[1]
Label the outlet after testing. “Washer leak cutoff — do not remove” is better than discovering later that someone borrowed the smart plug for a holiday display. If your hub supports notes, add the date you tested it and the firmware versions you were running. That is fussy, but it is the kind of fussy that saves a Saturday.
SmartThings: moisture sensor under leaks, outlet under switches
The older SmartThings pattern is documented in community threads around Smart Home Monitor: choose the moisture sensor under the leak section, then choose the outlet or switch action that turns off power when water is detected.[7][8] In a newer SmartThings app, the screen names may differ, but the rule still needs to be state-based: when the sensor reports wet, turn the outlet off.
After saving the routine, do not stop at tapping the on-screen test button for the outlet. Wet the sensor contacts, wait for SmartThings to show the leak state, and watch the outlet switch to off. If the routine sends a push notification, verify that too. A cutoff that works only while the app is open is not a cutoff worth trusting.
Home Assistant: do not filter out unknown-to-wet
Home Assistant is excellent for this recipe because the automation is inspectable. It is also where a tiny-looking trigger mistake can defeat the whole point. Victor Da Luz documented a leak-sensor reminder automation that produced only one notification over six days across four Home Assistant restarts because the trigger required a transition from off to on; after a restart, the sensor could move from unknown to on, and the from-off constraint filtered that event out.[11]
For a leak cutoff, that failure mode is ugly. Water does not care that your hub restarted and briefly forgot the prior state. The safer Home Assistant trigger watches for the wet state itself and does not require the previous state to have been dry.
alias: Washer leak cutoff
mode: single
trigger:
- platform: state
entity_id: binary_sensor.washer_leak_sensor
to: "on"
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.washer_smart_plug
- service: notify.mobile_app_your_phone
data:
title: "Washer leak detected"
message: "Washer smart plug has been turned off. Check the laundry room before restoring power."The exact entity names will be yours. The important part is what is missing: there is no from: "off" line. The rule should fire when the binary sensor becomes on, which is the usual Home Assistant wet state for a moisture binary sensor.
Then test the annoying case on purpose. Restart Home Assistant. Wait for entities to settle. Wet the sensor. Confirm the plug turns off and the notification arrives. If the rule only works when the prior state was visibly dry in the UI, it is not finished.
If the washer plug is also part of energy monitoring or load-sensing automations, keep the leak cutoff separate and higher priority. A washer-cycle notification can be cute; a wet sensor turning the plug off should not depend on the washer being recognized as mid-cycle. NestGrid’s Home Assistant smart plug recipes are useful for energy patterns, but this rule should remain the plain emergency one.
Aqara and HomeKit-style setups
Aqara’s water leak sensor is built around exposed probes and is specified to trigger the hub alarm at a 0.5 mm water level.[9] Aqara forum guidance also describes using leak detection as the trigger for an automation that cuts a smart plug.[10] The same basic recipe applies: if the water sensor detects a leak, turn off the appliance plug and notify the household.
In an Apple Home or Aqara Home setup, check two things after you build it. First, the automation must run from the sensor’s leak state, not from a manual button or alarm-only event that never reaches the outlet rule. Second, the outlet action must be visible in the automation history or easy to verify physically. A plug click, an LED change, or a dead washer display is better evidence than a tidy card in the app.
Hubitat and other rule editors
For Hubitat-style rule editors, do not overcomplicate the translation. The trigger is “water sensor reports wet.” The action is “turn off switch.” If the editor offers both triggers and conditions, make the wet report the trigger. A condition that merely says “sensor is wet” inside a rule that never wakes up will not save the laundry room.
If your hub lets you restrict transitions, avoid a required dry-to-wet transition unless you have tested restart behavior. The Home Assistant failure is not automatically a Hubitat failure, but the lesson travels well: rules that assume a perfect previous state are fragile when hubs reboot, radios rejoin, or battery sensors wake up late.
Matter leak sensors: promising, still status-label it
Matter-native leak sensors are becoming more interesting, but they are not the proof point for this recipe yet. A Home Assistant community blueprint for the IKEA KLIPPBOK E2493 Matter leak sensor shows an immediate wet action that can turn off a smart plug for loads such as a dishwasher or water heater, with additional dry-stage actions and battery monitoring.[12] Matter leak-sensor support is also tied to newer Matter development; Matter Alpha described THIRDREALITY’s CES 2025 leak sensor in the context of Matter 1.3.[13]
Treat that path as “community-authored, verify on your stack.” If you use a Matter sensor, record the controller, hub version, bridge if any, plug model, and test date. Do not assume that a blueprint working for one person’s dishwasher means your washer plug will shut off after your next controller update.
The monthly wet-sensor test
A leak cutoff deserves a routine test, not a one-time victory lap. Home Automation Cookbook recommends testing leak sensors monthly with a wet paper towel on the contacts, verifying the notification, and checking batteries.[14] For this smart plug version, add one more check: the controlled outlet must actually turn off.
- Confirm the appliance is in a safe state to lose power. Do not run this while a washer is full of water unless you are intentionally testing that scenario.
- Turn the smart plug on and verify the appliance has power.
- Wet the sensor contacts with a damp paper towel or place the sensor contacts into a shallow dish of water, following the sensor manual.
- Watch the hub state change to wet.
- Verify the smart plug turns off. Listen for the relay, check the plug LED, or confirm the appliance display goes dark.
- Verify the notification or alarm, if configured.
- Dry the sensor, reset the plug manually, and note the test date.
- Check the sensor battery status and replace the battery if the hub reports it low.
Run that test again after hub firmware updates, major app changes, sensor replacement, plug replacement, Z-Wave/Zigbee coordinator changes, or moving the outlet to a different automation platform. The rule you tested last winter is not automatically the rule you are running now.
Power continuity matters too. If the hub, router, or radio coordinator is offline, the sensor may not be able to command the plug. If you already design around backup power or load shedding, keep this cutoff in the group that stays alive long enough to do its job; NestGrid’s Home Assistant grid emergency auto-shedding guide covers that broader power-planning problem.
What to write on the automation card
A good leak cutoff should be understandable by someone who did not build it. In the hub notes, a label on the plug, or a small card near the washer, record:
- Leak sensor name and physical location.
- Smart plug name and controlled appliance.
- Automation trigger: sensor becomes wet.
- Automation action: plug turns off and notification is sent.
- Last wet-sensor test date.
- Hub, firmware, and app version if your platform exposes them.
- Reset instruction: inspect leak, dry area, dry sensor, then manually restore power only if safe.
This is also where broader leak automation belongs if you want it: water shutoff valves, sirens, extra sensors, and escalation messages. They are useful, but they are separate from this single-circuit cutoff. For those adjacent ideas, use the broader NestGrid guide to smart leak detector automation ideas instead of turning this washer rule into a Rube Goldberg machine.
The hard stop
A leak sensor and a heavy-duty smart plug make a useful single-circuit safety switch when the load is appropriate, the trigger is state-based, and the whole chain is tested with real water. Built that way, it can stop one plug-in appliance from continuing to feed a leak.
It is not flood response. It is not a substitute for shutting off breakers when water is rising. It is not something to trust after hub updates without re-testing. The house only gets safer when the sensor, hub, plug, label, and monthly wet test all agree.
References
- Using Smart Home To Prevent A Leaking Washing Machine From Flooding Your Home, Poc Network
- Floods, Ready.gov
- Flood Safety Tips, MidAmerican Energy
- Flood Safety, National Weather Service
- Flood, American Red Cross
- Smart Plug Compatibility & Buying Guide, Emporia Energy
- Water Leak Sensor To Turn Off Outlet, SmartThings Community
- Water Detection and Outlet Shutoff, SmartThings Community
- Water Sensor, Aqara
- Leak Detection Alert Automation, Aqara Forum
- Leak Sensor Unknown State Gap, Victor Da Luz
- IKEA KLIPPBOK E2493 Leak Sensor Matter, Home Assistant Community
- THIRDREALITY to Unveil Water Leak Sensor at CES 2025, Matter Alpha
- Water Leak Response, Home Automation Cookbook
