AI in Home Assistant
AI can help you use Home Assistant in several ways. You can talk to your home in your own words, let your automations use AI for a single job, and ask AI to help you set up, organize, and fix Home Assistant.
AI is optional. You decide if and where you use it, and which AI provider you use.
Ways to use AI in Home Assistant
AI works in two directions in Home Assistant. With AI toolsA function that conversation agents and AI apps can use to read information, control entities, or manage Home Assistant. AI tools are grouped into sets. Each set provides different functionality. Some sets only work for administrators. [Learn more], a conversation agentSoftware that Home Assistant uses to understand a request and decide what to do. Home Assistant has a built-in conversation agent. Integrations can add others, including ones that use AI. Conversation agents that use AI can also use AI tools. Each assistant uses a conversation agent. [Learn more] or an AI appThird-party software that connects to Home Assistant through the Model Context Protocol integration. An AI app can use the AI tools that you allow. [Learn more] uses Home Assistant to read and control your home. With an AI task, Home Assistant uses an AI model for a single job, such as describing a camera image.
Voice and text control
AssistThe voice assistant built into Home Assistant. You can use Assist by talking or typing in the Home Assistant web interface and in the Home Assistant Companion app. You can also use it by talking through a voice satellite. You can set up several assistants, each with its own language and conversation agent. [Learn more] is the voice assistant that is built into Home Assistant. You can talk or type to it in the Assist dialog of Home Assistant or of the Home Assistant Companion appThe official Home Assistant app for Android and Apple devices. On phones, tablets, and Macs, it shows your Home Assistant interface, like a browser does. It can also share data from your device’s sensors with Home Assistant and receive notifications. The Home Assistant Companion app also works on smartwatches and in cars, with Android Auto, Android Automotive OS, or Apple CarPlay. [Learn more], or talk to it with a voice satelliteA standalone device with a microphone that you use to talk to Assist. Some voice satellites also have a speaker to play Assist’s replies. Unlike a browser or the Home Assistant Companion app, a voice satellite isn’t signed in to a user account. This means Home Assistant can’t tell who is speaking. Each voice satellite uses at least one assistant..
Assist works without AI. Its built-in conversation agent runs on your own hardware, and understands the built-in sentences and your own custom sentences. A conversation agent that uses AI also understands requests that you word freely, and answers questions about your home. For example, you can ask:
- “What’s on my calendar today?”
- “Which windows are open?”
- “Turn off the lights in the living room in 5 minutes.”
With the Device control set of AI tools, an AI conversation agent controls the entities that you expose to Assist. The Home Assistant set of AI tools reaches every entity. For details, refer to Sets of AI tools. To get started, add an AI integration that provides a conversation agent, and choose it in your assistant. For the steps, refer to Assist.
AI in automations and scripts
With the AI Task integration, an automationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more] or a scriptA script is a saved list of steps that runs when you start it, for example, from a dashboard, with Assist, or from an automation. Unlike an automation, a script has no triggers, so it doesn’t start by itself. [Learn more] can send a single job to an AI model and use the result. There is no conversation, and an AI task can’t control your devices. Here are some examples from the documentation:
- Count the chickens in a coop from a camera image.
- Check a camera image for a delivery driver, and thank them.
- Write a funny reminder when the garage door is left open.
The Suggest button in the Home Assistant interface also uses an AI task. For example, when you save an automation, it suggests a name, a description, a category, and labels. To choose which AI task it uses, refer to Choosing the preferred AI task entities.
Your automations can also send text to a conversation agent. For an example, refer to the Daily summary by Assist tutorial.
Help with configuring and fixing Home Assistant
With the Home Assistant set of AI tools, a conversation agent or an AI app can look into Home Assistant itself. It can read your logs, the status of your integrations, and your automations. It can also change settings. For example, it can organize your areas and devices, or set up the Energy dashboard. Only administrators can use this set.
For what you can ask, and the steps, refer to Configuring Home Assistant with AI. To find a problem with AI, refer to Troubleshooting with AI.
Home Assistant in AI apps
You might already use an AI appThird-party software that connects to Home Assistant through the Model Context Protocol integration. An AI app can use the AI tools that you allow. [Learn more], such as Claude or ChatGPT, on your phone or computer. With the Model Context Protocol integration, that AI app can use Home Assistant. The AI app connects to Home Assistant and can use the AI toolsA function that conversation agents and AI apps can use to read information, control entities, or manage Home Assistant. AI tools are grouped into sets. Each set provides different functionality. Some sets only work for administrators. [Learn more] that you allow. Unless you change the settings, it can use all sets of AI tools.
This is useful in the following situations:
- You want to talk to your home in the AI app that you already use. For example, ask “Is the garage door closed?” in the app.
- You want help to configure Home Assistant in a longer conversation. For details, refer to Configuring Home Assistant with AI.
You need an AI app that supports MCP servers. Refer to the Prerequisites of the Model Context Protocol integration. To set up your AI app, refer to Client configuration.
AI tools from other apps
Your AI conversation agent in Assist can also work with other apps that you use. For example, it can search your notes in a note-taking app, or add a task to your project tracker. The other app doesn’t need AI. It offers MCP tools, such as “search notes”, through an MCP server. The Model Context Protocol Client integration connects Home Assistant to their MCP server and adds the MCP tools of that MCP server as a new set of AI tools. When you ask something, the AI model of your conversation agent decides which AI tools to use.
This is useful in the following situations:
- You want to ask Assist about information outside Home Assistant. For example, ask “What’s on my packing list?” when the list is in your notes.
- You want Assist to remember things between conversations. Some MCP servers store what you tell them.
- You want Assist to search the web in ways that Home Assistant can’t do on its own.
You need an AI conversation agent that can use AI tools, and an app with an MCP server. You don’t need an AI app. With a cloud provider, the results of the AI tools make each request larger, so they add to the cost. For a list of example MCP servers, and what else you need, refer to the Prerequisites of the Model Context Protocol Client integration. For the steps, refer to Using the MCP tools in a conversation agent.
Cloud services and local models
Conversation agents that use AI and AI tasks need an AI model.
A cloud service runs the model on the servers of a provider. You don’t need powerful hardware, but your requests go to the provider, and most providers charge for usage.
- Anthropic: Claude models.
- Google Gemini: Gemini models.
- OpenAI: OpenAI models.
- OpenRouter: Many models from different providers, billed by OpenRouter.
- OVHcloud AI Endpoints: Open-weight models that are hosted in Europe.
- LiteLLM: Many models through a LiteLLM proxy. Where your requests go depends on the models behind the proxy.
A local model runs on a computer in your own network, so your requests don’t leave your home. It needs a powerful computer. On a less powerful computer, answers are slow, and the model makes more mistakes.
- Ollama: Models that run on an Ollama server in your home
- llama.cpp: Self-hosted models on servers with an OpenAI-compatible API, such as llama.cpp or vLLM
Privacy, cost, and accuracy
A few considerations before you use AI:
- Privacy: With a cloud service, your AI provider receives what you say and the information about your home that the AI reads. With the Device control set of AI tools, an AI conversation agent only reaches the entities that you expose to voice assistants. The Home Assistant set of AI tools is the exception: it reaches everything.
- Cost: Most cloud providers charge for the amount of text that they process. The more entities you expose, the larger each request gets. An automation that uses AI every time it runs adds to the cost too. Check the pricing of your provider, and set usage limits if it offers them.
- Accuracy: AI can misunderstand a request or give a wrong answer. To keep common commands on your own hardware, turn on Prefer handling commands locally in your assistant. Then only the commands that the built-in conversation agent doesn’t understand go to AI.
AI documentation by topic
Information about using AI in Home Assistant is spread over several parts of the documentation, such as integrations, voice assistants, automations, and troubleshooting. This section lists these pages, grouped by topic.
AI integrations and tools
- AI integrations: List of integrations that add AI models.
- LLM integration: List of the AI tools that let a conversation agent or an AI app read and control Home Assistant, and how to set them up.
- AI Task: AI for a single job in automations, scripts, and the Suggest button.
- Model Context Protocol: Connecting AI apps to Home Assistant.
- Model Context Protocol Client: Connecting other apps to your AI conversation agent.
Voice and Assist
- Assist: How assistants and conversation agents work.
- Talking to Assist - Sentences starter pack: What the built-in conversation agent understands without AI.
- Exposing entities to voice assistants: What your assistant can see and control.
- Best practices with Assist: Exposing fewer entities, checking names, and letting AI run your scripts.
- Aliases: Names for entities, areas, and floors that are easy to say.
- Create a personality with AI
- Exposing scripts to conversation agents that use AI
- Adding a custom sentence to trigger an automation
- Troubleshooting Assist
Automations, scripts, and templates
- AI Task examples: Camera, weather, and notification examples.
- AI Task actions: Generate data, Generate image, Evaluate, and Clear images.
- Process conversation: Sending text to a conversation agent.
- Start conversation on satellite: Letting a voice satellite speak first.
- Sentence trigger: Checked before an AI conversation agent.
- Daily summary by Assist
- Debugging templates, Troubleshooting template errors, and Common template patterns.
- Testing automations: Traces that the AI tools can read.
- Troubleshooting automations
Setup, organization, and troubleshooting
- Configuring Home Assistant with AI
- Troubleshooting with AI
- Troubleshooting your configuration
- Organizing your home: Areas, floors, and labels.
- Home energy management: Setting up the Energy dashboard.
- Repairs
- Viewing and downloading logs
- Backups
- Action history: Which actions were performed, and by what.