A Home Assistant custom component that provides an AI-powered agent capable of generating automations based on natural language queries. The agent connects to all entities in your Home Assistant instance and uses OpenAI's or Llama API to translate user requests into valid Home operations including creating automations for you!
AI Agentsaiai-agenthacshacs-integrationhome-assistant
Installation
# Add to your Claude Code skills
git clone https://github.com/sbenodiz/ai_agent_ha-collab-request
README.md
AI Agent HA
A powerful Home Assistant custom integration that connects your Home Assistant instance with multiple AI providers (OpenAI, Google Gemini, Anthropic (Claude), OpenRouter, Alter, z.ai, and Llama) to translate user requests into valid Home Assistant operations, including creating automations automatically!
If you find this integration helpful and would like to support its development, you can buy me a coffee! Your support helps keep this project active and maintained. Currently I am the only Dev on that project and looking to have more paretners here.
Every contribution, no matter how small, is greatly appreciated and helps fund the continued development and improvement of AI Agent HA.
Another way to support me will be to try my new project. Askie - AI for kids. I am looking for feedback on this one: โ Web: https://kidsai.app โข โ iOS: https://apps.apple.com/app/id6749299565 โ Android: https://play.google.com/store/apps/details?id=com.askie.app
โจ Features
๐ค Multiple AI Provider Support: OpenAI, Google Gemini, Anthropic (Claude), OpenRouter, Alter, z.ai, and Llama
๐ฏ Model Selection: Choose from predefined models or use custom model names
๐ Smart Home Control: Turn lights on/off, control climate, and manage devices
โก Automation Creation: Automatically create automations based on natural language
๐ Dashboard Creation: Create and customize Home Assistant dashboards through natural language
๐ Data Access: Get entity states, history, weather, and more
๐ Secure: API keys stored securely in Home Assistant
๐จ Beautiful UI: Clean, modern chat interface
๐ Real-time: Instant responses and updates
๐ธ Screenshots
Automation Creation
๐ Dashboard Creation
AI Agent HA now supports creating and managing Home Assistant dashboards through natural language conversations! Simply describe what you want, and the AI will create a complete dashboard for you.
How Dashboard Creation Works
Natural Language Request: Ask the AI to create a dashboard for any purpose
Entity Discovery: The AI automatically finds relevant entities in your Home Assistant
Smart Organization: Entities are organized by room, functionality, or domain
Dashboard Generation: Complete dashboard with proper cards and layout is created
Integration: Dashboard is automatically added to your Home Assistant sidebar
Restart Required: You'll need to restart Home Assistant to see the new dashboard in your sidebar
Dashboard Creation Examples
Simple Room Dashboard
"Create a dashboard for my living room lights"
The AI will find all living room light entities and create a dashboard with appropriate light control cards.
Security Dashboard
"Create a security dashboard with all door sensors, cameras, and alarm controls"
The AI will create a comprehensive security monitoring dashboard with sensor states, camera feeds, and alarm controls. After creation, restart Home Assistant to see the new dashboard in your sidebar.
Energy Monitoring Dashboard
"I want an energy dashboard showing power consumption and usage graphs"
The AI will create an energy monitoring dashboard with real-time power gauges, usage graphs, and cost tracking.
Climate Control Dashboard
"Create a climate dashboard for temperature control throughout the house"
The AI will organize thermostats, temperature sensors, and HVAC controls in a logical layout.
Supported Dashboard Features
Smart Card Selection: Appropriate card types for each entity (lights, sensors, media players, etc.)
Room-Based Organization: Entities automatically grouped by area when possible
Interactive Clarification: AI asks follow-up questions to refine your requirements
Template-Based Creation: Built-in templates for common dashboard types (security, energy, climate, etc.)
Dynamic Layout: Optimized card arrangements and view organization
Icon Integration: Automatic Material Design icon selection
Dashboard Types the AI Can Create
Room-Specific: Living room, bedroom, kitchen, etc.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.