A Sump Pump Alarm in Home Assistant
I'm mildly paranoid about our sump pump failing without me realizing it. We've had the lines freeze up, which blocked the pump from getting any water out of the house. After 10 minutes straight of running, the alarm went off. Luckily I was home, heard it and was able to fix the problem easily.
Our sump is frequently busy, so I really wanted more ways to be alerted when it has a problem. The controller already knows when something is wrong, but it can only tell whoever is close enough to hear it. Getting that same alarm into Home Assistant turned out to be one of the simpler projects I've done: one small WiFi module and two wires.
The controller already had what I needed
We have a Pro Series Pumps Deluxe Float Controller. It has a remote terminal on it that is meant for connecting to an alarm system. The terminal is a dry contact with three connections: normally open (N.O.), normally closed (N.C.) and common.

The contact switches whenever the controller raises any alarm:
- The power fails
- The pump runs for more than 10 minutes straight
- The battery is low
- The water is high (if the optional sensor is installed)
A dry contact is just a switch. It carries no voltage of its own, so anything that can read a switch can read it.
Parts
- Shelly Plus Uni, a small WiFi module with inputs made for this kind of job
- 18 AWG red and black low-voltage cable
- A power adapter for the Shelly

Wiring
Two wires run from the controller to the Shelly:
- N.O. on the controller goes to Input 1 on the Shelly
- Common on the controller goes to GND on the Shelly
N.C. isn't used. The Shelly gets its own power from the adapter.
Setup
- Get the Shelly on the network first. Before wiring anything to the pump, I powered up the Shelly on its own. A new one broadcasts its own WiFi network. You join that from a phone or laptop, open its settings page and give it your home WiFi details.
- Wire the contact. With the Shelly powered off, run the cable from the controller and connect the two wires at each end. Then power it back on.
- Configure the input. In the Shelly's settings, set Input 1 to type "Switch" and leave "Invert" off. Because I used the normally open contact, an alarm closes the circuit and the input reads as on.
The Home Assistant side
From there the input shows up in Home Assistant as an on/off sensor. Two automations do the rest. One notifies my phone when the alarm goes on, and the other when it clears.
- id: sump_pump_alarm
alias: Sump Pump - Alarm Triggered
description: Notify when sump pump controller triggers an alarm (power failure,
pump running too long, low battery, or high water)
trigger:
- platform: state
entity_id: binary_sensor.sumppumpshelly_input_0
from: 'off'
to: 'on'
for:
seconds: 5
action:
- service: persistent_notification.create
data:
title: 🚨 Sump Pump Alarm
message: Sump pump alarm triggered at {{ now().strftime('%H:%M:%S') }}. Check
immediately!
- service: notify.mobile_app_your_phone
data:
title: 🚨 Sump Pump Alarm
message: Sump pump alarm triggered! Check basement immediately.
data:
priority: high
mode: single
- id: sump_pump_alarm_cleared
alias: Sump Pump - Alarm Cleared
description: Notify when sump pump alarm condition clears
trigger:
- platform: state
entity_id: binary_sensor.sumppumpshelly_input_0
from: 'on'
to: 'off'
for:
seconds: 10
action:
- service: persistent_notification.create
data:
title: ✅ Sump Pump OK
message: Sump pump alarm cleared at {{ now().strftime('%H:%M:%S') }}
- service: notify.mobile_app_your_phone
data:
title: ✅ Sump Pump OK
message: Sump pump alarm cleared
mode: singleThe alarm has to stay on for five seconds before it notifies, and stay off for ten before it reports clear. Each one also leaves a notification in Home Assistant itself.
Two names in there will be different for you. The sensor's name comes from what you call the Shelly, and notify.mobile_app_your_phone stands in for the phone running the Home Assistant app.
What I like about it
Nothing about the pump or the controller was modified. The terminal is there for exactly this purpose, and the Shelly only listens to it.
One signal also covers every alarm the controller can raise. The trade-off is that the signal doesn't say which alarm it is. It says "go look at the sump pump", and that is the part I wanted to know.