Freeze and Heating Failure Alerts With Home Assistant

What you’ll build
A frozen pipe that bursts inside a wall can mean thousands of dollars in damage, and it nearly always happens at the worst time: a -30 °C night, a power outage while you’re at work, a cottage left empty for three weeks. This tutorial sets up three alerts that ring even when your phone is on silent, all handled by Home Assistant, with no subscription:
- Freeze risk: a sensor next to a pipe drops below 5 °C.
- Heating failure: a room’s temperature falls abnormally (dead baseboard heater, tripped breaker, misbehaving thermostat).
- Power outage: the UPS switches to battery, which means Hydro-Québec just cut out.
Add a fourth piece people often forget: a daily “all good” message. If it doesn’t show up in the morning, the system itself is down.
Plan on about an hour if Home Assistant is already running. If not, start with our guide to installing Home Assistant on a Mini PC.
Hardware you’ll need
The server and the Zigbee radio
A Mini PC or a Home Assistant Green is plenty. The Zigbee stick talks to the sensors directly, with no vendor hub and no cloud.
Home Assistant Green
Pros
- Home Assistant comes preinstalled: plug it in and follow the setup wizard
- Very low power draw, silent, no fan
- Backups and updates handled from the interface
Cons
- No built-in Zigbee radio: you still need the USB stick
- Limited horsepower if you add AI camera detection later
Zigbee / Thread USB stick (Home Assistant Connect ZBT-1 or Sonoff Zigbee 3.0 USB Dongle Plus-E)
Pros
- Local control of your sensors, no proprietary bridge
- Works with ZHA and Zigbee2MQTT
- No subscription, modest price
Cons
- Plug it into a USB 2.0 extension cable to avoid interference from USB 3.0 ports
- One network at a time: Zigbee or Thread, depending on the firmware
Ballpark budget: around $40 – $70 for the stick, around $140 – $200 for the Home Assistant Green.
Temperature sensors
Plan one sensor per cold spot (see step 1) and one in a living area to catch a heating failure. Two reliable models with solid ZHA support:
Aqara Temperature and Humidity Sensor (Zigbee)
Pros
- Very small: slips under a sink or against a floor joist
- Long coin cell battery life at room temperature
- Also measures humidity, handy for spotting condensation
Cons
- No display: you can't read the temperature on site
- Some Aqara devices drop off the network when paired through other brands' Zigbee routers
- Battery life is shorter in a cold spot
SONOFF SNZB-02D (Zigbee, LCD display)
Pros
- Large display: handy in the garage or at the cottage to check on site
- Good compatibility with ZHA and Zigbee2MQTT
- Stands on its base or mounts on a wall
Cons
- Bulkier than an Aqara sensor, less discreet
- Indoor use only: not for outdoors or damp spots
- Check the listed temperature range before putting it in a very cold crawl space
Ballpark budget: around $20 – $35 per sensor.
A UPS, so you know when the power goes out
Without a UPS, an outage shuts down the server and the modem at the same time, and you hear nothing. Plug the Home Assistant server, your Vidéotron, Bell or Rogers modem, and the router into it.
APC Back-UPS BE600M1 (600 VA / 330 W)
Pros
- 7 × 120 V outlets: server, modem and router on a single unit
- USB data port recognized by Network UPS Tools (NUT) in Home Assistant
- Compact, tucks under a desk
Cons
- Short runtime: built to ride out a brief outage, not a whole night
- The battery wears out and needs replacing after a few years
- Audible alarm when it switches to battery, which can be startling at night
Ballpark budget: around $90 – $130.
Step 1: Put the sensors in the right places
A sensor in the middle of the living room will never tell you a pipe is freezing inside an exterior wall. Target the cold spots:
- Main water entry, usually against the foundation wall in the basement.
- Under the kitchen sink, especially on an exterior wall.
- Crawl space or unheated basement.
- Attached garage if a line runs through it or an outdoor faucet is connected there.
- Laundry room near an exterior wall.
- A living area (living room, bedroom): this sensor drives the heating failure alert.
Place the sensor a few centimetres from the pipe, away from any spot where water could drip. For the leaks themselves, pair this with the detectors from our guide to protecting your basement from water damage.
Step 2: Pair the sensors in Home Assistant
- Go to Settings → Devices & services → Zigbee Home Automation (ZHA), then Add device.
- Put the sensor in pairing mode (long-press its button, per the manual).
- Rename it right away with a clear name: “Crawl space”, “Kitchen sink”, “Living room”. Your alerts will reuse that name.
- Pair it in its final location or close to it. A sensor paired next to the server and then moved to the back of the crawl space may lose contact.
If a distant sensor keeps dropping off, add a mains-powered Zigbee plug halfway: it acts as a repeater and strengthens the mesh.
Step 3: Create a “coldest spot” sensor
Rather than watching each sensor one by one, group them:
- Settings → Devices & services → Helpers → Create helper.
- Choose Combine the state of several sensors (min/max).
- Select all your cold-spot sensors, type Minimum, name it “Coldest spot”.
You get sensor.coldest_spot, handy for a dashboard tile and for the daily message.
Step 4: A freeze alert that rings even on silent
Install the Home Assistant app on your phone and connect it to your server: it creates a notify.mobile_app_<phone_name> service. Then create an automation (Settings → Automations → Create → Edit in YAML):
alias: "Freeze alert - pipes"
mode: single
triggers:
- trigger: numeric_state
entity_id:
- sensor.crawl_space_temperature
- sensor.kitchen_sink_temperature
- sensor.water_entry_temperature
below: 5
for: "00:15:00"
actions:
- action: notify.mobile_app_my_phone
data:
title: "Freeze risk"
message: "{{ trigger.to_state.name }}: {{ trigger.to_state.state }} °C"
data:
push:
sound:
name: default
critical: 1
volume: 1.0
ttl: 0
priority: high
channel: alarm_stream
Swap in your own entity names. The push block makes the alert critical on iPhone (it breaks through Do Not Disturb once you allow it in the app), and channel: alarm_stream makes Android ring even on silent.
Duplicate the automation with a 2 °C threshold and the title “FREEZE IMMINENT”: the first alert means “keep an eye on it”, the second means “act now”.
Step 5: Detect a heating failure
A dead baseboard heater or a tripped breaker isn’t obvious right away. Watch the living area:
alias: "Heating failure alert"
mode: single
triggers:
- trigger: numeric_state
entity_id: sensor.living_room_temperature
below: 14
for: "00:30:00"
actions:
- action: notify.mobile_app_my_phone
data:
title: "Heating down?"
message: "Living room at {{ states('sensor.living_room_temperature') }} °C for 30 minutes."
data:
push:
sound:
name: default
critical: 1
volume: 1.0
priority: high
channel: alarm_stream
Adjust the threshold to your situation: 14 °C suits an occupied home, 8 °C suits a cottage kept just above freezing. If you have Sinopé or Stelpro Zigbee thermostats (see our 240 V baseboard thermostat comparison), each room can get its own alert based on its measured temperature.
Step 6: Get notified of a power outage
- Connect the UPS’s USB cable to the Home Assistant server.
- In Settings → Add-ons → Add-on store, install Network UPS Tools, configure it according to its documentation (the
usbhid-upsdriver for most consumer APC units), then start it. - Add the Network UPS Tools (NUT) integration: Home Assistant usually discovers the add-on on its own.
- Find the entity that reports the UPS’s raw status (for example
sensor.ups_status_data): it containsOLwhen all is well andOBwhen the UPS is running on battery.
alias: "Power outage alert"
mode: single
triggers:
- trigger: state
entity_id: sensor.ups_status_data
conditions:
- condition: template
value_template: "{{ 'OB' in trigger.to_state.state and 'OB' not in trigger.from_state.state }}"
actions:
- action: notify.mobile_app_my_phone
data:
title: "Power outage"
message: "The UPS is on battery ({{ states('sensor.ups_battery_charge') }} %)."
data:
priority: high
channel: alarm_stream
Make a copy for when power comes back (OL returns). During a long winter outage, the truly useful information comes next from the freeze alerts: that’s why the three automations work as a team.
Step 7: The daily “all good” message
The catch with any alert system is that it stays quiet when it’s broken itself. Add a message every morning:
alias: "Daily freeze check"
triggers:
- trigger: time
at: "07:30:00"
actions:
- action: notify.mobile_app_my_phone
data:
title: "House OK"
message: "Coldest spot: {{ states('sensor.coldest_spot') }} °C."
No message at 7:30? The server, the Internet or the power has a problem. To check the dashboard remotely without a cloud service, see our guide to secure remote access with a VPN. If you have an attached garage, consider automating your garage door locally without MyQ so a forgotten open door triggers an alert before nearby pipes freeze.
Mistakes to avoid
- Test it for real. Put a sensor in the fridge for 30 minutes with a temporary 6 °C threshold: you’ll see whether the critical alert actually rings.
- Forgetting phone permissions. On iPhone, allow critical alerts in the Home Assistant app settings. On Android, make sure battery optimization isn’t blocking the app.
- Leaving the modem off the UPS. The server stays on, but without Internet, no notification gets out.
- Dead batteries in the middle of January. Create an alert when a battery drops below 20%, and replace the batteries in cold-spot sensors before winter.
- A sensor that’s too far away. A crawl space behind a concrete slab blocks the signal well: add a Zigbee repeater before deciding the sensor is faulty.
- Relying on a single alert. A 5 °C freeze alert, a 2 °C alert and the daily check back each other up: if one misses, another catches it.
Illustration: LeLaboDomotique.com.
Frequently asked questions (FAQ)
At what temperature should a pipe freeze alert go off?
Aim for 5 °C measured next to the pipe, sustained for at least 15 minutes. Water freezes at 0 °C, but a sensor a few centimetres from a pipe does not read the exact water temperature, and you need time to react. A second, more urgent alert at 2 °C separates “keep an eye on it” from “act now”.
Does the alert still work during a Hydro-Québec power outage?
Only if the Home Assistant server, the modem and the router are plugged into a UPS. Battery-powered Zigbee sensors keep measuring, but with no server and no Internet, no notification goes out. A small 600 VA UPS keeps that gear running long enough to send the outage alert, then warn you if the temperature starts to drop.
Can I monitor a cottage without a monthly subscription?
Yes, as long as the cottage has an Internet connection. Home Assistant, Zigbee sensors and the mobile app are free. The Home Assistant app receives remote notifications through Apple's or Google's free push service, with no Nabu Casa plan. To open the dashboard remotely, a WireGuard VPN on the router does the job at no cost.
Can Zigbee temperature sensors handle a cold garage or crawl space?
Most small Zigbee sensors are designed for indoor use. They work in an unheated garage or crawl space as long as the temperature stays within the range the manufacturer lists, but coin cell batteries lose capacity in the cold. Check the operating range of the exact model, keep sensors away from spots where water can drip, and buy spare batteries before January.


