by sbenodiz
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!
# Add to your Claude Code skills
git clone https://github.com/sbenodiz/ai_agent_ha-collab-requestGuides for using ai agents skills like ai_agent_ha-collab-request.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T16:31:59.733Z",
"npmAuditRan": true,
"pipAuditRan": false
}No comments yet. Be the first to share your thoughts!
30 days in the Featured rail
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!
Click the button above to install AI Agent HA directly through HACS, or see the detailed installation instructions below.
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

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.
"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.
"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.
"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.
"Create a climate dashboard for temperature control throughout the house"
The AI will organize thermostats, temperature sensors, and HVAC controls in a logical layout.
For detailed dashboard creation documentation, see: Dashboard Creation Guide
claude-3-5-sonnet-20241022 (Latest and most capable)claude-3-5-haiku-20241022 (Fast and efficient)claude-3-opus-20240229 (Most powerful for complex tasks)anthropic/claude-3.5-sonnetmeta-llama/llama-3.1-70b-instructmistralai/mixtral-8x7b-instructglm-4.7 (Latest flagship model)glm-4.5-flash (Fast and efficient)Use the Quick Install button at the top of this README for the easiest installation, or manually add the repository:
https://github.com/sbenodiz/ai_agent_hacustom_components/ai_agent_ha folder to your Home Assistant custom_components directoryThe integration uses a two-step configuration process:
Select your preferred AI provider from the dropdown:
Enter your API credentials and optionally select a model:
# Example configuration.yaml (optional - integration supports config flow only)
ai_agent_ha:
ai_provider: anthropic
anthropic_token: "sk-ant-..."
models:
anthropic: "claude-3-5-sonnet-20241022"
# Example with z.ai provider
ai_agent_ha:
ai_provider: zai
zai_token: "your-zai-api-key"
zai_endpoint: "general" # or "coding" for coding-optimized endpoint
models:
zai: "glm-4.7"
# Example with Alter provider
ai_agent_ha:
ai_provider: alter
alter_token: "your-alter-api-key"
models:
alter: "your-model-name"
Access the beautiful chat interface at:
http://your-ha-instance:8123/ai_agent_haEnter any model name in the "Custom Model" field:
gpt-4-0125-previewclaude-3-opus-20240229anthropic/claude-3-opusgemini-pro-visionyour-custom-model-nameglm-4.7Llama-4-Maverick-17B-128E-Instruct-FP8The AI can create automations automatically:
The AI can create custom dashboards through conversation: