ha-automation-diff
Report which Home Assistant automations were added, removed, edited, enabled, or disabled since the last snapshot — change memory across sessions, including UI edits that bypass this plugin. Read-only. Use when the operator asks "what changed", "what moved since last time", or to explain a regression.
- License 许可
- MIT
- 所属仓库
- gtapps/hermitd
- 最近更新
- 2026-11-15
- Stars
- ★ 85
- Forks
- 16
01 前言 Front Matter
- name
- ha-automation-diff
- description
- Report which Home Assistant automations were added, removed, edited, enabled, or disabled since the last snapshot — change memory across sessions, including UI edits that bypass this plugin. Read-only. Use when the operator asks "what changed", "what moved since last time", or to explain a regression.
- allowed-tools
- [ "Bash", "Read" ]
03 SKILL.md 正文
HA Automation Diff
Purpose
ha-safety-audit catches POLICY drift at a point in time. This skill catches CHANGE drift: which automations were added, removed, edited, enabled, or disabled since the last snapshot — including edits made directly in the HA UI that bypass ha-build-automation. It gives the hermit a memory of "what moved" between sessions, which is what explains regressions and keeps the estate legible.
It is read-only against Home Assistant: it enumerates automations, hashes each stored config, and diffs against the previous snapshot.
Steps
- Run
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha automation-diff. - The command writes a JSON snapshot to
.hermit/raw/snapshot-ha-automations-latest.json(the baseline for the next run) and a markdown findings artifact under.hermit/raw/audit-ha-automation-diff-*, and prints one JSON object:date,tracked,changes(eachchange,name,id, in display order) and theuntrackedcount, or{"status":"baseline","reason":"no_prior_snapshot","date","tracked"}on the first run. - Render the findings block below from it.
Output contract
One line per changes entry; leave out the Untracked line when untracked is 0:
ha-automation-diff findings — YYYY-MM-DD
Changes since last snapshot: K
- added: <name> (`<id>`)
- removed: <name> (`<id>`)
- edited: <name> (`<id>`)
- disabled: <name> (`<id>`)
- enabled: <name> (`<id>`)
Untracked (YAML-packaged, config not diffable): M
First run (status is baseline): Baseline established. (<tracked> automations tracked) under the header.
No changes (changes is empty): No changes since last snapshot. (<tracked> automations tracked) in place of the Changes since last snapshot and change lines.
Failure modes
- HA unreachable or erroring: the CLI prints
{"error":"ha_unreachable:<detail>"}or{"error":"ha_http_<status>:<detail>"}and exits 1. Treat either as "skipped, cannot diff"; do not retry automatically. - YAML-packaged automations have no numeric id and are not REST-retrievable, so their config is not diffable. They are counted under "Untracked" rather than silently dropped — the diff is honest about what it does not cover.
04 同仓库更多 Skills
task-decide
Record the operator's typed task decision.
dream
Nightly memory maintenance from transcript ground truth. Verifies, enriches and tidies auto-memory and topic pages with snapshot validation and undo. Also handles 'undo the dream'.
when-done-switch-to
Arm a deferred model or effort switch. Use for "when done switch to", "after this drop to sonnet", or "switch model when idle".
weekly-review
Generate the weekly review report for the current ISO week. Writes to .hermit/compiled/review-weekly-YYYY-Www.md (dev-facing detail) and sends a plain-language channel summary (Delivered / Decisions / Waiting on you / Spend). Runs every Sunday at 23:00 via routine.
watch
Background events via the config watch monitor or ad-hoc Monitor tool. Quiet watches cost zero tokens.
watch-activate
Activate the config watch monitor.