ha-update-check
Detect pending Home Assistant updates (Core, OS, Supervisor, add-ons, HACS) from the update.* domain and surface them as actionable proposals. Runs daily as a routine via reflect --check-id ha-update-check --check hermitd-homeassistant:ha-update-check.
- License 许可
- MIT
- 所属仓库
- gtapps/hermitd
- 最近更新
- 2026-11-15
- Stars
- ★ 85
- Forks
- 16
01 前言 Front Matter
- name
- ha-update-check
- description
- Detect pending Home Assistant updates (Core, OS, Supervisor, add-ons, HACS) from the update.* domain and surface them as actionable proposals. Runs daily as a routine via reflect --check-id ha-update-check --check hermitd-homeassistant:ha-update-check.
- allowed-tools
- [ "Bash" ]
03 SKILL.md 正文
HA Update Check
Purpose
Home Assistant surfaces pending updates as update.* entities — one domain covering Core, OS/Supervisor, add-ons, and HACS integrations, each carrying installed_version/latest_version/release_summary/release_url. This skill lists what's pending and reports it in a fixed format the proposal pipeline can fan out into per-update proposals.
Native fields only — no web fetch for breaking-change detail (keeps this check cheap; fetch on accept if that's ever needed). HA-native skipped_version is honored: an update the operator skipped in the HA UI stays quiet here too.
Steps
Run the update check via the CLI:
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha updates
The CLI:
- Fetches live entity states and filters to
update.*entities wherestate == "on"(an update is pending) and the pending version hasn't been skipped in HA. - Classifies each into a tier:
core(HA Core),os(Operating System),supervisor,addon, orhacs. Core/OS/Supervisor are recognized by their well-known entity_ids; add-ons are recognized by the native backup capability they advertise (HA'ssupported_featuresBACKUP bit), which HACS/custom-integration updates lack; anything without it aggregates into thehacsbucket rather than risking noise. - Prints one JSON object:
date,total,updates(each individual update'sentity_id,tier,title,installed_version,latest_version,release_url) andhacs_pending, or{"date","status":"skipped","reason","detail"}when HA is unreachable (ha_unreachable) or answers with an error (ha_http_<status>).
Output contract
reflect --check-id ha-update-check --check hermitd-homeassistant:ha-update-check routes the findings block through the proposal pipeline. Render it from the JSON in this fixed shape: Updates pending: carries total, one line per updates entry (a null version renders as ?; omit — <release_url> when it is null), and one [hacs] line when hacs_pending is above 0:
ha-update-check findings — <date>
Updates pending: N
- [core] Home Assistant Core: 2026.6.3 → 2026.7.1 — <release_url>
- [addon] Mosquitto broker: 6.4 → 6.5 — <release_url>
- [hacs] 7 HACS updates pending
If total is 0: No actionable findings. (no updates pending).
If status is skipped: No actionable findings. (skipped: <detail>).
Keep the output to this shape: no prose, no extra sections. Each proposal title should carry the concrete target version (e.g. [ha-update] HA Core → 2026.7.1): that keeps same-version re-emits byte-identical so proposal-triage reliably suppresses repeats; Core/OS/Supervisor and each add-on become individual proposals, all pending HACS updates aggregate into one.
Each proposal body must name /hermitd-homeassistant:ha-apply-update as its application procedure, with entity_id, tier and target version.
On accept
If ha_update_auto_apply is enabled in .hermit/config.json, route acceptance through /hermitd-homeassistant:ha-apply-update rather than applying directly — it enforces the tier rule (add-ons/HACS may auto-apply; Core/OS/Supervisor always wait for an explicit operator go-ahead). If the flag is absent or false, use the advisory branch of /hermitd-homeassistant:ha-apply-update: tell the operator where to update, then attach its read-only ha-agent-lab ha updates check with task note --check. The task closes on a passing check once HA no longer lists the individual update or reports zero pending HACS updates; unreachable or skipped HA and a missing binary keep the check failing.
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.