Leak and Freeze
Sensor plan builder
Tick what your house has. Get every sensor it needs, where each one goes, whether a shutoff valve is worth it, and the Home Assistant automations to paste.
Tell the builder what your house has, from the water heater to the pipes in the garage, and it lists a leak sensor for every place water can start and a temperature sensor for every space the furnace does not heat. It says whether an automatic shutoff valve is worth adding, and why. Then it writes three Home Assistant automations for exactly those sensors: an alert when one gets wet, an alert when a space drops below 40 degrees, and an alert when a sensor goes quiet for 24 hours. It runs in your browser and sends nothing.
Your house
Runs in your browser. Nothing you pick is sent.
- 9 leak sensors
- 1 temperature sensors
- Yes shutoff valve
Leak sensors 9
- Water heater. On the floor beside the tank, under the drain valve and the relief valve's pipe.
binary_sensor.water_heater_leakWhy - Washing machine. On the floor behind the machine, where the supply hoses meet the wall valves.
binary_sensor.washer_leakWhy - Dishwasher. Under the sink beside it, where its supply line and drain hose connect.
binary_sensor.dishwasher_leakWhy - Sink 1. On the cabinet floor under the sink, below the shutoff valves and the trap.
binary_sensor.sink_1_leakWhy - Sink 2. On the cabinet floor under the sink, below the shutoff valves and the trap.
binary_sensor.sink_2_leakWhy - Sink 3. On the cabinet floor under the sink, below the shutoff valves and the trap.
binary_sensor.sink_3_leakWhy - Toilet 1. On the floor behind the bowl, under the supply line.
binary_sensor.toilet_1_leakWhy - Toilet 2. On the floor behind the bowl, under the supply line.
binary_sensor.toilet_2_leakWhy - Air conditioner drain pan. In or beside the furnace's condensate pan, or under the condensate pump.
binary_sensor.ac_drain_leakWhy
Temperature sensors 1
- Pipes on an outside wall. Inside the sink cabinet on the outside wall, near the pipes.
sensor.exterior_wall_temperatureWhy
Automatic shutoff valve
- With 9 leak sensors, one valve on the main answers every one of them.
Your Home Assistant automations
- alias: "Leak: a sensor is wet"
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.water_heater_leak
- binary_sensor.washer_leak
- binary_sensor.dishwasher_leak
- binary_sensor.sink_1_leak
- binary_sensor.sink_2_leak
- binary_sensor.sink_3_leak
- binary_sensor.toilet_1_leak
- binary_sensor.toilet_2_leak
- binary_sensor.ac_drain_leak
to: "on"
actions:
- action: valve.close_valve
target:
entity_id: valve.main_water
- action: notify.notify
data:
title: "Water detected"
message: "{{ trigger.to_state.name }} is wet. The main water valve is closing."
- alias: "Freeze: a space is below 40 F"
mode: single
triggers:
- trigger: numeric_state
entity_id:
- sensor.exterior_wall_temperature
below: 40
for:
minutes: 15
actions:
- action: notify.notify
data:
title: "Freeze risk"
message: "{{ trigger.to_state.name }} is at {{ trigger.to_state.state }} degrees. Open the cabinet doors and let a faucet drip."
- alias: "Watch: a water sensor went quiet"
mode: queued
triggers:
- trigger: state
entity_id:
- binary_sensor.water_heater_leak
- binary_sensor.washer_leak
- binary_sensor.dishwasher_leak
- binary_sensor.sink_1_leak
- binary_sensor.sink_2_leak
- binary_sensor.sink_3_leak
- binary_sensor.toilet_1_leak
- binary_sensor.toilet_2_leak
- binary_sensor.ac_drain_leak
- sensor.exterior_wall_temperature
- valve.main_water
to: "unavailable"
for:
hours: 24
actions:
- action: notify.notify
data:
title: "A water sensor is offline"
message: "{{ trigger.to_state.name }} has not reported for 24 hours. Check its battery."
Rename each entity to match your own devices, then paste into automations.yaml. The syntax is Home Assistant's current one; see Home Assistant: Automation triggers.
Sources
- IBHS: State of the Risk, Interior Water Damage (white paper, December 2024) Insurance Institute for Business and Home Safety, accessed October 25, 2026
- American Red Cross: Preventing and thawing frozen pipes American Red Cross, accessed October 25, 2026
- Home Assistant: Binary sensor (the moisture device class) Home Assistant, accessed October 25, 2026
- Home Assistant: Automation triggers Home Assistant, accessed October 25, 2026
- Home Assistant: Valve (valve.close_valve) Home Assistant, accessed October 25, 2026
Drafted with a language model on October 25, 2026 from the sources listed above, each opened that day. Every threshold and count on the page comes from the site's own code, held by a test. The editor samples pages after they publish; nothing here is an inspection of your house or advice from a licensed plumber or insurer.
Found an error? See Corrections.