Skip to main content
PromptQuorumPromptQuorum
Home/Smart Home/Connect Ollama to Home Assistant: Local AI Assistant (2026)
Local AI & LLMs in the Smart Home

Connect Ollama to Home Assistant: Local AI Assistant (2026)

Β·9 min readΒ·By Hans Kuepper Β· Founder of PromptQuorum, multi-model AI dispatch tool Β· PromptQuorum

Add Home Assistant's Ollama integration, point it at your Ollama server, pick a model, then set that model as the Assist conversation agent β€” now you control devices in plain language, fully locally. Ollama runs the model on your own hardware, so no command or home state leaves your network.

Home Assistant has a built-in Ollama integration that turns a locally hosted model into your conversation agent, controlling devices in natural language with no cloud. This guide walks through prerequisites, adding the integration, choosing a model, wiring the conversation agent, controlling devices, and troubleshooting β€” keeping Ollama setup and model selection linked out, not re-explained.

Key Takeaways

  • Home Assistant ships an official Ollama integration β€” no custom add-on needed
  • Run Ollama on the Home Assistant host or another machine on your LAN
  • Add integration β†’ enter Ollama URL (default http://host:11434) β†’ select a model
  • Expose only the entities you want the model to control, then set it as the Assist agent
  • Use a small function-calling model for low latency; link out for model/hardware depth
  • Everything is local: no command or home state leaves your network

What Connecting Ollama to Home Assistant Gives You

It gives Home Assistant a local conversation agent: you speak or type a request and the model maps it to device actions, with no cloud assistant in the loop. This replaces the cloud voice agent (Alexa, Google) for natural-language control.

  • Natural-language control: "turn off everything downstairs" maps to the right entities instead of a fixed phrase.
  • Local and private: the model runs through Ollama on your hardware β€” see the local LLM smart home guide for the full architecture.
  • Voice-ready: pair it with a local voice pipeline for a private Alexa replacement β€” see build a fully local voice assistant.

Prerequisites Before You Start

You need Home Assistant running, Ollama running on a reachable host, and one model pulled. This guide does not re-explain installing Ollama β€” link out for that.

  1. 1
    Home Assistant up and reachable on your LAN.
  2. 2
    Ollama installed and running on the same host or another machine β€” see how to install Ollama.
  3. 3
    At least one model pulled (a small instruction model is the right starting point).
  4. 4
    Network reachability: confirm Home Assistant can reach the Ollama URL (default port 11434).

How Do You Add the Ollama Integration?

In Home Assistant go to Settings β†’ Devices & Services β†’ Add Integration β†’ Ollama, then enter the Ollama URL. The default URL is http://<host>:11434.

StepActionResult
1Settings β†’ Devices & Services β†’ Add IntegrationIntegration picker opens
2Search "Ollama" and select itConnection dialog appears
3Enter the Ollama URL (http://host:11434)Home Assistant connects to Ollama
4Select a model from the listA conversation entity is created

Which Model Should You Choose?

Choose a small, fast, instruction-following model with function-calling for home control β€” not the largest model you can run. Latency matters more than raw capability here.

  • Use a small model if you want snappy responses on modest hardware.
  • Prioritise function-calling/tool support so the model can emit device actions reliably.
  • For a smart-home-specific shortlist, see best local LLM models for smart home control.
  • For deeper model mechanics, link out to best local LLMs for coding and the local-llms cluster β€” this guide does not re-rank models.

Configure the Conversation Agent

Set the Ollama conversation entity as the agent in your Assist pipeline, and expose only the entities you want it to control. Exposure is what lets the model act on devices.

  1. 1
    Open Settings β†’ Voice assistants and edit (or create) an Assist pipeline.
  2. 2
    Set the conversation agent to the Ollama entity created by the integration.
  3. 3
    Under Assist exposure, expose the specific entities the model may control.
  4. 4
    Optionally add a custom prompt to constrain tone and scope.
  5. 5
    Save, then test from the Assist chat box before adding voice.

Control Devices by Voice or Text

Once the agent is set and entities are exposed, type or speak a request in Assist and the model performs the action. Keep deterministic safety automations as plain rules, not model-driven.

  • Test with simple commands first ("turn on the office light"), then natural phrasing.
  • The model only controls entities you exposed β€” unexposed devices are untouched.
  • Add a local voice front-end for hands-free use β€” see local voice assistant.
  • For context-aware automations beyond direct commands, see AI automations with a local LLM.

Troubleshooting Common Issues

Most problems are connectivity, model choice, or exposure. Work through these in order.

  • Cannot connect: verify the Ollama URL and that port 11434 is reachable from Home Assistant; bind Ollama to 0.0.0.0 if on another host.
  • Slow responses: switch to a smaller model or add a GPU/NPU β€” see best hardware for a local smart home.
  • Model ignores devices: confirm the entities are exposed to Assist and the Ollama entity is the active agent.
  • Wrong actions: add a system prompt constraining scope, or reduce the number of exposed entities.

FAQ

Which model should I pick for Home Assistant?

A small instruction-following model with function-calling support is the best starting point because home control needs fast, structured responses. The right size depends on your hardware; see the best local LLM models for smart home guide for current options.

Do I need a GPU to run Ollama with Home Assistant?

No, but it helps. A small model runs on a modern CPU or integrated GPU; a discrete GPU or NPU lowers latency so the assistant feels snappier. Match model size to your hardware.

Can the model control any device in Home Assistant?

Only entities you explicitly expose to Assist. Exposure is opt-in, so the model cannot act on devices you have not shared with it, which keeps control predictable and safe.

Does the Ollama integration work offline?

Yes. Ollama runs the model locally and Home Assistant controls devices over your LAN, so the assistant works with no internet. Only remote access from outside the home needs connectivity.

← Back to Smart Home