Testing and history
Proving a rule works before you rely on it — Test now, the dry-run, the Simulate tab — and reading what was actually delivered in the history and the Last run column.
This page shows how to prove a rule works end to end without waiting for a burglar, and how to find any notification the hub sent — or failed to send — in the last week.
Three ways to test
| What it does | Sends? | Where | |
|---|---|---|---|
| Test now | Builds the event this saved rule is about, runs the real evaluation and delivery. | Yes, to every target, marked [TEST] | Rule editor, Conditions tab (admin UI: Test this rule for real); a saved rule's summary in the app. Admin only. |
| Dry-run (last 60 min) | Evaluates the current, unsaved rule against what was recorded in the last hour, and shows which records would have fired and which condition refused the others. | No | Rule editor, Conditions. Admin only. |
| Simulate | You describe an event — camera, trigger, class, label, confidence, zone, dwell… — and see which rules match it, the condition each one fails on, and what would be delivered. | Optional | Admin UI, Simulate tab. |
Test now
- It bypasses the cooldown and the camera mute, and consumes neither: the next real event is not affected.
- It never runs the rule's actions — those open real gates.
- It tests the saved rule: save first to test an edit.
- It takes a live snapshot from the camera so the notification has a picture. The result tells you if the camera did not answer (ships text-only), or if this kind of rule never carries a picture.
- Some conditions depend on the real world and are reported rather than faked: a device-state gate reads the real device, and a scene gate reads the real scene. If the alarm is disarmed, a rule gated on armed away does not fire in the test either.
The result says how many notifications were queued and to which targets, or why nothing was: every target opted out, the rule was not a candidate for that trigger (check that it is enabled), or the event was dropped before any rule was consulted.
Dry-run
Each evaluated record is listed with its time, camera, label and either the targets it would reach or failed: condition — the first condition that refused it. It is the fastest way to see that a zone, a class or a confidence floor is wrong.
Limits worth knowing, so an empty result does not mislead you:
- Sensor rules cannot be dry-run — there is no store of past sensor events to replay. The rule still fires live.
- Occupancy rules are answered from the camera's live count, not the last hour: Drive: 2/1 person · occupied now · fires on the transition, sustained 15 s. If the camera or zone has no live count, it says so — that is one of the reasons an occupancy rule never fires.
- Sound rules report nothing in the dry-run, even when they fire live — use Test now, which builds a matching sound window.
- System rules have no dry-run: there is no recorded detection behind "a node went offline". Use Test now.
Simulate
The admin Simulate tab injects a synthetic event — nothing is stored: no track, no event, no media. Each rule row has a Test action that opens the simulator pre-filled with what that rule would match, pinned to that rule. Under How to run it you choose Ignore the cooldown, Ignore mutes and snoozes, whether to attach a Still image, and — only if you mean it — Run the rule's actions — this actuates real devices.
Leave a number empty rather than typing 0: an event with no confidence and an event with confidence 0 are different, and the rule treats them differently.
History
Administration → Notifications → History is a log of every notification the rules delivered or failed to deliver, filterable by Rule, camera, status (Sent, Pending, Dead — the app calls it Failed), time window (last hour, 24 hours, 7 days, all time) and Limit. Each rule row's History action opens it filtered on that rule.
- Sent — the channel accepted it. (A target switched off between queueing and sending is also recorded as sent, although nothing went out.)
- Pending — queued or being retried.
- Dead (Failed in the app) — retried with back-off for about twenty minutes (eight attempts), then given up; or a target that no longer exists.
History records deliveries. An event that matched no rule, or was held back by a cooldown, a snooze or the schedule, made no delivery and is not in it.
It is kept for 7 days by default (Notification history, in the Pipeline Analytics settings; 0 = forever). That is also how long "one notification per visit" is remembered.
On the phone, an admin opens a rule's History from the rule; other users do not see deliveries.
Last run
The rules list shows each rule's Last run: when it last delivered and with what status — Sent, Pending, Failed — or Not in the last N days when it delivered nothing inside the history window. A rule that has been quiet for a week is the first thing to look at when you suspect it is broken.
Then
- Why didn't I get it? — the checklist.
Calendar-events rules
Fire a notification from a Home Assistant calendar window — birthdays, holidays, bin day — on a schedule rather than from a camera detection.
Why didn't I get it?
The checklist for a notification that did not arrive, arrived without a picture, or arrived too often — in the order that finds the cause fastest.