Use Claude Code to maintain Home Assistant automations
Adam relied on Claude Code plus an MCP server to inspect Home Assistant, edit automation YAML, and troubleshoot behavior from traces.
- What they did
- Adam kept his Home Assistant automations in YAML files inside a git repository. Claude Code connected into Home Assistant through MCP so it could search for entities, examine automation traces, and reload the setup after edits. Each time, it changed the file, copied it into Home Assistant with scp, triggered a reload, and then committed the update. For the shed motion light, it began by studying similar motion rules, checking for conflicts, and asking clarifying questions before writing anything.
- How it went
- A camera automation that was reacting to home-to-home GPS updates was found and repaired in under two minutes. Another brightness change needed four messages. The shed light logic also saves the previous state of each light, so lights that were already on remain on.
- Tips
- Adam’s skills files describe his conventions and device quirks, which helps Claude Code follow the existing patterns. It is also useful to ask the agent to compare against nearby automations before making live changes.
Try it yourself with Claude Code
I want to manage my Home Assistant automations through Claude Code and an MCP server. Start by finding the entities for [room/device] and checking any related automations or traces. Then draft the YAML for [desired behavior] and explain any possible conflicts or assumptions. Show me the exact change before you do anything irreversible, and wait for my approval before you reload, save, submit, commit, or send anything. If there is a problem after testing, inspect the trace, explain the cause, and propose the next fix. Stop at each approval point.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
3 more reports of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Turn meeting notes into a ranked daily task list
Claude Code can scan meeting notes, extract action items, and sort them into a daily priorities file with owners and deadlines.
Use Claude Code to trim startup clutter and tune a PC
A user had Claude Code inspect a Windows PC, approve changes in stages, and remove background items that were tied to game stutter.
Use Claude Code to coordinate a family week
A parent used Claude Code to turn custody, cooking, and shopping details into a weekly family plan.
Create a timer routine for a Kasa smart plug
Claude Code handled setup for a Kasa plug and the user’s Christmas tree lights started running on a timer.
Post World Cup finals to a Signal group
A Claude Code agent monitored ESPN for finished World Cup games and relayed each final score to a three-person Signal chat with a validation step first.
Use Claude Code to clean inboxes, courses, and budgets
A non-technical CEO used Claude Code to narrow Gmail to reply-needed messages, convert homeschool PDFs into narrated lessons, and assemble a budget dashboard.