Claude Code plugin for Home Assistant - AI-assisted automation management

Hey everyone,

Wanted to share something I’ve been working on that’s genuinely changed how I interact with my Home Assistant setup. Not a polished product announcement - more of a “here’s an interesting direction” post.

The short version:

I gave Claude Code (Anthropic’s AI CLI tool) direct access to my Home Assistant - SSH for commands, SSHFS mount for config files, and a custom MCP server that indexes entity dependencies. It can now read,
understand, and modify my entire setup with full context.

Why this feels significant:

I just overhauled ~80 automations that had accumulated over years. The AI could trace what used what, identify dead entities, spot near-duplicate automations I’d forgotten about, and validate changes against
my live instance before reloading.

Work that would’ve taken me a weekend of careful grepping and testing took an afternoon. Not because it wrote code faster - because it understood the whole system while making changes.

The bigger picture:

I can genuinely imagine a future where someone describes their home (“3 bedrooms, Hue lights, Ecobee thermostat, I want the lights to follow me and the heat to adjust when I leave”) and a system like this
generates the entire config - entities, automations, helpers, dashboard.

We’re absolutely not there yet. This is firmly power-user and coder territory right now. Giving an AI direct SSH access and file mounts means there’s serious potential for fuckups. You need to understand what
it’s doing, review changes, and know how to recover when things go wrong.

But the foundation is interesting:

  • Direct file access means it works with your config, not generic examples
  • Entity dependency tracking means it knows what breaks before changing things
  • SSH access means it can validate (ha core check) and reload without manual steps
  • MCP protocol means you can extend it with your own tools

What I built:

ha-pilot - a Claude Code plugin with:

  • Skills containing HA-specific YAML best practices, API reference, diagnostics guides
  • An MCP server (Python) that indexes your YAML config and builds a dependency graph
  • Setup wizard for SSH, SSHFS, environment configuration

Links:

This isn’t ready for “install and forget” users. But if you’re comfortable with the terminal, curious about where AI-assisted home automation might go, and willing to experiment - I’d love to hear your
thoughts.

Anyone else exploring this space?

5 Likes

Yes! I’ve been doing something similar, but mainly (so far) focused on a different host where I have a lot of different services running, including some that are related to home assistant… and that’s been extremely effective, so much so that I added a couple of SMB mounts to access Home Assistant’s config, and a couple of MCP servers (plus an API token) to be able to poke the server directly – and for a few tasks so far it’s been just as effective & productive as you’re describing.

I can tell I need to get better & more up-to-date documentatiron into the context window via skills or just having them on-hand – some of what i want to do is modernize e.g. some old light group entities to instead (or in addition) be built using labels - monotonous stuff, but that requires more than a gut-feel for what a homeassistant yaml file wants to look like vs a few years ago.

Nonetheless – feels very very promising!

Thanks so much for this. it is amazing. I was able to build a new Solar and Battery ROI dashboard which tracks the savings of my new Solar and Battery setup and then give me an idea on when it will be paid off.

This tool made this so easy.
Thanks again.

Bonjour,
Je commence à utiliser Claude pour HA. Ne connaissant pas grand chose en Yaml, cela m’a aider a construire quelques automatismes dans HA. Purge journalière d’un réservoir d’eau. gestion porte sectionnelle de garage. programmation radio sur Homepod. Bref, en quelques heures j’ai pu faire cela avec Claude. Etonnant d’efficacité?

I’ve been doing something pretty similar, but in a much simpler way. So thank you very much for ha-pilot!

I had basically zero Home Assistant experience when I started just a few days ago. I installed HA and then just… let Claude Code manage basically everything. Instead of manually learning YAML, dashboards, integrations, etc., I just let it figure out the implementation by giving him access to the setup. The only thing I did manually was authorizing some integrations.

The really surprising part is how far that can go. It even reverse-engineered a couple of devices that don’t have any HA integration at all and built custom integrations for them that work amazingly well, even better than the respective official apps.

One thing that pushed me in this direction is that I honestly never got along with the HA dashboards. They’re powerful, but I always found them confusing and hard to structure the way I wanted.

So instead of fighting with dashboards, Claude is now building a native iOS app that talks directly to my HA instance. The UI is entirely SwiftUI, and the whole dashboard is basically being created through vibe-coding sessions where I simply describe how I want the house to behave, be organized and how the UI should look.

It’s honestly kind of wild to watch. I started with zero coding knowledge, and now there’s a custom mobile app controlling the house, all done in less than a week in spare time.

I can only post 1 image so, that’s the idea

Thats exactly why I’m doing this…

If you guys are gonna Claude, Claude safe. Yes infancy but ask Claude to look at the spec and learn… You’ll be very suprised what happens next

2 Likes

This is great. One question though, what sort of entity dependencies do you mean for the mcp server? Why is this needed?