claude-homeassistant  by philippb

AI-driven Home Assistant configuration management

Created 6 months ago
275 stars

Top 94.3% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a framework for managing Home Assistant configurations, enabling users to create automations using natural language via Claude Code. It targets Home Assistant users seeking a more intuitive development workflow, offering AI-assisted configuration generation coupled with robust, multi-layered validation to prevent deployment errors and ensure system stability.

How It Works

The system leverages Claude Code to translate plain English descriptions into Home Assistant YAML automations. A comprehensive validation pipeline, encompassing YAML syntax checks, entity reference verification, and official Home Assistant validation tools, is automatically triggered on file modifications and before any configuration push. This ensures that only syntactically correct and valid configurations are applied to the Home Assistant instance, mitigating risks associated with manual configuration errors. The workflow involves cloning the repository, configuring connection details, pulling the live Home Assistant configuration, developing locally with AI assistance and validation, and finally pushing validated changes.

Quick Start & Requirements

  • Installation: One-click setup scripts (setup-mac.sh, setup-windows.bat) are available for beginners. Advanced users can use make setup after cloning the repository.
  • Prerequisites: Python (3.12+ recommended for Home Assistant 2024.x), Git, and the make command are required. Users must have the "Advanced SSH & Web Terminal" add-on installed and configured in Home Assistant, along with SSH key access set up between their local machine and Home Assistant. A Home Assistant long-lived access token is also necessary.
  • Links: Official quick-start guides and demo links are not explicitly provided, but setup script downloads and Claude Code download links are mentioned.

Highlighted Details

  • AI-Powered Automation Creation: Describe automations in plain English with Claude Code.
  • Multi-Layer Validation: Includes YAML syntax, entity reference, and official HA validation checks.
  • Safe Deployments: Pre-push validation prevents invalid configurations from reaching Home Assistant.
  • Automated Hooks: Validation runs automatically on file changes and before pushing.
  • Entity Discovery: Tools to explore and search available Home Assistant entities.

Maintenance & Community

The provided README does not detail specific contributors, community channels (like Discord or Slack), or a public roadmap.

Licensing & Compatibility

The project is licensed under the Apache 2.0 license. This license is generally permissive for commercial use and integration into closed-source projects.

Limitations & Caveats

Troubleshooting sections highlight potential build issues with older Python versions on macOS and common SSH connection problems. The project's functionality is dependent on the correct setup and operation of both Claude Code and the Home Assistant SSH add-on. The README does not specify an alpha or beta status, but the detailed troubleshooting suggests potential setup complexities.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
4
Issues (30d)
2
Star History
52 stars in the last 30 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Author of Hugging Face Diffusers; Research Engineer at Mistral), Simon Willison Simon Willison(Coauthor of Django), and
1 more.

mistral-vibe by mistralai

2.4%
3k
Conversational CLI coding agent for project interaction
Created 2 months ago
Updated 6 days ago
Feedback? Help us improve.