About home-assistant-automation-scripts
A skill for working with Home Assistant automations and scripts, covering entity and service discovery, configuration authoring, template validation, and troubleshooting. It maps these tasks to ha-mcp tools for inspecting and changing automations, scripts, and related configuration.
Key features
- 01Discover entities and services
- 02Inspect and search existing configuration
- 03Create or update automations and scripts
- 04Validate templates and troubleshoot execution traces
- 05Import blueprints and inspect history data
Use cases
- 01Draft automations based on an instance's entities and services
- 02Modify or refactor existing script configuration
- 03Validate templates and investigate automation run issues
MCP support
Uses Home Assistant tools through ha-mcp for entity and service discovery, configuration reads and writes, template validation, and run troubleshooting.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bradsjm/ hassio-addons --skill home-assistant-automation-scriptsAfter installing, type/home-assistant-automation-scriptsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/DEBUG_WORKFLOWS.mdLIMITED_TEMPLATES.mdREFERENCE.mdTEMPLATE_ENTITY_GUIDE.mdDetails
From the project READMEHome Assistant Automations & Scripts
Workflow
- Determine whether the request is instance-specific or general syntax.
- Discover entities and services before drafting config.
- When decisions involve templates, helpers, automation modes, entity/device IDs, or refactoring existing config, follow
home-assistant-best-practicesand its references. - Provide minimal, valid YAML/JSON or tool-driven changes.
- Validate templates and troubleshoot with traces and logs.
Tooling map (ha-mcp)
- Discover entities:
ha_get_overview,ha_search_entities - Discover services:
ha_list_services - Inspect existing:
ha_config_get_automation,ha_config_get_script,ha_deep_search - Create/update automation:
ha_config_set_automation - Create/update script:
ha_config_set_script - Blueprints:
ha_get_blueprint,ha_import_blueprint - Validate templates:
ha_eval_template - Troubleshoot runs:
ha_get_automation_traces,ha_get_logbook - History/trends:
ha_get_history,ha_get_statistics
References
All reference files are relative to the location of this SKILL.md file.
- Best practices:
home-assistant-best-practices(see itsreferences/automation-patterns.md,references/template-guidelines.md,references/helper-selection.md,references/device-control.md,references/safe-refactoring.md) - Limited templates:
references/LIMITED_TEMPLATES.md - Debug workflows:
references/DEBUG_WORKFLOWS.md - Template entities:
references/TEMPLATE_ENTITY_GUIDE.md - Additional notes:
references/REFERENCE.md
Comments
Markdown supported