New Tool Radar

Local AI

How to Use Ollama as the Brain of Your Home Assistant Voice Assistant

Give Home Assistant a local brain: expose Ollama on your network, add the Ollama integration, and pick a model that supports tools so Assist can control your devices.

Schematic diagram with three steps: expose Ollama on your network, add the Ollama integration in Home Assistant, and ask Assist about a device.

Home Assistant already knows how to run your home; what it cannot do on its own is understand a sentence like “is the back door unlocked and did I leave the garage light on”. Its Ollama integration connects Home Assistant to an Ollama server on a computer in your home, and adds conversation agents that use its models — so the model runs on your own hardware instead of in a cloud service. A conversation agent lets you talk to the model with Assist, Home Assistant’s voice assistant, by talking or typing in the web interface or the Companion app, or by talking through a voice satellite.

Set it up in three moves

Move What to do Detail from the docs
1. Run Ollama where Home Assistant can reach it Install the Ollama server on a computer in your network Ollama binds 127.0.0.1 port 11434 by default, so change the bind address with the OLLAMA_HOST environment variable — for example 0.0.0.0:11434 — or Home Assistant cannot reach it
2. Add the integration Go to Settings > Devices & services, select Add Integration, and choose Ollama Enter the URL of your Ollama server, such as http://192.168.1.10:11434; leave the API key empty if your server does not require authentication
3. Add a conversation agent On the Ollama integration page, select Add conversation agent The default model is qwen3:4b-instruct; only models that support tools can use AI tools, so pick a tool-capable model if you want device control

Then create an assistant under Settings > Voice assistants and set its conversation agent to the Ollama agent you just added. Under AI tools, select Device control if you want the assistant to control devices — but only after exposing entities to Assist, because Device control can only reach the entities you expose. Home Assistant’s docs are blunt about this: smaller models running on your own hardware are more likely to make mistakes, so only expose the entities you want the assistant to use. Two more defaults are worth knowing: the context window size defaults to 8192 tokens (minimum 2048), and it must cover your exposed entities as well as the conversation; and keep alive defaults to -1, which keeps the model in memory.

Try it: ask about one light

For a fictional example, expose a single entity — the kitchen light — to Assist, then open the Assist dialog, pick the assistant that uses your Ollama conversation agent, and ask “Is the kitchen light on?” Home Assistant’s own docs use exactly this question as the test: the assistant answers with the state of the entity. If it answers correctly, the whole chain works — Ollama reachable, model loaded, tools working, entity exposed. Expected result. We checked Home Assistant’s Ollama integration docs and Ollama’s FAQ. We did not install Home Assistant or connect it to Ollama.

Limits

This guide covers the Ollama brain only, not the voice pipeline itself — speech-to-text and text-to-speech are separate parts of the Assist setup. When you talk to the agent, Home Assistant checks your sentence triggers first, and a matching trigger answers before the conversation agent ever sees the sentence. Some smaller models chat worse when AI tools are selected, so Home Assistant’s docs suggest adding a second conversation agent for chatting, with all AI tool sets cleared. We did not test any voice command ourselves.

Sources

See all