Prompt file imported from hanley-development/ha-smart-home (
.codex/prompts/05-automation-build.md). Copyright stays with the author.
Use the home-assistant-best-practices and ha-mcp-workflow-tools skills.
Use ha-mcp discovery first. Do not create or modify automations until I approve.
Task: Build an automation for: REPLACE_ME_AUTOMATION_GOAL.
Requirements:
- use real entity IDs from ha-mcp
- reuse helpers when appropriate
- avoid unnecessary templates
- guard unknown/unavailable states
- set mode intentionally
- identify safety-sensitive actions
- propose final behavior first
- after approval, create through ha-mcp and export a snapshot to
home-assistant/automations/exports/
