History

From markusleben/ha-nova · View interactive version

History is an AI agent skill from the GitHub repository markusleben/ha-nova. Use when reading Home Assistant entity history, logbook timelines, or long-term statistics through HA NOVA Relay.

How to use this skill

Skill file

HA NOVA History

Scope

Read-only timeline work:

Not in scope:

Use ha-nova:diagnose for traces (it owns trace analysis; ha-nova:read only surfaces raw trace data when the user explicitly asks for it with no failure question attached), ha-nova:calendar for calendars, and ha-nova:fallback for subscriptions.

Bootstrap (once per session)

Read and follow ../ha-nova/session-bootstrap.md.

Relay Contract

Use file-based relay requests:

For ha-nova relay jq, the filter is positional unless --jq-file is used. Do not invent a --jq flag.

Canonical paths:

comma-separated LIST for several entities (verified on 2026.8.0: the endpoint

splits on commas and ignores unknown ids), and omitting it entirely returns

the whole home for that window. filter_entity_id belongs to the HISTORY

endpoint; using it here silently returns everything.

Prefer minimal_response and no_attributes on large history queries when the task only needs state transitions.

Envelope parsing follows ../ha-nova/relay-api.md → Standard Envelope; relay-core response shape here stays under .data.body.

Recorder statistics response stays under WS .data.

Statistics semantics (recorder/statistics_during_period) — check which keys the response actually carries before summarizing:

Flow

  1. Resolve the exact entity target when needed.
  2. Set a bounded window.
  1. Choose the source:
  1. Execute the read into <result-file>.
  2. Summarize first:
  1. Only show raw excerpts if the user explicitly asks.

Output Format

Apply ../ha-nova/output-rules.md: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON.

These slots render the Report shape (output-cards.md). Keep default output compact. Raw payload dumps are opt-in only.

Safety

Whole-home and multi-entity windows: omitting entity from the logbook path

returns everything that happened ("what happened overnight?") — allowed for

windows up to 24 hours, summary-first, never a raw dump. For a small explicit

set, pass the ids as a comma-separated entity value on that LOGBOOK path —

verified against 2026.8.0: the endpoint splits on commas, and an unknown id in

the list is ignored rather than failing the query.

filter_entity_id belongs to the history endpoint, and using it here silently

returns the whole home instead. That is how you compare two people's arrival

times in one call.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.