Outage log with detected candidates and coverage assessment #47

Open
opened 2026-07-17 03:09:27 +00:00 by claude-bot · 0 comments
Contributor

Add an outage history to the Backup tab: manual entries (start, duration, notes) plus auto-suggested candidates from usage-gap detection (parseEmporia already computes gaps; mains≈0 stretches are additional candidates). For each outage, run the existing outage engine against the actual pre-outage battery state assumption to report coverage ("fully covered" / "would have depleted at hour N"). Summarize: outages/year, hours protected, longest covered. Store as a home-scoped resource (new table via 007_ migration) so it shares between household members.

Rationale: the stated primary goal is backup power, but the app only models hypothetical outages. Once the system is installed, the history — "has this system done its job?" — is the interesting part, and the data to answer it is already imported.

Acceptance criteria

  • Manual outage entry + gap-based suggestions
  • Per-outage coverage verdict using existing outage simulation
  • Annual summary card on Backup tab

Relations: relates to #11, #45 (realized-savings ledger)

(Audit finding F-28, 2026-07-16 — feature, ranked #3)

Add an outage history to the Backup tab: manual entries (start, duration, notes) plus auto-suggested candidates from usage-gap detection (`parseEmporia` already computes gaps; mains≈0 stretches are additional candidates). For each outage, run the existing outage engine against the actual pre-outage battery state assumption to report coverage ("fully covered" / "would have depleted at hour N"). Summarize: outages/year, hours protected, longest covered. Store as a home-scoped resource (new table via 007_ migration) so it shares between household members. Rationale: the stated primary goal is backup power, but the app only models *hypothetical* outages. Once the system is installed, the history — "has this system done its job?" — is the interesting part, and the data to answer it is already imported. **Acceptance criteria** - [ ] Manual outage entry + gap-based suggestions - [ ] Per-outage coverage verdict using existing outage simulation - [ ] Annual summary card on Backup tab **Relations:** relates to #11, #45 (realized-savings ledger) *(Audit finding F-28, 2026-07-16 — feature, ranked #3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rbrooks/BatteryStorageCalculator#47
No description provided.