This post may contain affiliate links. As an Amazon Associate we earn from qualifying purchases. Disclosure.

TL;DR

Running a local AI model inside Home Assistant means your bedroom light queries never leave your house. Ollama on an N100-class mini PC is the usual entry point, and the setup is shorter than most guides make it look.

Home Assistant has shipped an Ollama integration since release 2024.4, and it has grown from a chat toy into a real conversation agent: it can control exposed devices, feed AI tasks in automations, and sit inside a fully local voice pipeline. This guide is built from the Home Assistant and Ollama documentation plus published benchmarks, so every number below has a source you can check.

TL;DR: Run Ollama on an N100-class mini PC with 16GB of RAM, add the built-in Ollama integration in Home Assistant, and pick a tool-capable model such as qwen3:4b-instruct (the integration's default) or llama3.2:3b. You get notification summaries, device status questions, and offline voice control without sending data to the cloud. A published N100 test measured about 11 tokens per second on llama3.2:3b.

Home Assistant setup guide

What Hardware Do You Actually Need?

Local inference has real hardware requirements, and this is where most guides go vague. Ollama doesn't publish official speed tables, so the useful numbers come from third-party tests. DFRobot benchmarked its LattePanda Mu board (Intel N100, 8GB of RAM) with Ollama on CPU alone: llama3.2:1b ran at 18 tokens per second, llama3.2:3b at 11.18, and llama3.1:8b at 3.18 (DigiKey Maker.io). That's the whole story in three numbers. A 3B model is usable on an N100; an 8B model isn't.

An N100 mini PC with 16GB of RAM is the realistic minimum for CPU-only inference. Don't trust old price lists, though. In November 2026 one price tracker listed a Beelink Mini S12 Pro (N100, 16GB, 500GB) at $339, so check current pricing before you budget.

If you want faster responses, a graphics card with enough VRAM to hold the whole model changes the experience completely. But do most home automation tasks need it? You're not writing novels, you're asking about a garage door or summarizing five notifications.

A Raspberry Pi technically runs the smallest models. Don't bother for voice. Home Assistant's own docs say Whisper alone needs about 8 seconds per command on a Pi 4, before the language model has produced a single word.

A laptop on a desk lit only by its own screen during an install

How Do You Install Ollama for Home Assistant?

Ollama isn't in the official app store (add-ons have been called apps since Home Assistant 2026.2). The Home Assistant docs describe one supported layout: install the Ollama server on a computer on your network and point the integration at it. Here's the fastest path.

Install the Ollama Server

Download Ollama for Linux, macOS, or Windows from ollama.com and install it on the mini PC. By default Ollama binds to 127.0.0.1 on port 11434, so Home Assistant on another machine can't reach it. Per the Ollama FAQ, you change the bind address with the OLLAMA_HOST environment variable (set it to 0.0.0.0), then restart Ollama.

Running Home Assistant OS on the same box? There's a community app that wraps the official Ollama Docker image for amd64 and aarch64: add the repository below to the app store under Settings > Apps, install "Ollama", and point the integration at the hostname from its README (76e18fb5-ollama, port 11434). It's a third-party project, not an official app, and its README calls NVIDIA GPU support experimental.

https://github.com/SirUli/homeassistant-ollama-addon

Pull Your First Model

You don't have to open a terminal at all. When you pick a model in the Home Assistant integration that isn't on the server yet, Home Assistant downloads it and shows a "Downloading model" screen. If you'd rather pull by hand:

ollama pull llama3.2:3b

For a smaller, faster option on weak hardware:

ollama pull qwen2.5:1.5b

The llama3.2:3b model is a 2.0GB download. qwen2.5:1.5b is 986MB, qwen2.5:3b is 1.9GB, and qwen3:4b-instruct, the model the integration suggests by default, is 2.5GB. All of them fit on a system with 8GB of RAM. One trap: there's no llama3.2:7b tag. Llama 3.2 ships in 1b and 3b sizes only, so the next step up is a different family, such as qwen2.5:7b at 4.7GB.

Community integrations no longer need a separate HACS install either: since Home Assistant 2026.11, HACS is built in as the Marketplace under Settings > Marketplace. You don't need it for Ollama, but it's where the extras live: HACS integrations

How Do You Connect Ollama to Home Assistant?

The Ollama integration arrived in Home Assistant 2024.4. Release 2024.6 let LLM agents control the home, starting with OpenAI and Google, and Ollama gained the same ability afterward. AI Task, the building block introduced in 2025.7, lets automations call a model for a single job, and the Ollama integration provides AI task entities for it. Here's how to wire it up.

Configure the Integration

Go to Settings > Devices & services > Add Integration and search for Ollama. Enter your Ollama server URL, for example http://192.168.1.10:11434, and leave the API key empty unless your server uses authentication.

Setup alone doesn't create anything you can talk to. Open the Ollama entry and choose Add conversation agent (or Add AI task), then select a model. To let the agent switch things on and off, enable Device control under AI tools; the docs are explicit that only models that support tools can use it. llama3.2, qwen2.5, and qwen3 all carry the tools tag in the Ollama library.

Last step: under Settings > Voice assistants, add an assistant and pick your Ollama agent as its conversation agent. Leave "Prefer handling commands locally" on. With it enabled, Home Assistant's built-in agent answers the simple commands instantly and only the ones it doesn't understand go to the model.

Write a Good System Prompt

The Instructions field is a Home Assistant template, and it's worth tightening. A focused prompt along these lines works as a starting point:

You are a smart home assistant. Answer questions about device status concisely. When asked to create an automation, describe it in plain English only, no YAML.

Keep it short. On CPU hardware every token of instructions and entity data is processed before the first word of the answer appears.

Expose fewer entities, too. The Home Assistant docs warn that local models are smaller and more error-prone than cloud ones and recommend exposing only what the assistant needs. Tell the model explicitly not to output YAML: small models tend to invent fewer entity names when they only have to pick from a list you supply.

How Do You Set Up Offline Voice Control With Wyoming?

Wyoming is Home Assistant's protocol for local voice processing. It connects three components: a wake word detector, a speech-to-text engine, and a text-to-speech engine.

Install these apps from the official store under Settings > Apps:

  • openWakeWord, handles wake words such as "Okay Nabu" or "Hey Jarvis"
  • Whisper, converts speech to text using OpenAI's Whisper model (running locally)
  • Piper, converts text responses back to speech

The Whisper app offers models from tiny up to large-v3, plus an auto setting. Smaller is faster and less accurate. Home Assistant's docs quote about 8 seconds per command on a Raspberry Pi 4 and under a second on an Intel NUC. If you mostly say "turn off the kitchen light", look at Speech-to-Phrase instead: it only understands a fixed set of home control sentences, which rules it out for open-ended LLM questions, but it responds in under a second on a Pi 4.

Piper's default voice in the official app is en_US-lessac-medium, and the voice list in the app configuration runs to dozens of languages.

Once the apps are running, the Wyoming integration discovers them under Settings > Devices & services. Then go to Settings > Voice assistants, create a new assistant, select your Ollama conversation agent, Whisper as speech-to-text, and Piper as text-to-speech.

The Wyoming pipeline's real advantage isn't just privacy, it's that it keeps working when your internet is down. When the ISP goes down, cloud voice assistants are useless, while a local pipeline keeps handling commands. That reliability argument is underrated in most comparison articles.

Home Assistant architecture overview

A wide monitor showing output in a dim room

Local LLM vs Cloud API: Which Is Better?

Home Assistant's docs list three cloud AI providers next to Ollama: OpenAI, Anthropic (Claude), and Google Gemini. Are they better than local models?

For raw accuracy, yes. A hosted frontier model understands ambiguous commands better and makes fewer entity name mistakes. But it receives the names, states, and areas of every entity you expose. If you have sensors named after family members or health-related devices, that's real private data leaving your network. The same trade shows up in hardware: a ChatGPT smart speaker is a better conversationalist than anything in this article and it cannot answer a single question with the router unplugged.

Expect a gap between a small local model and a hosted one on automation-generation prompts, and a wider one when the output has to be valid YAML. The local model is good enough for most daily tasks, just don't ask it to write complex Jinja2 templates.

Cost is a weaker argument than it used to be. Anthropic lists Claude Haiku 5.5 at $0.10 per million input tokens and $0.50 per million output tokens. A household running 200 queries a day at 500 input tokens each sends about 3 million input tokens a month, which is roughly $0.30 before output. Real prompts are bigger because Home Assistant attaches your exposed entities, but it's still pocket money. Privacy and offline operation are the reasons to go local, not the bill.

My honest opinion: use local for daily notification summaries, automation descriptions, and device status questions. Keep a cloud API as a fallback for complex template generation when accuracy matters. Each provider shows up as its own conversation agent, so switching an assistant between them is a dropdown change.

Which Practical Use Cases Actually Work?

What's the local LLM actually useful for in day-to-day smart home use?

Notification summaries are the natural fit. An automation can collect the alerts from the past hour and hand them to an Ollama AI task through the ai_task.generate_data action with "summarize these in two sentences." The result arrives as a single notification instead of twelve, and a 3B model is enough for it.

Plain-English automation descriptions are the hidden gem. Say "turn off all lights when everyone leaves home and it's after sunset", and the model translates it into a structured description you can hand to HA's automation editor. Not perfect, but a useful starting point.

Device status questions via voice suit short, factual queries: "Is the garage door open?" or "What's the thermostat set to?" On CPU hardware you'll wait a few seconds for the answer, which is fine when you're not in a hurry.

For anything requiring precise Jinja2 templates or complex multi-condition logic, a cloud model is still the better tool. That's fine. The local model earns its keep on the many queries that are simple.

Home Assistant automations and templates

How Do You Get the Most Out of Local LLMs?

Running local LLMs in Home Assistant is more than a privacy win. It's also a reliability upgrade that most guides undervalue.

Here are the settings that matter most, all from the integration's own options:

  • Keep the Instructions short. Every extra token is processed on every request, which adds latency on N100 hardware.
  • Create two conversation agents and make the smaller model the default. qwen2.5:1.5b suits quick status queries and a 3B or 4B model suits automation descriptions. Switching between them is a single dropdown change in HA.
  • Re-run ollama pull <model> now and then. Pulled models don't update themselves, and a repeat pull only downloads what changed.
  • Watch memory if Ollama shares a machine with Home Assistant. The integration's Keep alive option defaults to -1, which keeps the model loaded permanently; set it to a number of seconds if you'd rather free the RAM between requests.
  • Mind the context window. Home Assistant requests 8192 tokens by default (the minimum is 2048), while Ollama on its own defaults to 4096. With Device control enabled, the window has to hold your exposed entities, and larger values use more memory on the server.

The Ollama library at ollama.com/library lists all available models with their size and quantization details, which is the fastest way to compare options before downloading.

One thing worth knowing: Home Assistant's docs don't recommend a specific model, because the field moves too fast. They point to the tools-capable list in the Ollama library and to the project's own dataset reports, which score how well each model controls devices. Check those before you commit to a 5GB download.

The privacy argument for local LLMs is real but somewhat overstated in most discussions. The bigger practical win is determinism. Cloud APIs change model behavior on their own schedule, and a pinned local model doesn't. For home automation, where consistent output matters, that predictability counts for more than having the smartest possible model. For the voice side, read about the AI that talks first.

Frequently Asked Questions

What hardware do I need to run Ollama with Home Assistant?

An Intel N100 mini PC with 16GB of RAM handles CPU-only inference for 3B-class models such as llama3.2:3b and qwen2.5:3b. In a DFRobot test of an N100 board with 8GB of RAM, Ollama ran llama3.2:3b at about 11 tokens per second and llama3.1:8b at about 3. A GPU with enough VRAM to hold the whole model is far faster. A Raspberry Pi can run the smallest models, but it's too slow for real-time voice. I'd call the N100 the minimum comfortable entry point.

Can I use a local LLM for voice commands in Home Assistant?

Yes. The Wyoming protocol connects Whisper (speech-to-text) and Piper (text-to-speech) to Home Assistant, so the full pipeline of wake word, transcription, LLM reasoning, and spoken response runs on your own hardware. Home Assistant's docs put Whisper at about 8 seconds per command on a Raspberry Pi 4 and under a second on an Intel NUC. Piper's default voice in the official app is en_US-lessac-medium. For plain device commands, the lighter Speech-to-Phrase engine answers in under a second even on a Pi 4.

Should I use a local LLM or the Anthropic/OpenAI API in Home Assistant?

It depends on your priorities. Local models (llama3.2:3b, qwen2.5:7b, qwen3:4b) keep all data on your network and cost nothing per query after setup. Cloud models from OpenAI, Anthropic, or Google are faster and smarter, but they charge per token and receive the names and states of every entity you expose. For automation ideas and notification summaries I'd go local. For complex natural language tasks where accuracy matters more than privacy, a cloud API is still better in 2026.

Sources & References