Configuring Home Assistant with AI
AI can help you configure Home Assistant and organize your home. You ask in your own words, and the AI does the work in Home Assistant for you. For example, it can move your devices to the right areas, explain what an automation does, or add your solar panels to the Energy dashboard.
You can ask 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] with an AI 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], such as Claude or ChatGPT. Both use the Home Assistant set of 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]. Only administrators can use this set.
What you can ask AI to do
With the Home Assistant set of 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 agent or an AI app can help you in the following ways:
- Organize your home. It can create, rename, and delete areasAn area in Home Assistant is a logical grouping of devices and entities that represents a room or space in your home, such as the living room, kitchen, or garage. [Learn more], floors, and labels. It can also rename devicesA device is a model representing a physical or logical unit that contains entities. and entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more], move them to another area, and disable them.
- For example, ask “Which lights don’t have an area yet?” Then ask “Move the Ceiling light and the Spots to the Kitchen area.”
- Understand your automationsAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more] and scriptsA 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]. It can read their configuration, so it can explain what an automation does. It can’t create or edit them.
- For example, ask “What does the Good morning automation do?”
- Set up the Energy dashboard. It can read and change its settings. It can also find the statistics that fit each entry.
- For example, ask “Add my solar panels to the Energy dashboard.”
- Fix repair issues. It can list the issues that Home Assistant found. It can fix the issues that Home Assistant offers a fix for. If a fix needs your browser, for example to sign in to an account, you fix the issue yourself.
- For example, ask “Which repair issues are open, and which of them can you fix?”
- Add and set up integrationsIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more]. It can add an integration or a helper, and change the options of an integration that is set up. It can also set up devices that Home Assistant discovered.
- For example, ask “Create a light group with the Ceiling light and the Spots.”
- Change the information about your home. For example, it can change the name, the location, the time zone, and the unit system.
- Get help with templates and actions. It can explain a template or an action, suggest the right one for what you want, and help you fix a template. Test what it suggests before you use it. For example, test a template in the template editor under Settings > Tools > Template. For more help with templates, refer to Debugging templates.
To find a problem with AI, refer to Troubleshooting with AI. For every AI tool in the set, refer to List of Home Assistant AI tools.
Risk of sharing personal information with your AI provider
The conversation agent or AI app sends what it reads to its AI provider. With the Home Assistant AI tools, this can include detailed information about your home and your daily life. For example, it can include the location of your home, the names of your rooms and devices, who is home, and when your automations run. It can also include your logs and your energy use. The AI tool that reads your logs masks values that look like credentials, but it can’t recognize every secret.
To avoid this:
-
Only use the Home Assistant AI tools for the tasks where you want help. You can do most of these tasks yourself in the UI. Where you can, the List of Home Assistant AI tools says how.
-
Before you ask about your logs, check what they contain. For details, refer to Sensitive information in logs.
-
If you have a powerful computer, you can run a local AI model on it. Then this information doesn’t leave your network. For example, use a conversation agent from Ollama.
Risk of unintended changes
The Home Assistant AI tools change Home Assistant without asking you first. They can control every entity, not only the entities that you expose to voice assistants. If the AI misunderstands a request, it can turn off devices, run scripts, or change or delete settings that you didn’t intend to change. When it deletes an area, a floor, or a label, or changes an entity ID, your automations and scripts aren’t updated. Automations and scripts that use them can stop working.
To avoid this:
-
Before you ask AI to change things, create a backup.
-
Before you rename an entity, or delete an area, a floor, or a label, check which automations and scripts use it. For an entity, open its dialog, and select Menu
> Related. -
Use a separate assistant to configure Home Assistant. For everyday voice control, keep an assistant whose conversation agent only uses Device control. For the steps, refer to Setting up a separate assistant for the Home Assistant AI tools.
-
To try it without changing anything, use an AI app with Read-only turned on. A conversation agent always gets the entire set of AI tools, so you can’t limit it to reading.
-
After each change, check the result in Home Assistant.
Difference between using Assist with AI and an AI app
Both use the same Home Assistant set of 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], so they can help with the same tasks. They differ in where you ask, and in how they connect to Home Assistant:
- 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] with an AI 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]: You ask 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]. You need an AI integration that adds conversation agents. For example, OpenAI adds conversation agents. The Home Assistant AI tools only work when you’re signed in with an administrator account. So they don’t work on 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..
- 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]: You ask in an app such as Claude or ChatGPT, outside Home Assistant. It connects through the Model Context Protocol integration. You can make it read-only, so it can explain things but can’t change them.
Asking Assist with AI
You can ask 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] with an AI 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] 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]. For what you can ask, refer to What you can ask AI to do.
Prerequisites:
- An administrator account in Home Assistant.
- An assistant whose conversation agent uses the Home Assistant set of 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]. For the steps, refer to Setting up a separate assistant for the Home Assistant AI tools.
To ask Assist with AI:
- On a dashboard, in the top-right corner, select Assist
. - On a narrow screen, it’s under Menu
. On a computer, you can also press A.
- On a narrow screen, it’s under Menu
- At the top of the dialog, select the name of the assistant, and choose the assistant that uses the Home Assistant AI tools.
- Ask what you want to do, in your own words.
- For example, ask “Move the Ceiling light and the Spots to the Kitchen area.”
- Optional: To see what the conversation agent did, select Show details above the answer.
- Result: The details list the AI tools that the conversation agent used, with the result it got back.
- Check the result in Home Assistant.
- The conversation agent can be wrong. For example, after it moves a device, check the area of the device under Settings > Areas, labels & zones.
- To see which actions the conversation agent performed, go to Settings > Tools > Action history.
Asking an AI app
You can also ask 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]. For example, you can ask Claude, ChatGPT, Claude Code, Codex, or OpenCode. The AI app connects to Home Assistant through the Model Context Protocol integration. It then uses the same AI tools as a conversation agent. For what you can ask, refer to What you can ask AI to do.
Prerequisites:
- An administrator account in Home Assistant.
- An AI app that supports MCP servers.
- If the AI app runs in the cloud, for example when you use it through a website, your Home Assistant instance must be accessible from the internet. Use Home Assistant Link or another method of remote access.
To ask an AI app:
- Go to Settings > System > AI. If the Model Context Protocol card shows an Enable button, select it.
- Next to Main URL, select Configure
, and check that the AI app gets the Home Assistant set of AI tools. - When you enable the integration, the main URL includes it. If you set up the integration earlier, check that Expose all AI tools is turned on, or that Home Assistant is selected under AI tools.
- Optional: If you only want answers, turn on Read-only in the same dialog. For details, refer to Configuration options.
- Result: The AI app can still read your configuration, but it can’t change anything. For example, it can’t move devices or perform actions.
- Next to Main URL, select Copy URL
. Then add the URL to your AI app, and sign in with an administrator account. - For the steps, refer to Client configuration in the Model Context Protocol documentation.
- Use the Main URL. The individual URLs ignore the configuration options of the integration, including Read-only.
- In the AI app, ask what you want to do, in your own words.
- For example, ask “Create a label called Outdoor, and add it to the Fairy lights and the Floodlight.”
- Check the result in Home Assistant.
- The AI app can be wrong. For example, after it moves a device, check the area of the device under Settings > Areas, labels & zones.