Local-first elder care safety net for Home Assistant — panic button, door watch, environment alerts, night path, and an optional local AI family digest. No cloud, no cameras, no subscription.
Every rule in this repo is a transition: something happens (event), a guard decides whether it matters (guard), the house responds (response), and the response means something to a human (meaning). The meaning column is the contract. A rule that cannot state its meaning in one honest sentence is not a rule for this repo.
The whole system lives in two states, plus one override that is reachable from both at any time. Transitions belong to the care recipient alone — there is no remote arming, no scheduled arming, and the agent never calls any service, so nothing outside a physical button can change state.
HOME
(default; calm; door_watch is
deaf by design; night_path and
env alerts live)
│ ▲
press button ─────┘ └───── press button
(door-side) (door-side)
▼ │
AWAY
(armed; door_watch LIVE;
everything else unchanged)
panic button ──▶ PANIC (reachable from HOME and AWAY alike;
no guard, no arming required)
┌─────────────────────────────────────────────────┐
│ PANIC: siren + lights + immediate family relay │
│ — then the system returns to whatever │
│ state it was in. Panic arms nothing. │
└─────────────────────────────────────────────────┘
State helpers the automations expect: input_boolean.home_away (off = HOME,
on = AWAY) and input_boolean.battery_low_sent (housekeeping latch).
health_panic — the repo’s reason for existinghome_away — the resident owns the modeinput_boolean.home_away flips between HOME and AWAY,
gating the rest of the logic.env_alerts — the house watches the house*_battery entity goes unavailable. Watched: panic button,
home/away button, front door, back door, presence, temp sensor.input_boolean.battery_low_sent is off, then latches it —
once per event, never nagging. Smoke/CO is a commented placeholder pending
hardware, honestly labeled as not yet in the package.night_path — light, not logsdoor_watch — deaf unless you armed itinput_boolean.home_away is ON — the resident armed AWAY. In
HOME it is deaf by design, and no log entry, history, or counter is
produced on the deaf side.The optional agent reads; it never acts (read-only token, no service calls — see agent/README.md). Its output has exactly three rhythms:
Anything the agent would want to say outside these three rhythms is, by design, something it does not get to say.
State it plainly, because this is where care systems go wrong:
automations/ is the complete list of what the care net cares about.
There is no hidden model, no aggregate, no “well, it usually doesn’t do
this.”This section is a covenant clause, not a style preference. A pull request that turns silence into a signal — presence “scores,” activity “baselines,” sleep “trends” — violates the model regardless of how useful it looks, and the T-test in CONTRIBUTING.md exists to catch exactly that.