Overview
Run a local voice assistant in Home Assistant that uses an Ollama model on your own computer to understand requests, with Whisper and Piper for speech, so you can control exposed lights and climate devices by voice.
Problem or Objective
- Which assistants control smart-home devices by voice or text?
- How can you run an open model on your own machine?
More in Local and Self-Hosted AI
AI Agents and Models
Tools and Integrations
- Tools
- Home Assistant · Ollama · Whisper · Piper
- Prerequisites
- A running Home Assistant installation, a home computer able to run an Ollama model, and a microphone through the Companion app or a voice satellite.
How It Works
Install Ollama on a computer in your home that is powerful enough for the model you choose, and pull a model. In Home Assistant, add the Ollama integration, point it at your Ollama server and create a conversation agent with device control turned on. Under Assist, expose only the entities you want the assistant to reach, for example living room lights and the air conditioner, and leave locks and alarms unexposed. Install Whisper for speech-to-text and Piper for text-to-speech, then create a voice assistant that uses these two engines with the Ollama conversation agent. Give the agent short instructions (house rooms, preferred temperatures, ask before big changes). Test by typing in the Assist dialog first, then by voice from the Companion app or a voice satellite, and check each device changes as expected.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Ollama, Home Assistant.
- Connect the toolsConnect the tools this workflow relies on: Home Assistant, Ollama, Whisper, Piper.
- Check the prerequisitesA running Home Assistant installation, a home computer able to run an Ollama model, and a microphone through the Companion app or a voice satellite.
- Gather your detailsCollect what the prompt asks for: Short description of the home, Room names as you say them, Comfortable temperature range, Devices that need confirmation.
- Run the starter promptPaste the starter prompt below into Ollama and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at home-assistant.io before you rely on it.
Practical Starter Prompt: Instructions for my local home assistant
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You control devices in [Short description of the home] through Home Assistant. Answer in one short sentence suitable for speech. Use the room names [Room names as you say them]. Keep cooling between [Comfortable temperature range] unless I give an exact number. Before turning off [Devices that need confirmation] or changing any device in a room other than the one I name, ask me to confirm and wait for a yes. If you are not sure which device I mean, ask instead of guessing.Paste this into the instructions of the Ollama conversation agent, expose only the devices listed, and confirm by voice when the assistant asks before a protected change.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Home Assistant documents both halves: its Ollama integration adds conversation agents that run on a server in your home and can control the devices you expose to Assist, and its local voice guide says Assist can run entirely on your own hardware with Whisper for speech-to-text and Piper for text-to-speech. The pages do not promise how well a given local model follows requests, so response quality and speed depend on your model and hardware.
Limitations and Considerations
Expose only the entities you are happy for a model to change; the Ollama agent can only reach entities exposed to Assist, and some tool sets only work for administrators. Whisper is slower on small hardware: Home Assistant says it takes around 8 seconds per command on a Raspberry Pi 4, so a faster machine helps. A local model can misunderstand a request, so keep security devices such as locks out of voice control or require a confirmation. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About ollama/ollama
This AI still answers with no internet (opens in a new tab)
Walkthrough of ollama by Codeyoung: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About ollama/ollama
n8n + Ollama: Run AI on Your Own PC, No API Bills | Ep 12 (opens in a new tab)
Walkthrough of ollama by Mr.FlukySkill: the title names the project; the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Ollama - Home Assistant (opens in a new tab)
Project documentation · home-assistant.io · Undated · Source checked 27 Nov 2026, 07:16 UTC
What this source supports
- Ollama is a server that runs AI models on a computer in your home, instead of in a cloud service.
- The integration connects Home Assistant to your Ollama server and adds conversation agents.
- An Ollama conversation agent can control your devices, tell you their state, and run your exposed scripts; it can only reach the entities that you expose to Assist.
- Set up a fully local voice assistant - Home Assistant (opens in a new tab)
Project documentation · home-assistant.io · Undated · Source checked 27 Nov 2026, 07:17 UTC
What this source supports
- Assist can run entirely on your own hardware.
- There are currently two options to run speech-to-text locally: Speech-to-Phrase and Whisper; on a Raspberry Pi 4, Whisper takes around 8 seconds to process incoming voice commands.
- Piper is a fast, local neural text-to-speech system that sounds great and is optimized for the Raspberry Pi 4.
- home-assistant/core README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 26 Nov 2026, 23:34 UTC
What this source supports
- Open source home automation that puts local control and privacy first.

