Here’s the failure mode nobody plans for: Home Assistant is up, the dashboard loads, the logs look normal — and one integration has been dead for four days. The lights still respond because you can toggle them manually, so nobody in the house notices. Meanwhile the automation that was supposed to close the garage door when everyone leaves hasn’t fired since Tuesday, and you find out because you come home to an open garage.
Once you’re past about twenty devices, the question stops being “does the smart home work?” and becomes “how would you know if part of it stopped working?” For most setups the honest answer is: you wouldn’t, until something embarrassing happens.
This post answers that question with Uptime Kuma, a couple of dead-man’s switches, and a plan for who watches the watcher. The monitors cover Home Assistant, the network gear, the hubs, and the scheduled jobs that everything else quietly depends on.
Why “is it up?” is the wrong question
A smart home doesn’t usually fail loudly. It degrades. The Zigbee coordinator drops off USB and every battery sensor goes stale over the next few hours. A cloud integration’s token expires and one vendor’s devices freeze at their last known state. A container restarts and comes back without one of its dependencies.
The nasty part is that Home Assistant itself keeps running through all of this. The UI is up. The automation.turn_on services still return success. Stale entities keep their last value instead of screaming — a temperature sensor that died at 71°F reads 71°F forever, which is a very believable number.
So the monitoring problem splits into three layers:
- Is the service reachable? (HA, the hubs, the network path to them)
- Is the data fresh? (are entities actually updating)
- Did the scheduled thing actually run? (automations, backups, cron jobs)
Uptime Kuma handles layer 1 directly, layer 3 with its push monitors, and layer 2 partially — the rest of layer 2 belongs inside Home Assistant itself, and the tier list below shows where that line sits.
Uptime Kuma in ten seconds
Uptime Kuma is a self-hosted uptime monitor — think “StatusCake you run yourself.” One Docker container, a SQLite database, a clean web UI. It does HTTP(S) checks, TCP port checks, ping, DNS, keyword matching, and push (heartbeat) monitors, with notification integrations for basically everything.
# docker-compose.yml
services:
uptime-kuma:
image: louislam/uptime-kuma:2
container_name: uptime-kuma
volumes:
- ./kuma-data:/app/data
ports:
- "3001:3001"
restart: unless-stopped
(:2 is the tag the project’s README uses now; older guides, including the first version of this one, show :1. Read the project’s migration notes before moving an existing v1 data folder to v2.)
The one architectural decision that matters: run it on different hardware than the thing it’s watching. A monitor that shares a power supply, a switch port, and an OS with its target will die at exactly the same moment the target does, and you’ll get no alert — because the thing that sends alerts is also down. If you only have one server, a cheap used thin client running just Uptime Kuma is a legitimate purchase.
Watching Home Assistant properly (not just pinging it)
Pinging the HA box tells you the kernel is alive. That’s nearly useless — a host can answer pings all day while Home Assistant itself is wedged. What you want is an authenticated HTTP check against the actual API:
- Monitor type: HTTP(s)
- URL:
http://192.168.1.50:8123/api/ - Headers:
Authorization: Bearer <long-lived access token>(create one under your HA user profile → Security) - Interval: 60 seconds
- Retries: 2 before alerting
A healthy HA instance returns 200 with {"message": "API running."}. Add a keyword match on API running and you’ve verified the whole stack: network, web server, auth, and the API layer — not just a TCP socket that might belong to a half-booted container.
A second HTTP check against a specific entity endpoint is worth adding:
http://192.168.1.50:8123/api/states/sensor.living_room_temperature
with a keyword match on "state". If the recorder or the state machine is jammed, this fails while the bare /api/ check can still pass. Two monitors, and you can tell “HA is down” apart from “HA is up but sick” — which changes what you do when the alert arrives.
Hubs, bridges, and the quiet single points of failure
Every protocol in the house funnels through some box that never gets looked at. Those get monitors too:
- Zigbee coordinator / Z-Wave stick host. If they’re on a networked device (our Z-Wave runs through Z-Wave JS UI in its own container), that’s a TCP check against the websocket port and an HTTP check against the web UI. Interval 60s.
- The Hue bridge, if you kept one. HTTP check against
http://<bridge-ip>/api/config— it answers without auth and returns JSON with the bridge name. Keyword match on the name. - Network gear. Ping checks on the switch and the access point that carry the smart devices. When ten devices go unavailable at once, “the AP rebooted” and “HA broke” look identical from inside HA. The ping history tells you which it was in five seconds.
- DNS. A DNS monitor resolving a known external name through your local resolver. A “the cloud integration is down” incident is often really “the local DNS resolver fell over.”
None of these alert often. That’s the point — when the Zigbee monitor does fire, it’s real, and it saves the forty minutes of “restart HA, no change, restart the container, no change” flailing before someone thinks to check whether the coordinator is even reachable.
The dead-man’s switch: monitoring things that are supposed to happen
Everything above is pull monitoring — Kuma reaches out and checks. But the failures that hurt most aren’t services going down. They are scheduled things silently not happening. A nightly backup that stopped running is invisible to every HTTP check in the world, because there’s nothing to probe — the absence of an event has no endpoint.
The fix is Uptime Kuma’s Push monitor, which inverts the direction. Kuma gives you a unique URL, and the job is responsible for calling it every time it runs:
# Last line of a nightly backup script
curl -fsS "http://192.168.1.60:3001/api/push/<push-token>?status=up&msg=backup-ok" > /dev/null
You set the expected heartbeat interval (for a nightly backup, 24 hours with a grace period of an hour or two). If the ping doesn’t arrive in the window, Kuma alerts. The job didn’t run, the script crashed before the last line, the machine was off — doesn’t matter. Silence itself is the alarm. That’s the dead-man’s switch.
Good candidates for push monitors:
- The nightly backup (24h interval). A backup script that fails for three weeks is a story every homelab person eventually tells.
- Any other scheduled job you rely on, with a window a little longer than its interval.
- A “did automations fire today” heartbeat from HA itself. A tiny automation that runs at noon and calls the push URL via a
rest_command. If HA’s scheduler is wedged — and it can be, while the UI works fine — this catches it:
rest_command:
kuma_heartbeat:
url: "http://192.168.1.60:3001/api/push/<push-token>?status=up&msg=ha-scheduler-alive"
automation:
- alias: "Watchdog: noon heartbeat to Uptime Kuma"
trigger:
- platform: time
at: "12:00:00"
action:
- service: rest_command.kuma_heartbeat
That last one sounds paranoid. It is not, and here’s why.
Why the scheduler needs its own heartbeat
A scheduler can stop without anything crashing. A hardware fault or a kernel-level hang can leave a machine running — every process alive in the process list, every port answering — while the thing that starts scheduled jobs has quietly stopped starting them. No error is logged, because nothing has failed in the way logs understand failure. The jobs aren’t erroring; they aren’t being started. Every check of the form “is the service up?” passes, and the first sign is that last night’s output simply isn’t there.
Two measures cover it:
Give every scheduler a push monitor. Cron on the server, HA’s automation engine, the backup timers — each one has to affirmatively prove it ran, on a schedule, forever. “Up” stops being something you infer from the absence of errors.
Add a watchdog that checks the checker — a dead-simple script on a different machine that runs every few minutes, verifies the scheduler is actually executing jobs (by checking a timestamp file the jobs touch), and alerts or restarts it if the timestamp is stale.
The general lesson: liveness has to be proven, not assumed. Anything that matters should emit a heartbeat, and something independent should notice when the heartbeat stops.
Who watches Uptime Kuma?
Which raises the obvious recursion: Kuma is now load-bearing, and it can die too — a full disk is enough — and the only symptom is that things feel too quiet.
You don’t need infinite turtles. You need exactly one external check on the monitor itself. Options, in ascending order of effort:
- A free external uptime service (UptimeRobot, HetrixTools free tier) checking one endpoint — if you expose a status page, that; if not, a heartbeat from Kuma to them, so that if your Kuma goes silent an email arrives from outside your network.
- A cron job on a second machine that curls Kuma’s
/api/status-page/heartbeatendpoint and sends a notification directly if it fails. - A second Kuma instance watching the first, if you already have a Pi doing nothing. Cute, but honestly overkill.
The external-service option costs nothing and covers the scenario the others can’t: your whole LAN or internet connection going down while you’re away.
Notification routing: alerts that actually reach a human
An alert that lands in a dashboard nobody has open is a log line with delusions of grandeur. Getting this part right matters more than monitor count.
A routing that works:
- Everything goes to phone push. ntfy or Pushover get you there in ten minutes — Kuma has native integrations for both. Email is where alerts go to be discovered three days later.
- Two severity lanes, not five. Critical (HA down, Zigbee down, watchdog fired) uses a distinct notification sound and bypasses do-not-disturb. Informational (a cloud service flapping, the third notice about the same outage) arrives silently. When every alert has the same urgency, you learn to ignore all of them at exactly the speed you’d expect.
- Resolved notifications ON for critical, OFF for informational. “It’s back” matters when you were about to get out of bed to fix it. It’s noise for everything else.
- Ten-minute maintenance windows are one click. Before deliberately restarting things, pause the monitors. Every false alarm you send yourself is a small withdrawal from the account that makes you take real ones seriously.
What’s worth monitoring: the tier list
Adding monitors is easy; the discipline is in deleting them. A tier list:
Tier 1 — monitor these, alert loudly:
- Home Assistant API (authenticated, with keyword)
- Zigbee/Z-Wave coordinator hosts
- The router/AP the IoT devices hang off
- Local DNS
- Backup job (push/dead-man’s switch)
- Scheduler heartbeats (push) — HA automation engine and any cron that matters
- Uptime Kuma itself (external check)
Tier 2 — monitor, alert quietly:
- Individual add-ons/containers with a real job (recorder database, MQTT broker, NVR)
- Cloud integrations you genuinely depend on — an HTTP check against the vendor’s status endpoint tells you “it’s them, not you” before you start debugging
- Certificate expiry if you expose anything over HTTPS (Kuma checks this for free on HTTPS monitors)
Tier 3 — don’t monitor, you’ll regret it:
- Individual lights, plugs, and battery sensors. That’s what HA’s own
unavailablestate and a stale-entity automation are for — device-level health belongs in the layer that has device-level context. Twenty ping monitors for twenty smart plugs is how you turn Kuma into the boy who cried WiFi. - Anything that flaps by design (phones sleeping, laptops leaving, TVs powering off). Watch the infrastructure those devices depend on instead.
The stale-entity gap — layer 2 from the top of this post — is best covered inside HA with a small automation that counts entities unavailable for more than 30 minutes and sends one summarized notification, rather than per-device alerts. Kuma tells you when systems die; HA tells you when data goes stale. Keeping those responsibilities separate keeps both alert streams trustworthy.
The order to build it in
Set up the dead-man’s switches first, not last. HTTP checks are satisfying and easy, so they tend to come first, but the failures that cost the most are scheduled-thing-didn’t-run failures. Push monitors are the highest-value five minutes in this whole post.
Put Kuma on separate hardware from day one, rather than discovering the co-location problem during the outage it existed to catch.
And resist monitor sprawl. The standard for keeping a monitor is that every alert means you need to know right now. A monitor that doesn’t meet it isn’t monitoring — it’s guilt with a webhook.
The whole setup is maybe two evenings of work: one for Kuma and the HTTP/ping checks, one for wiring heartbeats into your scheduled jobs and getting notifications to your phone. The payoff is a specific kind of calm — not because nothing breaks, but because you’ve stopped wondering what’s broken right now that you haven’t found yet. In a house with 1,600+ Home Assistant entities, that question has a real answer more often than you’d like.
Related guides: A Home Assistant backup strategy · IoT VLAN segmentation with UniFi · Deploying HA config changes with git and Samba