# Home Assistant Agent Automation With Owner Approval

> Let an AI agent propose Home Assistant automations, scripts and helpers add-only, with owner approval in HA, an entity allowlist, and a visual catalog editor. No HA long-lived token on the agent.

Home Assistant Agent Automation With Owner Approval is a paid AI agent skill on Agensi by Cheesecake XOR, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Cheesecake XOR](https://www.agensi.io/creators/cheesecake-xor)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.1
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/home-assistant-agent-automation-with-owner-approval
- Tags: agents-orchestration, workflow-automation, security

## About this skill

Use this skill to design, build and operate a two-add-on system for agent-managed
Home Assistant (HA) automations:

1. **Automation deployment MCP add-on** — a Home Assistant add-on that exposes an
   MCP (Streamable HTTP) server to an external AI agent. The agent can read an
   entity allowlist, validate definitions, and *propose* creations, deletions and
   rollbacks. Nothing is written to HA until the owner approves it in an HA
   Ingress panel. The agent never holds a Home Assistant long-lived access token
   (LLAT): the add-on talks to HA Core with the Supervisor token, and the agent
   only holds a dedicated MCP bearer token for this server.
2. **Entity Catalog Editor add-on** — a small Ingress UI add-on where the owner
   picks, by checklist, which HA entities the agent is allowed to know about and
   reference, and writes a natural-language `description` for each one. It edits
   the same `entity_catalog.yaml` the MCP server reads, so "what the agent may
   touch" is managed in one place, by the owner, in the HA UI.

This skill is a blueprint and operating guide distilled from a working,
real-hardware deployment (add-on versions: MCP server 0.5.5, Catalog Editor
0.1.2). Follow it to recreate the system, adapt it, or review an existing
implementation against the safety model.

- **No HA token on the agent side.** The MCP server runs as an HA add-on and
  uses the Supervisor-injected token to reach HA Core. Standalone mode (outside
  HA) is a fallback only and must keep its token in a `0600` file on the server
  host, never in the agent's environment or chat.
- **Add-only, prefixed, create-only.** Agent-created objects get IDs with a
  fixed prefix (`muse_` in the reference deployment). Creation uses HA's config
  APIs in create-only fashion so an existing automation can never be silently
  overwritten. The prefix plus a server-side ledger defines what is "managed".
- **Proposals, not writes.** Every create, delete and rollback first becomes an
  immutable proposal (definition hash pinned, 24 h TTL by default, capped
  pending count). Execution happens only on owner approval in a separate
  Ingress UI (separate port, admin-only panel, not reachable with the MCP
  token). At approval time the server re-validates, checks the pinned
  definition/backup has not changed (`changed_since_proposal` failure if it
  has), creates, reads back and verifies.
- **No approval tools in MCP.** Approval and rejection deliberately do not
  exist as MCP tools, so the agent cannot approve its own proposals.
- **Entity allowlist is the trust boundary.** Entities not listed in
  `entity_catalog.yaml` are invisible to the agent and any automation
  referencing them fails validation. A missing, empty or corrupt catalog means
  an empty allowlist: validation fails closed.
- **Service policy, fail-closed.** By default only same-domain services for
  catalogued entities are allowed (plus notification create/dismiss for the
  agent's own notices). High-impact domains — `lock`, `alarm_control_panel`,
  and `notify` — are denied by default and can only be allowed by exact,
  full service names in `policy.yaml` (wildcards do not work for them).
  `denied_services` (fnmatch) is checked before every allow rule. If the policy
  file fails to load or validate, everything is denied.
- **Secrets hygiene.** `input_text` values may contain private text, so every
  server surface (tool results, catalog reads, approval UI) masks `input_text`
  state as `"***"`. `input_text.pattern` is restricted to a safe subset
  (single-atom quantifiers only, no backreferences, no look-around) and is
  refused fail-closed if the structural checker is unavailable.
- **Staged rollout.** Read/validate tools first. Write tools appear only when
  `deploy_enabled` is on; script tools additionally need `scripts_enabled`,
  helper tools `helpers_enabled`. Enable one stage at a time and verify on real
  hardware before widening.

## Requires

- Home Assistant OS / Supervised
- Python 3.12+
- Tailscale (recommended)
- Automation MCP

## Known limitations

Blueprint and operating guide distilled from a working deployment; it does not ship the original add-on source repositories. Template expressions in automations can only be checked statically on a best-effort basis. Config-entry helpers (template, utility_meter) are out of scope.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Home Assistant Agent Automation With Owner Approval skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Home Assistant Agent Automation With Owner Approval do?

Let an AI agent propose Home Assistant automations, scripts and helpers add-only, with owner approval in HA, an entity allowlist, and a visual catalog editor. No HA long-lived token on the agent.

### Which AI agents support Home Assistant Agent Automation With Owner Approval?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Home Assistant Agent Automation With Owner Approval?

Connect your AI agent to Agensi through MCP, then ask it to use Home Assistant Agent Automation With Owner Approval on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
