/hermitd-homeassistant:ha-apply-changefrom hermitd-homeassistant
Validates and applies Home Assistant automation or script YAML with safety checks, policy enforcement, and optional reload via REST API.
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.
Pre-check: Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <artifact_path> to verify safety. Read the decision field in the JSON output:
"deny" (strict mode): stop and explain why. Create a proposal via /hermitd:proposal-create."ask" (ask mode): include the sensitive entities in the preview in step 2."allow": proceed to step 2.Preview: Present the artifact, policy result, affected entities, and reload domain. A changed artifact or target requires a fresh preview.
Validate and apply: Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha validate-apply <artifact_path> --reload automation (or script).
id: at the top level — if missing, the CLI derives an ID from the alias or filename and warns in the output. A derived ID drifts if the alias is renamed, creating a duplicate.Post-apply: Read .hermit/raw/audit-ha-apply-latest.md and branch on the JSON output:
{"status":"invalid","reason":"simulation_failed"}: the artifact references missing entities or hits a blocked reason; run ha simulate <artifact_path> for the list and fix the YAML.{"error":...}: show it. apply_failed:<detail> means the config check or push failed; suggest fixing the YAML.creation_ok: true — config was pushed and verified via REST. Reload picks it up immediately.creation_ok: false + message contains "YAML mode" — HA is in YAML config mode (403). Tell the operator to place the generated YAML in their HA config directory and reload manually.creation_ok: false + other message: the push was not verified. Show the message.automation and script domains.deny policy verdict stops the apply; an ask verdict requires approval covering the sensitive entities.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gtapps/hermitd --plugin hermitd-homeassistant19 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-updateOther plugins' skills for the same job