Local voice control
See local Assist for a pipeline that does not require cloud AI.
AI Task lets an automation send a bounded task to an AI model and receive text or structured data in return. It can produce a short camera summary, a readable weather message, or a simple classification.
It is a building block rather than an AI service of its own. Another integration must provide the AI Task entity and the model that performs the work.
| Good use | Poor use |
|---|---|
| Write a short summary of non-critical data | Replace a smoke, gas, or leak sensor |
| Describe a door camera for a notification | Identify a person and unlock the door |
| Sort text into a few categories | Make an irreversible decision |
| Produce a friendly status message | Treat free text as an accurate measurement |
| Extract controlled structured fields | Send the entire home’s history without need |
Use normal Home Assistant sensors and conditions for safety logic. Let AI Task word or enrich information where an error cannot trigger a dangerous action.
Trigger → bounded input → AI Task entity → response → validation → notification or displayAI Task can provide:
Capabilities vary between providers and models. Check the actual integration feature list rather than assuming every entity can process images or return the same structure.
| Choice | Advantage | Cost |
|---|---|---|
| Local model through a supported integration | Data may remain on your network | Requires hardware, model operations, and often more latency |
| Cloud model | Easy access and often strong image understanding | Data leaves the home and API use may cost money |
A local Home Assistant installation does not make the AI task local. When the model runs at a provider, instructions and attachments are sent under that provider’s terms.
Choose a compatible AI integration
Read Home Assistant’s documentation for the provider. Confirm it offers an AI Task entity rather than only a conversation agent.
Add the integration from the UI
Go to Settings → Devices & services → Add integration. Follow the setup flow and keep API keys in Home Assistant’s credential storage, not in automation descriptions or YAML examples.
Create the AI Task sub-entry
Open the integration and add the AI Task configuration it provides. Choose a model with the needed features and a sensible usage limit.
Select the preferred AI Task
Go to Settings → System → AI tasks and choose the preferred entity. This makes actions and shared blueprints easier to reuse.
Begin with a text test
Run ai_task.generate_data from the developer tools or a temporary test
automation. Use non-sensitive input and ask for a short, checkable answer.
Use existing temperature and humidity sensors as facts. AI Task should only write the message.
Morning indoor climate.The instruction might say:
Use only the values below. Write no more than three neutral sentences. Living room temperature: 21.2 °C. Humidity: 46%. Outdoor temperature: 12 °C.
The sensors remain the source of truth. If the AI task fails, the automation should stop or send a normal fallback message containing the raw values.
A supported AI Task entity can accept a camera image as an attachment. A cautious door camera flow looks like this:
A description such as “a person is standing at the door with a parcel” may be useful, but it may be wrong. Keep the original image available for checking.
Structured output is safer than free text when the next step expects specific fields. Define only what you need:
| Field | Type | Example |
|---|---|---|
short_summary | Text | “Parcel at the front door” |
activity | Choice | none, person, animal, unknown |
uncertainty | Text | “Subject partly obscured” |
Always validate:
Before enabling a repeated task:
A camera task every minute may be expensive and intrusive. Trigger it from a specific event and add a cooldown when several events can arrive close together.
Test at least:
Inspect the automation trace, provider usage, and the message the user actually receives.
It is a building block. First add an AI provider that explicitly supplies an AI Task entity, then create its sub-entry.
Check the entity’s supported features and the chosen model. Do not switch models blindly; test one non-sensitive file first.
Shorten the instruction, reduce the input, and check provider response limits. Never place the API key in debug output.
Tighten the instruction and use structured output. If identical input must produce the same critical decision every time, AI Task is probably the wrong tool.
Local voice control
See local Assist for a pipeline that does not require cloud AI.
AI security
Read security and permissions.
SmartBolig // AI Core
Get help with troubleshooting, architecture and concrete configuration. I use broad AI knowledge and find SmartBolig guides when they improve the answer.
Start with a useful question