Home Assistant automations via Claude Code
Claude Code, connected to Home Assistant through an MCP server, debugged a misfiring automation, adjusted a dim level, and built a new shed motion-light automation.
A camera automation that fired 5 times in 40 minutes was fixed in under two minutes, and shed motion lights were built.
Overview
How it was set up
Claude Code with a Home Assistant MCP server, automations as YAML in a git repo deployed by scp, plus two project skills files for HA and OpenWrt conventions.
Worth knowing
Author reviews what Claude proposes and course-corrects. No repo or trace output is shown, only the author's account.
A prompt to start from
Why did the Home Assistant automation [automation name] just run? Check its recent traces, find the trigger cause, propose a fix with explicit from/to filters, deploy it, reload automations, and commit to git.Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Added to Agentic Feats
- 2026-10-13
- Pick
- No
- Markdown copy
- /c/home-assistant-automations-via-claude-code.md
More in ops and IT
20 featsResultProvisioning worked after two fixes. The MCP hid the real errors, so apply ran through Cursor's Run tool, which suggested the fix.
ResultThe author migrated 10+ Lambda functions from Node.js 14 to 20 in one pass and fixed a broken docker-compose file by auto-retrying until clean.
ResultThe author runs 14 containers including Vaultwarden, Immich, Plex, and Readeck, with daily USB and weekly S3 Glacier backups costing about twenty cents per month.