/hermitd-homeassistant:ha-presence-reportfrom hermitd-homeassistant
Generates a presence report from Home Assistant person/device_tracker entities: current home/away state, tracker reliability, recent transitions, and activity patterns. Useful when diagnosing presence-dependent automation issues.
Ships in hermitd-homeassistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Call GetDateTime for the current time reference. Use the session language for all output.
Read .hermit/raw/snapshot-ha-normalized-latest.json.
"Context snapshot is stale — run
/hermitd-homeassistant:ha-refresh-contextfor accurate data."
entity_index to keys starting with person. or device_tracker.. If no matching keys exist, emit "no presence entities found — presence tracking isn't configured in this HA instance" and stop. Do not proceed to the history fetch.state field (home / away / unknown / unavailable) and last_changed → "since HH:MM" relative to now.state == "unavailable" OR last_changed is more than 48 hours ago (stale tracker).Run:
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha fetch-history \
--window-days 7 \
--entities "device_tracker.*" "person.*" \
--include-transitions
This writes .hermit/raw/snapshot-ha-history-7d-latest.json.
Read snapshot-ha-history-7d-latest.json. For each presence entity:
transitions (ordered chronologically), formatted as HH:MM DD-Mon — <state>.state_durations — what percentage of the window was "home" vs "away".transitions list by UTC hour, keyed on direction: transitions to home are arrivals, transitions to away are departures. Report the top 1–2 arrival hours and departure hours separately (e.g. "typically arrives around 18:00 UTC, leaves around 08:00 UTC"). With ≥7d of data and ≥5 total transitions, state the windows; below that threshold, say "insufficient data for pattern detection." (hour_histogram counts all events regardless of direction, so use it only as a fallback for entities whose states aren't home/away.)Compose and print the inline report in the session language:
## Presence Report — <date>
### Current State
<per-entity: who is home/away/unknown, since when>
### Tracker Health
<list unreliable entities with reason; "All trackers healthy." if none>
### Recent Transitions (last 7 days)
<per-entity: last 5 home/away events with timestamp>
### Activity Patterns
<per-person: typical arrival/departure windows, or "insufficient data">
Write compiled/presence-report-<YYYY-MM-DD>.md with frontmatter:
title: "Presence Report — <YYYY-MM-DD>"
type: presence-report
created: <ISO 8601 with UTC offset>
task: <T-... for the open record in this turn; omit this field otherwise>
tags: [presence, ha]
Body: the inline report from step 5.
Inside an open record's turn, pipe [[compiled/presence-report-<date>.md]] into .hermit/bin/hermitd-run task note .hermit <id>. Otherwise skip the note.
{"error"} and exits 1): print "Presence history unavailable: HA unreachable. Current state from snapshot shown above." and stop after step 2. Do not write the compiled artifact.What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/domain-brainstormOn-demand HA-voice brainstorm — reads entity inventory, automation/script listings, and operator intent to surface at most 2 capability-gap ideas, each gated by proposal-triage before becoming a proposal task. Invoke when the operator asks "what automations am I missing?", "any coverage gaps?", or "brainstorm improvements". Never runs autonomously./ha-analyze-patternsAnalyze Home Assistant history data and entity patterns to identify automation opportunities, unused devices, and energy anomalies. Use periodically or when looking for optimization opportunities./ha-apply-changenpx claudepluginhub gtapps/hermitd --plugin hermitd-homeassistantOther plugins' skills for the same job