AGENT SKILL

ha-evening-brief

Evening house brief — end-of-day security check, device status, and energy snapshot. Runs as a daily routine at 22:30 or on demand.

License 许可
MIT
所属仓库
gtapps/hermitd
最近更新
2026-11-15
Stars
★ 85
Forks
16

01 前言 Front Matter

name
ha-evening-brief
description
Evening house brief — end-of-day security check, device status, and energy snapshot. Runs as a daily routine at 22:30 or on demand.
allowed-tools
[ "Bash", "Read", "Glob", "Grep", "Write", "mcp__homeassistant__GetLiveContext", "mcp__homeassistant__homeassistant__GetLiveContext", "mcp__homeassistant__GetDateTime", "mcp__homeassistant__llm__GetDateTime" ]

03 SKILL.md 正文

HA Evening Brief

An end-of-day house check that confirms the house is secure before night. Designed to run as the hermitd-homeassistant:evening-brief routine at 22:30.

Core's work brief runs independently; neither brief replaces or disables the other.

Steps

  1. Time & context: Call GetDateTime for current time. Use the session language.

  2. Live house snapshot — Call GetLiveContext. Extract and organize:

    • Security: alarm state, lock states, open covers/blinds
    • Devices: robovac status (completed / docked / running / error), lights still on
    • Any devices unavailable or in error state
  3. Anomalous sensors — From the live snapshot, identify currently unavailable, stuck, or unexpected-state sensors. Report only what is currently wrong — no baseline diff required.

3a. Pending updates: Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha updates --digest. It prints one JSON object and exits 0:

  • status is skipped: pipe one line into .hermit/bin/hermitd-run task note .hermit <id> only inside an open record's turn (otherwise skip the note) (updates fetch failed: <detail>) and omit the Updates: section entirely.
  • total is 0: omit the Updates: section entirely.
  • Otherwise: render the Updates: section, translating tier labels into the operator's language. updates holds the top updates in tier order, one [tier] Title: installed → latest line each (a null version renders as ?); add + N more updates pending when more is above 0 and [hacs] N HACS updates pending when hacs_pending is above 0.
  1. Energy snapshot — From the live context, pull current power draw and day's energy consumption if HA energy entities exist. Omit this section if no energy sensors are available.

  2. Compose brief: Write a concise evening brief in the session language. Use the format below.

  3. Write to compiled/ — Write the composed brief to .hermit/compiled/brief-ha-evening-<YYYY-MM-DD>.md with frontmatter:

    title: "Evening Brief — <YYYY-MM-DD>"
    type: brief
    created: <ISO8601>
    task: <T-... for the open record in this turn; omit this field otherwise>
    tags: [evening-brief, ha]
    

    Inside an open record's turn, pipe [[compiled/brief-ha-evening-<YYYY-MM-DD>]] into .hermit/bin/hermitd-run task note .hermit <id>. Otherwise skip the note.

Output Format

Good evening! Home - [date]

Security:
- [alarm state, lock states, open covers — or "All secure"]

Devices:
- [robovac status, lights left on — or "All clear"]

Sensors:
- [currently unavailable or anomalous — or "None"]

Updates:
- [tier] Title: installed → latest
- [N HACS updates pending]
- [Omit section entirely when none pending or the fetch was skipped.]

Energy:
- [day's consumption, current draw — omit section when unavailable]

Keep the entire brief under 14 lines (10 when the Updates: section is absent: no updates pending or the fetch was skipped). Adapt the greeting and section headers to the session language.

Delivery

  • If invoked as a routine, or config.always_on is true in .hermit/config.json: deliver the composed brief via the Operator Notification protocol (core resolves the channel and falls back to push when no channel is reachable). The terminal is unmonitored in always-on mode. For the push-fallback branch, condense to a single line (per § Operator Notification push format): lead with the security verdict (open doors, unlocked, open windows) or secure, then any anomaly. Example: House secure, garage door still open: open CC to view.
  • Otherwise (invoked on demand in an interactive session): output to terminal.
  • Never include secrets, tokens, or internal file paths in the brief.

04 同仓库更多 Skills