agentusecasesAll 965 use cases
Life Admin & Home

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.

Read the original ↗

Source: blog.beguelin.com · Undated

Five of these in your inbox every morning

The best things people got an AI agent to do, each with the prompt to try it.

More like this