Home Assistant Meets a Local LLM

📘 Tutorials 2026-08-05 · Updated 2026-10-29 3 min read

Home Assistant (89,719 stars) now has native LLM support: connect an Ollama model to control your smart home by voice or chat - fully private, no cloud, no monthly fee.

💡 What You Will Learn

Home Assistant (89,719 stars) now has native LLM support: connect an Ollama model to control your smart home by voice or chat - fully private, no cloud, no monthly fee.

📜 Table of Contents

Home Assistant Meets a Local LLM: A Full Ollama Voice Assistant Setup

Most smart-home voice assistants upload audio to the cloud. Home Assistant has shipped LLM conversation support since 2024, and with a local Ollama model the whole voice chain can stay inside your network.

The chain

Mic → STT (Whisper) → conversation agent (Ollama) → intent execution (HA)
                                ↓
                        TTS (Piper) → speaker

Every link can run locally: Whisper transcribes, Ollama reasons and calls tools, Piper speaks, HA actuates.

Step 1: Model

Agents need reliable structured commands more than eloquence.

ollama pull qwen3:8b
ollama pull qwen3:4b

For lights and sensors a 4B model is usually enough and noticeably faster. Verify the service:

curl http://<ollama-host>:11434/api/tags

If HA runs elsewhere, make sure Ollama listens on the LAN interface, not just loopback.

Step 2: Add the integration

Option A — official Ollama integration (recommended): Settings → Devices & Services → Add Integration → Ollama → address http://<ollama-host>:11434 → pick a model.

Option B — OpenAI Conversation: point the Base URL at http://<ollama-host>:11434/v1 and enter any non-empty key. Useful when your model is not listed or you want one protocol everywhere.

Both expose a "control Home Assistant" toggle, which is what lets the model actually actuate devices. It is off by default.

Step 3: Expose entities, then restrict

  1. Settings → Voice assistants → Expose entities, tick only what should be controllable.
  2. Do not expose everything. Garage doors, locks and cameras stay hidden by default.
  3. Give devices clear aliases — "Living room main light" matches far better than light.yeelight_ceiling_3.

Fewer visible entities means fewer wrong actions, shorter prompts and faster responses. Roll out room by room.

Step 4: Build the pipeline

Settings → Voice assistants → Add assistant, four stages:

Stage Choice Note
STT Local Whisper via Wyoming Chinese needs an adequate model size; tiny/base is unusable
Conversation Ollama integration Pick the local model, customise the prompt
TTS Local Piper Chinese voices need a separate voice pack
Wake word Local engine Configured on the satellite hardware

Wyoming is HA's protocol for local voice services; Whisper and Piper both have container images you can host on the same internal server.

Step 5: Tune the prompt

Typical problems: verbose answers, treating chit-chat as commands, mixed-language output.

You are a home assistant. Answer only questions about controlling home devices.
Keep answers under two sentences, use English only, no emoji.
If a device name is ambiguous, ask instead of guessing.

What to expect

FAQ

Q: The model toggles the wrong device. Narrow the exposure list and check for duplicate or vague aliases — the most common cause.

Q: Cloud models? Supported via API key with better quality, but audio and commands leave the network.

Q: Poor Chinese STT? Use a larger Whisper model; undersized models are the usual culprit.

Q: Special hardware? ESPHome voice satellites are best, but a phone or browser proves the flow before you buy anything.

Q: HomeKit? HA bridges devices to HomeKit, so local assistant control carries over.

Q: Context memory? Works, but long context slows responses and can leak a previous device name into a new command.

Integration names and options change between HA releases; check official docs.

❓ FAQ

Can the LLM control devices safely?

Yes - HA exposes allowed entities only, and you can restrict which devices the model can touch in the integration config.

What if I want cloud models?

The same integration accepts OpenAI or Anthropic API keys - but then voice audio and commands go to the cloud.

Does it work with Apple HomeKit?

Yes - HA bridges to HomeKit, so the LLM assistant can control HomeKit devices too.

Related Articles
2026-08-02
DSPy Tutorial 2026: Stop Hand-Writing Prompts, Program Them Instead (36k Stars)
2026-07-26
Start an AI Automation Agency 2026
2026-08-06
AI Code Documentation: Generate README and Docs from Source Automatically
2026-07-23
LLM Evaluation Metrics on Hugging Face: Open Source Leaderboards
2026-07-22
11 Best Free ElevenLabs Alternatives 2026
2026-07-26
Self-Hosted AI + n8n Workflow Automation

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.

💬 Comments (0)

No comments yet. Be the first!

Login to comment