- Home
- Skills
- Workflow Automation
- Home Assistant Agent Automation With Owner Approval
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.
$2
Home Assistant Agent Automation With Owner Approval
Example session with this skill installed
Set up a way for my AI agent to create Home Assistant automations safely, without giving it my long-lived access token.
- Read your context and instructions
- Compiled the home assistant agent
A two-add-on design and build plan: an add-only MCP deployment server with owner approval in an HA Ingress panel, an entity allowlist with descriptions, a service policy that fails closed, and a staged rollout checklist.
Connects securely to your tools. The creator never sees your data.
About this skill
Use this skill to design, build and operate a two-add-on system for agent-managed Home Assistant (HA) automations:
- 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.
- 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
descriptionfor each one. It edits the sameentity_catalog.yamlthe 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
0600file 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_proposalfailure 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.yamlare 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, andnotify— are denied by default and can only be allowed by exact, full service names inpolicy.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_textvalues may contain private text, so every server surface (tool results, catalog reads, approval UI) masksinput_textstate as"***".input_text.patternis 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_enabledis on; script tools additionally needscripts_enabled, helper toolshelpers_enabled. Enable one stage at a time and verify on real hardware before widening.
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
- Home Assistant OS / Supervised
Python 3.12+Tailscale (recommended)Automation MCP
Permissions
The skill itself is instructions and references. Systems built from it run a local MCP server that talks to Home Assistant via the Supervisor API; the agent side only uses a dedicated MCP bearer token.
What's inside
Creator
Cheesecake XOR
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.