Manage Home Assistant automations with Claude Code
Adam uses Claude Code via an MCP server to search entities, read automation traces and build and debug automations like a shed motion light.
Done withClaude Code
- What they did
- Adam keeps his Home Assistant automations as YAML files in a git repo. Claude Code reaches HA through an MCP server to search entities, read traces and reload configs. For each change it edits the file, copies it to HA with scp, reloads automations and commits. For the shed motion light, it first planned: it read his existing motion automations, checked for conflicts and asked clarifying questions.
- How it went
- A noisy camera automation was traced to home-to-home GPS updates and fixed in under two minutes. A brightness tweak took four messages. The shed light automation snapshots each light's state, so lights that were already on stay on.
- Worth knowing
- He wrote project skills files covering his conventions and known device quirks, which Claude loads automatically. This helps it match existing patterns.
Try it yourself with Claude Code
Connect to my Home Assistant instance at [URL] through an MCP server using the access token I'll provide. Search my entities for [room or device type], then help me build an automation that [describe trigger and action, e.g. turns on the shed light when motion is detected after dark]. Show me the automation before you save it, and if something misbehaves, read the trace and explain what went wrong. Stop when the automation runs correctly in a test.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
5 more accounts of this
- Set up a new smart home with Claude Code · community.home-assistant.io ↗
- Let Claude Code manage a Home Assistant setup · community.home-assistant.io ↗
- Improve Home Assistant automations with Claude Code · community.home-assistant.io ↗
- Control Home Assistant devices with Claude Code via MCP · xda-developers.com ↗
- Build a Home Assistant setup from scratch with Claude Code · yzlnew.com ↗
Source: blog.beguelin.com · Undated
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Automate event social posting across platforms
Claude Code connected social channels to drive event registrations, working well on Twitter and Reddit and somewhat on LinkedIn.
Send daily WhatsApp reminders of what to pack for school
A commenter built a Claude Code tool that sends a WhatsApp reminder the day before about what to pack in a child's school bag.
Run a personal doorman agent on a $7 VPS
A public agent greets site visitors over IRC while a private one handles email and scheduling, capped at $2 a day.
Track food and symptoms in a health log via Telegram
An OpenClaw agent logs meals and symptoms from Telegram messages into a markdown file, sends reminders, and runs a weekly pattern analysis; this is a tutorial-style setup.
Guide Claude through mandamus complaint filings
The poster prepared a Claude markdown file with guidance on filing a mandamus complaint, serving the summons and complaint, and filing proof-of-service forms in district court.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.