LLM
The LLM integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides 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] in Home Assistant. An AI tool is a function that conversation agentsSoftware 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] and AI appsThird-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] can use to read information, control 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], or manage Home Assistant. For example, with AI tools, a conversation agent can tell you the temperature in the living room, turn on your lights, or reload an integration that failed to set up.
The AI tools are grouped into sets. You choose which sets each conversation agent can use, in its AI tools option. AI apps outside Home Assistant can use the same sets through the Model Context Protocol integration. For what you can ask AI to do with these tools, refer to Configuring Home Assistant with AI.
The LLM integration is an internal system integration. It loads as part of the default configuration. Every AI integration that adds a conversation agent loads it too. You can’t add or remove it, and it has no options.
Sets of AI tools
Each set contains related 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]. Home Assistant has two built-in sets:
- Device control: Reads and controls the 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] you expose to voice assistants. For example, it can check the bedroom temperature or turn off the kitchen light. Any user can use it.
- Home Assistant: Looks into and manages Home Assistant itself. For example, it can read the logs, look up past sensor values, or reload an integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] that failed to set up. It can reach all of Home Assistant, not only exposed entities. Only administrators can use it.
On this page, the tools in the Home Assistant set are called the Home Assistant AI tools.
Integrations can add more sets. For example, KNX adds a KNX set, and the Model Context Protocol Client adds a set for each server that you connect.
You choose the sets in the AI tools option of each 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]. For example, Anthropic, Google Gemini, Ollama, and OpenAI have this option. A new conversation agent starts with Device control only. In Ollama, it starts with no sets.
Risk of unintended device actions
The Home Assistant set of AI tools can control every entity and change Home Assistant itself. It doesn’t ask you before it acts. It also isn’t limited to the entities that you expose to voice assistants. If the conversation agent misunderstands a request, it can turn off devicesA device is a model representing a physical or logical unit that contains entities. or change settings that you didn’t intend to change.
To avoid this:
-
Only select the Home Assistant set for a conversation agent that you use to manage Home Assistant.
-
For everyday voice control, use a separate assistantA configuration of Assist with its own name, language, and conversation agent. An assistant can also use speech-to-text to understand spoken commands and text-to-speech to reply out loud. whose conversation agent only uses Device control. For the steps, refer to Setting up a separate assistant for the Home Assistant AI tools.
What the Home Assistant AI tools can do
The Home Assistant 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] can read the state of every entity, the status of your integrationsIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more], your logs, and the history of your sensors. They can also read the configuration of your automations, scripts, scenes, and blueprints, and the traces of your automations and scripts. For the full list, refer to List of Home Assistant AI tools.
Many of the Home Assistant AI tools only read. The AI tools that change things can do the following:
- Perform any actionAn action makes Home Assistant do something, for example, turn on a light, send a notification, or activate a scene. Automations and scripts run a list of actions. [Learn more] in Home Assistant, on any entity, device, or area. This includes entities that you didn’t expose. For example, they can turn off a light, run a script, or restart Home Assistant.
- Add and reload integrations and helpers. They can also change the options and the connection settings of an integration that is set up. In addition, they can add a service to an integration. For example, they can add a conversation agent to OpenAI.
- Change the information about your home. For example, they can change the name, the location, the time zone, the unit system, and the Home Assistant URLs.
- Fix repair issues, when Home Assistant offers a fix for them.
- Create, change, 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.
- Change the settings of 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]. For example, they can rename, disable, or move a device or an entity to another area. They can also change the entity ID.
- Remove entities that their integration no longer provides.
- Change the settings of the Energy dashboard. For example, they can add a solar panel or remove a gas meter.
Each entry in List of Home Assistant AI tools says if the AI tool only reads or changes things.
Risk of automations that stop working
When an AI tool deletes an area, a floor, or a label, or changes an entity ID, your automations and scripts aren’t updated. Automations, scripts, and voice commands that use them as a target stop working.
To avoid this:
-
Before you ask the conversation agent to reorganize your home, create a backup.
-
Afterwards, update the automations and scripts that used the deleted area, floor, or label, or the old entity ID.
Who can use the Home Assistant AI tools
Only administrators can use the Home Assistant 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]. Home Assistant checks the user account that each request comes from. When you talk to 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] in 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] in Home Assistant or in 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], the request comes from the user account that is signed in.
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. isn’t signed in to a user account. For example, Home Assistant Voice Preview Edition is a voice satellite. Its requests don’t belong to any user. If its conversation agent has the Home Assistant set selected, every request from the voice satellite fails. This also stops Device control on that conversation agent. This means the voice satellite can’t turn on a light either. Requests from users who aren’t administrators fail the same way.
Adding the Home Assistant AI tools to your conversation agent
Use this procedure if only administrators use your 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]. Afterwards, you can ask it why an integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] isn’t working, or which errors are in the logs. The conversation agent then no longer works for voice satellitesA 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. or for users who aren’t administrators. For details, refer to Who can use the Home Assistant AI tools.
Prerequisites:
- An administrator account in Home Assistant.
- A conversation agent from an AI integration. For example, OpenAI adds conversation agents.
To add the Home Assistant 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] to your conversation agent:
- Go to Settings > Devices & services, and select your AI integration.
- For example, select OpenAI.
- In the row of the conversation agent, select Reconfigure conversation agent
. - The right row shows Conversation agent under the name. For example, OpenAI calls it OpenAI Conversation.
- Don’t use the rows below it. They show its devices.
- Some integrations call this button Configure.
- Under AI tools, select Home Assistant.
- To keep controlling your devices, leave Device control selected.
- Select Submit. If the dialog shows more options, select Submit again.
- Result: The conversation agent can use the Home Assistant AI tools the next time you talk to it.
Setting up a separate assistant for the Home Assistant AI tools
Use this procedure if voice satellitesA 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. or users who aren’t administrators use your assistantA configuration of Assist with its own name, language, and conversation agent. An assistant can also use speech-to-text to understand spoken commands and text-to-speech to reply out loud.. Your current assistant stays as it is for them. You get a second assistant that you can ask why an integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] isn’t working. For details, refer to Who can use the Home Assistant AI tools.
Prerequisites:
- An administrator account in Home Assistant.
- An AI integration that adds conversation agents. For example, OpenAI adds them.
To set up a separate assistant for the Home Assistant AI tools:
- Go to Settings > Devices & services, and select your AI integration.
- For example, select OpenAI.
- Select Add conversation agent.
- Under Name, enter a name for the new conversation agent.
- For example, enter
Home Assistant helper.
- For example, enter
- Under AI tools, select Home Assistant.
- To also control your devices with it, leave Device control selected.
- Select Submit. If the dialog shows more options, select Submit again.
- Go to Settings > Voice assistants, and select Add assistant.
- Enter a name for the assistant. Under Conversation agent, select the conversation agent that you just added.
- Select Create.
- To use the new assistant, open the Assist dialog. At the top, select the name of the current assistant, and then select the new assistant.
- Result: The new assistant can use the Home Assistant AI tools in the Assist dialog of Home Assistant and 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]. This works when you’re signed in with an administrator account.
Supported functionality
List of Home Assistant AI tools
You don’t call these tools yourself. When you ask the 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] something, it decides which tools to call. You can’t select single tools. You give the conversation agent the entire set, as described in Adding the Home Assistant AI tools to your conversation agent.
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] contains the AI tools in the following sections. Each entry starts with the title of the tool, followed by its ID. The 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] dialog shows the ID under Show details. Many tools do something that you can also do yourself in the UI, without a conversation agent. Where you can, the entry says how. For example, you can check what the conversation agent tells you.
General AI tools
-
Search Home Assistant (
search__search): Finds entities, devices, areas, floors, labels, automations, scripts, and scenes by name. It can also find disabled entities and devices. Only reads.- To do this yourself: Use the quick search.
-
Render template (
homeassistant__render_template): Renders a template and returns the result. Templates can read the state and attributes of all 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]. Only reads.- To do this yourself: Use the Template tab, under Settings > Tools > Template.
-
Get date and time (
llm__GetDateTime): Returns the current date and time. Both built-in sets of AI tools, Device control and Home Assistant, have this tool. Only reads. -
Search actions (
homeassistant__search_actions): Finds the actionsAn action makes Home Assistant do something, for example, turn on a light, send a notification, or activate a scene. Automations and scripts run a list of actions. [Learn more] that Home Assistant can perform, with their targets and fields. Only reads.- To do this yourself: Use the Actions tab, under Settings > Tools > Actions.
-
Call action (
homeassistant__call_action): Performs an action, and returns its response if it has one. Changes things.- To do this yourself: Use the Actions tab, under Settings > Tools > Actions.
- To see which actions the conversation agent performed: Go to Settings > Tools > Action history.
Integration AI tools
-
Search available integrations (
config__search_integrations): Searches the integrations and helpers that you can set up from the UI, including ones that you haven’t added yet. It can filter by category. For example, it can list only helpers. Only reads.- To do this yourself: Select Add integration, under Settings > Devices & services.
-
Get config entries (
config__get_config_entries): Lists the integrationsIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] and helpers that are set up, with their status, such as loaded or failed to set up, and the reason for an error. It can filter by integration and by status. Some integrations add more than one service. Each service has its own button on the integration page. For example, OpenAI has Add conversation agent. For these integrations, it also lists the services that you added. Only reads.- To do this yourself: Go to Settings > Devices & services.
-
Reload config entry (
config__reload_config_entry): Reloads an integration that is set up. For example, it helps after a temporary connection error. Changes things.- To do this yourself: On the integration page, under Settings > Devices & services, select Menu
> Reload on the integration entry.
- To do this yourself: On the integration page, under Settings > Devices & services, select Menu
-
Get config flows in progress (
config__get_flows_in_progress): Lists the flows that Home Assistant started by itself and that are waiting for you. For example, it lists devices that Home Assistant discovered, and integrations that ask you to sign in again. Only reads.- To do this yourself: Go to Settings > Devices & services. Discovered devices and integrations that need your attention are shown at the top.
-
Start configuration flow (
config__start_flow): Starts to add an integration or a helper. It can also start to change the options of an integration that is set up, or its connection settings. For example, connection settings are a host name or a password. It can also add a service to an integration. For example, it can add a conversation agent to OpenAI. It can also change the settings of a service that you added. Changes things.- To do this yourself: Under Settings > Devices & services, select Add integration. To change an integration that is set up, open the integration page. To change the options, select Configure on the integration entry. To change the connection settings, select Menu
> Reconfigure.
- To do this yourself: Under Settings > Devices & services, select Add integration. To change an integration that is set up, open the integration page. To change the options, select Configure on the integration entry. To change the connection settings, select Menu
-
Configure flow step (
config__configure_flow): Goes through the steps of a flow that Start configuration flow started, or of a flow that Get config flows in progress found. It fills in the fields of each step and selects options in menus. It can also cancel the flow. Changes things.- To do this yourself: Fill in the dialog that opens when you add or change an integration.
Area, floor, and label AI tools
To find an area, a floor, or a label, the conversation agent first uses Search Home Assistant.
-
Get area settings (
config__get_area_settings): Returns the settings of an areaAn 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]. These are the name, the aliases, the floor, the icon, the labels, and the sensors that show the temperature and humidity of the area. Only reads.- To do this yourself: Refer to Editing an area.
-
Create area (
config__create_area): Creates an area, with the same settings that Get area settings returns. Changes things.- To do this yourself: Refer to Creating an area.
-
Update area settings (
config__update_area_settings): Changes the settings of an area. It only changes the settings it’s asked to change. Changes things.- To do this yourself: Refer to Editing an area.
-
Delete area (
config__delete_area): Deletes an area. Its devices and entities stay, without an area. Changes things.- To do this yourself: Refer to Deleting an area.
-
Get floor settings (
config__get_floor_settings): Returns the settings of a floor. These are the name, the aliases, the icon, and the level. The level is the number of the floor. For example,0is the ground floor, and-1is the floor below it. If the floor has no icon, the level sets its default icon. Only reads.- To do this yourself: Go to Settings > Areas, labels & zones. Next to the floor, select Menu
> Edit floor.
- To do this yourself: Go to Settings > Areas, labels & zones. Next to the floor, select Menu
-
Create floor (
config__create_floor): Creates a floor, with the same settings that Get floor settings returns. Changes things.- To do this yourself: Refer to Creating a floor.
-
Update floor settings (
config__update_floor_settings): Changes the settings of a floor. It only changes the settings it’s asked to change. Changes things.- To do this yourself: Go to Settings > Areas, labels & zones. Next to the floor, select Menu
> Edit floor.
- To do this yourself: Go to Settings > Areas, labels & zones. Next to the floor, select Menu
-
Delete floor (
config__delete_floor): Deletes a floor. Its areas stay, without a floor. Changes things.- To do this yourself: Refer to Deleting a floor.
-
Get label settings (
config__get_label_settings): Returns the settings of a label. These are the name, the color, the icon, and the description. Only reads.- To do this yourself: Go to Settings > Areas, labels & zones > Labels. The list shows your labels. For each label, it shows its color, icon, and description.
-
Create label (
config__create_label): Creates a label, with the same settings that Get label settings returns. Changes things.- To do this yourself: Refer to Creating a label.
-
Update label settings (
config__update_label_settings): Changes the settings of a label. It only changes the settings it’s asked to change. Changes things.- To do this yourself: Go to Settings > Areas, labels & zones > Labels, and select the label.
-
Delete label (
config__delete_label): Deletes a label. The label is removed from everything that has it. Changes things.- To do this yourself: Refer to Deleting a label.
Device and entity AI tools
To find a device or an entity, the conversation agent first uses Search Home Assistant.
-
Get device settings (
config__get_device_settings): Returns the settings of a deviceA device is a model representing a physical or logical unit that contains entities.. These are the name from the integration, the name that you gave it, the area, the labels, and whether the device is disabled. It also returns the manufacturer and the model. A child device has no manufacturer and model. For a child device, it also returns the ID of its parent device. Only reads.- To do this yourself: Go to Settings > Devices & services > Devices, and select the device.
-
Update device settings (
config__update_device_settings): Changes the name, the area, and the labels of a device. It can also disable or enable the device. A disabled device also disables its entities. It only changes the settings it’s asked to change. Changes things.- To do this yourself: Refer to Renaming a device and Assigning a device or entity to an area.
-
Get entity settings (
config__get_entity_settings): Returns the settings of an entityAn 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]. These include the name, the icon, the area, the device class, the aliases, and the labels. They also show whether the entity is hidden or disabled. For a sensor, it also returns the unit and the number of decimals. Only reads.- To do this yourself: Go to Settings > Devices & services > Entities, select the entity, and then select Settings
.
- To do this yourself: Go to Settings > Devices & services > Entities, select the entity, and then select Settings
-
Update entity settings (
config__update_entity_settings): Changes the name, the icon, the area, the device class, the aliases, and the labels of an entity. It can also hide or show, and disable or enable the entity. It can also change the entity ID. For a sensor, it can change the unit and the number of decimals. It only changes the settings it’s asked to change. Changes things.- If it changes the entity ID, automations and scripts that use the old entity ID aren’t updated.
- If it enables an entity, Home Assistant reloads the integration to add the entity. Some integrations need a restart of Home Assistant instead.
- To do this yourself: Refer to Changing the attributes of an entity.
-
Remove entity (
config__remove_entity): Removes an entity that its integration no longer provides. For example, the entity of a device that you removed. It can’t remove an entity that the integration still provides. Changes things.- To do this yourself: Under Settings > Devices & services > Entities, select the entity, and then select Settings
> Delete.
- To do this yourself: Under Settings > Devices & services > Entities, select the entity, and then select Settings
Automation, script, scene, blueprint, and trace AI tools
These AI tools only read data. They can’t change, run, or turn on or off your automations, scripts, and scenes.
-
List automations (
automation__list_automations): Lists your automationsAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more], sorted by name. For each automation, it returns whether it’s on or off, when it last triggered, and its description, area, category, and labels. An automation with an error in its configuration is unavailable. Only reads.- To do this yourself: Go to Settings > Automations & scenes. The list shows your automations. For each automation, it shows when it last triggered and whether it’s on or off.
-
Get automation configuration (
automation__get_config): Returns the triggers, conditions, and actions of an automation. If the automation uses a blueprint, it returns which blueprint it uses and the inputs that you entered instead. To read the blueprint itself, the conversation agent uses Get blueprint. Only reads.- To do this yourself: Refer to Editing an automation in YAML.
-
List scripts (
script__list_scripts): Lists your 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], sorted by name. For each script, it returns whether it’s running, when it last ran, and its description, area, category, and labels. A script with an error in its configuration is unavailable. Only reads.- To do this yourself: Go to Settings > Automations & scenes > Scripts. The list shows your scripts.
-
Get script configuration (
script__get_config): Returns the fields and the actions of a script. If the script uses a blueprint, it returns which blueprint it uses and the inputs that you entered instead. Only reads.- To do this yourself: Go to Settings > Automations & scenes > Scripts, and open the script. Then, select Menu
> Edit in YAML.
- To do this yourself: Go to Settings > Automations & scenes > Scripts, and open the script. Then, select Menu
-
List scenes (
scene__list_scenes): Lists your scenesScenes capture the states you want certain entities to be. For example, a scene can specify that light A should be turned on and light B should be bright red. [Learn more], sorted by name. For each scene, it returns when it was last activated, and its area, category, and labels. Only reads.- To do this yourself: Go to Settings > Automations & scenes > Scenes. The list shows your scenes. For each scene, it shows when it was last activated.
-
Get scene configuration (
scene__get_config): Returns the state and the attributes that a scene sets on each entity. It only works for scenes that you created in Home Assistant, not for scenes that come from an integration. Only reads.- To do this yourself: Refer to Editing a scene in the YAML editor.
-
List blueprints (
blueprint__list_blueprints): Lists your blueprints, sorted by type and name. For each blueprint, it returns its type, such as automation or script, and its file path. The conversation agent uses both with Get blueprint. If the blueprint has them, it also returns its description, its author, and the address that you imported it from. For a blueprint that failed to load, it returns the error. Only reads.- To do this yourself: Go to Settings > Automations & scenes > Blueprints. The list shows your blueprints. For each blueprint, it shows its type and file name.
-
Get blueprint (
blueprint__get_blueprint): Returns the YAML of a blueprint. This includes its inputs, and the triggers, conditions, and actions that use them. Only reads. -
List traces (
trace__list_traces): Lists the stored traces of an automation or a script, newest first. For each trace, it returns when the run started and finished, how it ended, what triggered it, and any error. By default, Home Assistant keeps the last 5 traces. Only reads.- Some triggers also store a trace when they notice a change but don’t start the automation. In the UI, these traces are marked Did not trigger. The AI tool lists them too.
- An automation that you created in YAML needs an
idfor its traces to be stored. For details, refer to Traces of automations created in YAML. - To do this yourself: Refer to Viewing the traces of an automation.
-
Get trace (
trace__get_trace): Returns each step of one run of an automation or a script, in the order they ran. For each step, it returns the result, any error, and the variables that changed. This helps to find out why an automation didn’t do what you expected. Only reads.- To do this yourself: Refer to Viewing the traces of an automation.
System AI tools
-
Get system info (
system_health__get_system_info): Returns the installation type, the CPU architecture, the time zone, and the versions of Home Assistant Core, the frontend, Python, the operating system, and the Supervisor. For example, you can use it to fill in a bug report. Only reads.- To do this yourself: Under Settings > System > Repairs, select Menu
> System information.
- To do this yourself: Under Settings > System > Repairs, select Menu
-
Get installed apps (
hassio__get_apps): Lists your installed apps, with their version, whether an update is available, and whether they are running. It’s only available on Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users. and Home Assistant SupervisedThe Home Assistant Supervised installation type is a full UI managed home automation ecosystem that runs the Home Assistant Core program, the Home Assistant Supervisor and apps. It comes pre-installed on Home Assistant OS, but can be installed standalone on Debian Linux systems. It leverages Docker, which is managed by the Home Assistant Supervisor. The Home Assistant Supervised installation type is deprecated. installations. Only reads.- To do this yourself: Go to Settings > Apps.
-
Get core config (
config__get_core_config): Returns the information about your home. This includes the name, the location and elevation, the radius of the home zone, the time zone, the country, the currency, the language, and the unit system. It also returns the Home Assistant URLs. Only reads.- To do this yourself: Go to Settings > System > Home information. For the URLs, go to Settings > System > Network.
-
Update core config (
config__update_core_config): Changes the information about your home and the Home Assistant URLs. It only changes the settings it’s asked to change. If it changes the unit system, the units of your sensors change too. Units that you set yourself stay the same. Changes things.- To do this yourself: Go to Settings > System > Home information. For the URLs, go to Settings > System > Network.
-
Get repair issues (
repairs__get_issues): Lists the issues that Home Assistant found, with their severity. For example, an issue can be a broken automation or a device with a problem. It also includes issues that you ignored, and shows which issues Home Assistant can fix. Only reads.- To do this yourself: Go to Settings > System > Repairs.
-
Start repair fix flow (
repairs__start_fix_flow): Starts to fix a repair issue. It only works for issues that Home Assistant can fix. Get repair issues shows which ones these are. Changes things.- Some fixes have a step that needs your browser. For example, you sign in to an account. When a fix reaches such a step, the AI tool cancels the fix. Fix these issues yourself under Settings > System > Repairs.
-
Configure repair fix flow step (
repairs__configure_fix_flow): Goes through the steps of a fix that Start repair fix flow started. It fills in the fields of each step and selects options in menus. It can also cancel the fix. Changes things.- To do this yourself: Fill in the dialog that opens when you select the issue.
History and log AI tools
-
Search statistics (
history__search_statistics): Finds statistics by name, by the alias of the entity, or by ID. This includes statistics without an entity. It can filter by the type of unit, for example, energy or power. It can also filter by the type of statistic. For example, it can find only meters that count up, such as an energy meter, or only measurements, such as a temperature. For each statistic, it returns its ID, name, and unit. The conversation agent uses the ID with Get history or Update energy preferences. Only reads.- To do this yourself: Go to Settings > Tools > Statistics.
-
Get history (
history__get_history): Returns statistics, not individual state changes. For example, it can return the mean, minimum, and maximum temperature per 5 minutes or per hour. It works for entities with statistics, such as sensors with a state class. It also works for statistics that an integration adds without an entity. For example, the Opower integration adds the energy use from your utility this way. Only reads.- To do this yourself: Use the History panel.
-
Get system log entries (
system_log__get_entries): Returns recent errors and warnings from the system log. It doesn’t include info or debug messages. It can filter by level and by integration. Only reads.- To do this yourself: Go to Settings > System > Logs.
-
Get logs (
system_log__get_logsorhassio__get_logs): Reads the full logs in a time window. This includes info and debug messages, if Home Assistant logs them. Values that look like credentials are masked. Only reads.- On Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users. and Home Assistant SupervisedThe Home Assistant Supervised installation type is a full UI managed home automation ecosystem that runs the Home Assistant Core program, the Home Assistant Supervisor and apps. It comes pre-installed on Home Assistant OS, but can be installed standalone on Debian Linux systems. It leverages Docker, which is managed by the Home Assistant Supervisor. The Home Assistant Supervised installation type is deprecated. installations, the ID is
hassio__get_logs. It also reads the logs of the Supervisor, the operating system, the DNS, audio, and multicast plugins, and your apps. - On Home Assistant ContainerHome Assistant Container is a standalone container-based installation of Home Assistant Core. Any OCI compatible runtime can be used, but the documentation focus is on Docker. [Learn more] installations, and on other installations without the Supervisor, the ID is
system_log__get_logs. It only reads the Home Assistant log, and it needs the log file. - To do this yourself: Under Settings > System > Logs, select Menu
> Show raw logs.
- On Home Assistant Operating SystemHome Assistant OS, the Home Assistant Operating System, is an embedded, minimalistic, operating system designed to run the Home Assistant ecosystem on single board computers (like the Raspberry Pi) or Virtual Machines. It includes Home Assistant Core, the Home Assistant Supervisor, and supports apps. Home Assistant Supervisor keeps it up to date, removing the need for you to manage an operating system. Home Assistant Operating System is the recommended installation type for most users. and Home Assistant SupervisedThe Home Assistant Supervised installation type is a full UI managed home automation ecosystem that runs the Home Assistant Core program, the Home Assistant Supervisor and apps. It comes pre-installed on Home Assistant OS, but can be installed standalone on Debian Linux systems. It leverages Docker, which is managed by the Home Assistant Supervisor. The Home Assistant Supervised installation type is deprecated. installations, the ID is
Energy AI tools
-
Get energy preferences (
energy__get_preferences): Returns the settings of the Energy dashboard. These are your grid connections, solar panels, home batteries, and gas and water meters. They also include the meter of your home consumption, if you added one. It also returns the devices whose electricity, gas, or water use you track. Only reads.- To do this yourself: Go to Settings > Dashboards > Energy.
-
Update energy preferences (
energy__update_preferences): Changes the settings of the Energy dashboard. It replaces each list that it changes, such as the list of solar panels, with a new list. If the conversation agent leaves out an entry in that list, the entry is removed. Lists that it doesn’t change stay the same. Afterwards, it returns the new settings, and any issues that Home Assistant found with them. Changes things.- To do this yourself: Go to Settings > Dashboards > Energy.
List of Device control AI tools
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] in Device control depend on what you expose to voice assistants. Most AI tools only appear if you expose at least one entityAn 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] that they can control. For example, Set light only appears if you expose a light. The AI tools only reach the entities that you expose, unless the entry says otherwise. For how to expose entities, refer to Exposing entities to voice assistants.
General AI tools
Device control has the following AI tools, no matter which entities you expose. AI appsThird-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] get all of them except Schedule command.
-
Get live context (
homeassistant__GetLiveContext): Returns the current state of the entities that you expose. For example, it can check if a light is on, or what the temperature in the living room is. -
Get date and time (
llm__GetDateTime): Returns the current date and time. -
Turn on (
intent__HassTurnOn): Turns on, opens, or presses an entity. For a lock, it locks it. -
Turn off (
intent__HassTurnOff): Turns off or closes an entity. For a lock, it unlocks it. -
Cancel all timers (
intent__HassCancelAllTimers): Cancels all voice timers. It can also cancel only the voice timers in one area. -
Broadcast message (
assist_satellite__broadcast): Plays a message on your other voice satellitesA 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. that can play announcements. It also reaches voice satellites that you didn’t expose. It can play the message in one area or on one floor only. For example, you can say tell the kitchen that dinner is ready.- To learn which voice satellites get the message, refer to Broadcasting.
-
Schedule command (
intent__schedule_command): Runs a command after a delay. For example, you can say turn off the lights in the living room in 5 minutes. It also works where voice timers aren’t supported. For example, it works in the 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] dialog in Home Assistant.- When the delay ends, the 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] runs the command in a new conversation. It doesn’t remember the earlier conversation.
- Only conversation agents can use this tool. AI appsThird-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] can’t.
Voice timer AI tools
When you talk to 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. that supports voice timers, Device control also has the following AI tools. For example, Home Assistant Voice Preview Edition supports voice timers.
-
Start timer (
intent__HassStartTimer): Starts a voice timer. -
Cancel timer (
intent__HassCancelTimer): Cancels a voice timer. -
Add time to timer (
intent__HassIncreaseTimer): Adds time to a voice timer. -
Remove time from timer (
intent__HassDecreaseTimer): Removes time from a voice timer. -
Pause timer (
intent__HassPauseTimer): Pauses a voice timer. -
Resume timer (
intent__HassUnpauseTimer): Resumes a paused voice timer. -
Get timer status (
intent__HassTimerStatus): Returns how much time is left on your voice timers.
AI tools per entity type
When you expose at least one entity of the following types, Device control also has the AI tools for that type:
- Covers and valves:
-
Set position (
intent__HassSetPosition): Sets the position of a cover or valve. For example, it can open the blinds halfway. -
Stop moving (
intent__HassStopMoving): Stops a cover or valve that is moving.
-
Set position (
- Lights:
-
Set light (
light__HassLightSet): Sets the brightness, the color, or the color temperature of a light.
-
Set light (
- Climate devices:
-
Set temperature (
climate__HassClimateSetTemperature): Sets the target temperature.
-
Set temperature (
- Fans:
-
Set fan speed (
fan__HassFanSetSpeed): Sets the speed of a fan, in percent.
-
Set fan speed (
- Humidifiers:
-
Set humidity (
humidifier__HassHumidifierSetpoint): Sets the target humidity. -
Set humidifier mode (
humidifier__HassHumidifierMode): Sets the mode of a humidifier.
-
Set humidity (
- Media players:
-
Pause media (
media_player__HassMediaPause) and Resume media (media_player__HassMediaUnpause): Pause and resume playback. -
Next track (
media_player__HassMediaNext) and Previous track (media_player__HassMediaPrevious): Skip to the next item, or play the previous item again. -
Set volume (
media_player__HassSetVolume): Sets the volume, in percent. -
Change volume (
media_player__HassSetVolumeRelative): Turns the volume up or down. -
Mute player (
media_player__HassMediaPlayerMute) and Unmute player (media_player__HassMediaPlayerUnmute): Mute and unmute a media player. -
Search media (
media_player__search_media) and Play media (media_player__play_media): Search a media player for music or other media, and play the result. These AI tools only appear if one of the media players that you expose supports searching and playing media.
-
Pause media (
- Vacuums:
-
Start vacuum (
vacuum__HassVacuumStart): Starts a vacuum. -
Return vacuum to base (
vacuum__HassVacuumReturnToBase): Sends a vacuum back to its base. -
Clean area (
vacuum__HassVacuumCleanArea): Tells a vacuum to clean one area. This only works if you mapped the segments of your vacuum to areas. For the steps, refer to Mapping your vacuum areas to Home Assistant areas.
-
Start vacuum (
- Lawn mowers:
-
Start mowing (
lawn_mower__HassLawnMowerStartMowing): Starts a lawn mower. -
Dock lawn mower (
lawn_mower__HassLawnMowerDock): Sends a lawn mower back to its dock.
-
Start mowing (
- To-do lists:
-
Get to-do list items (
todo__get_items): Returns the items on a to-do list. By default, it only returns the items that aren’t completed. -
Add to-do list item (
todo__HassListAddItem): Adds an item to a to-do list. -
Complete to-do list item (
todo__HassListCompleteItem): Marks an item on a to-do list as completed. -
Remove to-do list item (
todo__HassListRemoveItem): Removes items from a to-do list.
-
Get to-do list items (
- Calendars:
-
Get calendar events (
calendar__get_events): Returns the events of a calendar for today or for the next 7 days.
-
Get calendar events (
AI tools from your scripts
Your own scripts can also become AI tools:
- Each 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] that you expose becomes its own AI tool. Its ID starts with
script__, followed by the script’s ID. The script can also control entities that you didn’t expose. For details, refer to Exposing scripts to conversation agents that use AI. - Each intent script becomes its own AI tool. Its ID starts with
intent_script__, followed by the intent name. In the ID, characters other than letters and numbers become underscores. If an intent script only works for some types of entities, it only appears if you expose an entity of that type.
Known limitations
Access to AI tools
- Only administrators can use the Home Assistant 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]. Requests without an administrator account fail. For example, requests from 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. fail, and so do requests from users who aren’t administrators. This also stops Device control on that 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], because the agent can’t prepare any of its sets of AI tools.
- The Home Assistant Link conversation agent of Home Assistant Link can’t use the Home Assistant AI tools. It always uses Device control.
Entity history
- Get history returns statistics, not individual state changes. 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] without statistics have no history for this tool. For example, a switch has no statistics, and neither does a sensor without a state class. For how statistics work, refer to Long-term statistics.
Logs and credentials
- In Home Assistant ContainerHome Assistant Container is a standalone container-based installation of Home Assistant Core. Any OCI compatible runtime can be used, but the documentation focus is on Docker. [Learn more] installations, and in other installations without the Supervisor, Get logs needs the Home Assistant log file. If Home Assistant doesn’t write a log file, this tool isn’t available. For example, the
HA_DISABLE_LOG_FILEenvironment variable turns off the log file. - Get logs masks values that look like credentials, such as tokens, passwords, and API keys. It can’t recognize every credential, so other secrets in your logs can still reach the AI provider.
Scheduled commands
- You can’t cancel, pause, or change a scheduled command.
- If Home Assistant restarts before the delay ends, the command doesn’t run.
- You don’t hear the result. If the command fails, Home Assistant writes a warning to the logs.
Troubleshooting
The conversation agent answers “Error preparing LLM API”
Symptom: “Error preparing LLM API”
When you talk to 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], it doesn’t do what you asked. Instead, it answers “Error preparing LLM API”.
Description
The conversation agent couldn’t prepare its sets 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]. This happens in the following situations:
- The conversation agent has the Home Assistant AI tools, and the request doesn’t come from an administrator. For example, it comes from 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., or from a user who isn’t an administrator. In this case, Device control doesn’t work on this conversation agent either.
- A set of AI tools that the conversation agent uses no longer exists. For example, you removed the integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] that added it.
Resolution
The Home Assistant AI tools only work for administrators. You can’t make them available to other users or to voice satellites. If a voice satellite or a user who isn’t an administrator uses this conversation agent, remove the Home Assistant AI tools from it:
- Go to Settings > Devices & services, and select your AI integration.
- In the row of the conversation agent, select Reconfigure conversation agent
. - In some integrations, this button is called Configure.
- Under AI tools, clear Home Assistant.
- To keep controlling your devices with this conversation agent, make sure Device control is selected.
- Select Submit. If the dialog shows more options, select Submit again.
- Result: The conversation agent controls your devices again, for everyone who uses it.
To keep using the Home Assistant AI tools yourself, set up a separate assistant for them. For the steps, refer to Setting up a separate assistant for the Home Assistant AI tools.
If you removed the integration that added a set of AI tools, open the settings of the conversation agent, as described in steps 1 and 2 above. Then, select Submit. If the dialog shows more options, select Submit again. The settings only show the sets of AI tools that still exist, so saving them removes the missing set.
Get history: “No statistics are recorded for this ID”
Symptom: The conversation agent can’t tell you the past values of an entity
You ask the 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] about the past values of an entityAn 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], and it can’t answer. Under Show details in the 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] dialog, the result of history__get_history says “No statistics are recorded for this ID.”
Description
Get history only reads statistics, not individual state changes. An entity only has statistics if it measures something over time, such as a temperature sensor or an energy meter. Other entities have no statistics. For example, a switch has none. For how statistics work, refer to Long-term statistics.
Resolution
- To see the past states of the entity yourself, use the History panel.
- If the entity is a sensor that should have statistics, check for an issue under Settings > Tools > Statistics. For how to fix it, refer to Fixing a statistics issue.