Voice assistant with ioBroker: the complete guide

“ioBroker, turn off the light in the living room.” Since November this works not only in the lab, but with off-the-shelf speakers, with the browser and, if you like, completely without the cloud. In our post about AI in ioBroker we introduced the Smart Assistant. This post is about the practice: what the assistant can do, which hardware you need, how to set it up step by step and when local processing or the cloud makes sense.

A quick overview of the building blocks, so the terms are clear:

  • ioBroker.assistant is the brain. It understands the request, switches devices and phrases the answer.
  • A satellite is the device with microphone and speaker in the room. It detects the wake word, records the question and plays the answer.
  • ioBroker.voice is optional and recognizes speech locally on your ioBroker host. It also brings the microphone for the browser.

What the voice assistant can do

  • Switch and query devices: “Turn on the light in the kitchen”, “Bedroom blind to 30 percent”, “How warm is it in the kids' room?”. Several commands in one sentence and numbers spoken as words (“volume to fifty percent”) are understood too.
  • Timers, alarms, time and weather are answered immediately, without a language model.
  • Open questions go to a language model: “Is now a good time to start the washing machine?” For this the assistant reads the relevant states itself, for example photovoltaics, home battery and weather, and answers in full sentences.
  • Conversations instead of commands: Follow-ups like “and the kitchen too” work, and with “ioBroker, dialog mode on” the satellite keeps listening after every answer, so you don't have to repeat the wake word.
  • Taking the initiative: announcements on all or individual speakers, triggers such as “The deep fryer has been on for five hours. Shall I switch it off?”, presence detection and a do not disturb mode.
  • Music and media: internet radio on the satellite, music via Spotify Connect (with the spotify-premium adapter) and YouTube channels on the TV.
  • Multilingual: The assistant answers in the language of the question, and you can set a separate voice for each language.

How a request flows through the assistant

The first tab of the instance settings is called Flow (“Ablauf” in the German interface) and shows the path of a request as a diagram. Each step answers what it understands, the rest goes on to the next one. Clicking a step takes you straight to its settings.

  1. Request: It comes by voice from a satellite, from the chat, from Telegram or from a script.
  2. Speech recognition: The recording is turned into text, locally or in the cloud.
  3. Local decision: Built-in rules recognize device commands, timers, alarms, time and weather. Your routines such as “Good night” are handled here too. This stage needs no internet and answers in a fraction of a second.
  4. Cloud language model: Whatever the rules don't understand goes to the language model. It has tools to find devices, read values and switch them.
  5. Local language model: A small model on your host steps in when the cloud fails, or handles general questions entirely without the cloud.
  6. Speech output: The answer is read out, locally or with a cloud voice.

That is why everyday commands stay fast even when a language model is involved: “Light on” never even reaches the language model.

The hardware

You install the assistant itself on your ioBroker. For voice you also need a satellite. Three options have proven themselves.

Home Assistant Voice Preview Edition

The small speaker from Nabu Casa costs just under 60 euros. Inside are an ESP32-S3, two microphones and a dedicated audio chip (XMOS XU316) with echo cancellation and noise filtering. This lets it understand you even while music is playing. On top of that there is an LED ring, a rotary dial, a switch to mute the microphone and a headphone jack for a better speaker.

The device runs ESPHome. Despite the name, you don't need Home Assistant: ioBroker.assistant speaks the same protocol and connects to the device directly. You don't have to install or flash anything.

ThirdReality Voice & Music Assistant (Dev Edition)

The speaker from ThirdReality costs around 80 euros and has two digital microphones and a 3-watt speaker. It is explicitly designed for listening to music as well. It also speaks the ESPHome protocol and is connected the same way. This is the device we developed the assistant with, so it is the best tested.

Browser and smartphone

It works without any new hardware too, with the browser: the ioBroker.voice adapter brings the wake word microphone widget for vis-2. A tablet on the wall, your smartphone or your PC become a satellite, either with a wake word or at the push of a button. For a quick test, even the assistant's Chat tab in the Admin is enough, it has a microphone button as well.

⚠️ Important: Browsers only allow the microphone on HTTPS pages or on localhost. If you want to use the widget on a smartphone or a wall tablet, you have to switch the web adapter to HTTPS. The same applies to the microphone button in the Admin.

DIY with a Raspberry Pi

If you like tinkering, take a Raspberry Pi with a USB speakerphone, for example a Poly Sync 20. It runs the satellite @iobroker/assistant-satellite, either as its own ioBroker adapter assistant-satellite or without ioBroker via npx @iobroker/assistant-satellite.

Voice PEThirdRealityBrowserRaspberry Pi
Pricejust under €60around €80already therePi plus speakerphone
Effortlowlowlow, HTTPS requiredmedium
Microphonevery good, with echo cancellationgooddepends on the devicedepends on the speakerphone
Soundbasic, headphone jackgood for musicdepends on the devicedepends on the speaker
Wake wordon the deviceon the devicein the browseron the Pi

Step 1: Install the assistant and choose the AI

Install the assistant adapter via the Admin. The stable repository currently still has version 1.0.2; everything in this guide describes version 1.16 from the latest repository. To get it, switch the repository to “latest” in the system settings.

In the AI tab you choose the language model. The easiest option is System-wide AI settings (Admin): the assistant then uses the provider, model and key you have already entered in the Admin under System settings → AI. Alternatively you can choose OpenAI, Anthropic (Claude), Google Gemini, DeepSeek, OpenRouter, any OpenAI-compatible server (for example your own Ollama or LM Studio), the pi-agent adapter (more on it in the chapter “More than answers: the pi-agent adapter”) or None (local only).

Two switches below are worth a look: Remember conversation makes follow-up questions work, and Long-term memory stores things you explicitly tell the assistant (“Remember that the key is in the drawer”).

Before you deal with speakers, test the assistant in the Chat tab: ask for the time or switch a light.

Step 2: Set up devices and permissions

The assistant knows your devices from the rooms and functions in ioBroker, the same enumerations that the Alexa integration uses. Well-maintained rooms and functions are therefore half the battle: it can only find “the light in the living room” if that light is assigned to the living room.

The Devices tab shows the list as the assistant understands it. There you can rename devices, have names translated into other languages and decide per device whether the assistant may read and switch it. This way a door lock or the alarm system can be kept read-only. Above it you decide what the assistant may do in general: switch devices, read logs and files, query system information or even change objects.

In the Commands tab you find a synonym dictionary (your “TV” is called “television”) and the routines: a phrase such as “Good night” runs a list of actions and answers once. If you prefer to teach your own phrasings, you can also let the smart-text2command adapter understand the device commands.

Step 3: Set up voice, locally or in the cloud

In the Voice tab you enable voice processing and choose two services: one for speech recognition and one for speech output.

Speech recognition: OpenAI (Whisper), OpenRouter, Azure Speech, AWS Transcribe, Vosk (local) or ioBroker.voice (local adapter).

Speech output: OpenAI, OpenRouter (including ElevenLabs), Azure Speech, AWS Polly or Piper (local).

For the local option we recommend ioBroker.voice together with Piper. If you select ioBroker.voice and the adapter isn't installed yet, the Install ioBroker.voice button appears. One click installs the adapter, creates an instance and selects it right away.

ioBroker.voice recognizes 25 European languages with the NVIDIA Parakeet model directly on the CPU, without a graphics card and without Docker. On first start it downloads the model (about 670 MB) and then needs about 1.1 GB of RAM. On a Raspberry Pi 5, recognizing a short command takes 0.5 to 1.1 seconds. It requires a 64-bit system; it also runs on a Raspberry Pi 4, but noticeably slower. The voice instance may also run on another host in a multihost setup, for example on a more powerful machine.

Two settings make the whole thing more robust:

  • Fallback: For both directions you can set a second service. If the cloud fails, the key has expired or the credit has run out, the local engine takes over. This way the house stays controllable even without internet.
  • Longest spoken answer: The default is 400 characters, which is about 25 to 30 seconds. Longer answers are cut off at the last sentence end before that.

At the bottom of the tab you can listen to a voice with a test sentence and test speech recognition with the browser microphone, an audio file or a round trip, even before a speaker is connected.

Step 4: Connect the speaker

First bring the Voice PE or the ThirdReality speaker onto your Wi-Fi as described in the manufacturer's instructions, and ideally give it a fixed IP address in your router.

Then open the Satellites tab in the assistant:

  1. Tick Also drive ESPHome voice satellites.
  2. Add a row with + and enter the IP address of the device. Leave the port empty (default 6053).
  3. Choose the room the device is in. This tells the assistant which “light” you mean when you don't name a room.
  4. Save.

Unlike with Home Assistant, the device doesn't register with the server; the assistant connects to the device. The spoken answer, on the other hand, is fetched by the speaker as an audio file from the assistant, via a small built-in media server. Its port must be reachable from the speaker. If ioBroker runs in Docker, behind NAT or in a different VLAN, enter the address of the media server manually.

At the bottom of the tab, the status list shows all satellites with room, address and state. From there you can also start an announcement on one or all speakers.

Step 5: Choose the wake word

The gear icon of a satellite opens its settings. In addition to the models already on the device, the assistant brings its own wake words: “ioBroker”, “Hey Bro” and “Alisa”. One click transfers the model to the speaker and enables it. Two words can be active at the same time, and each one gets its own language: with “Hey Bro” you speak German, with “Alisa” Russian, and recognition, answer and voice follow accordingly.

You can also give a wake word a purpose: with Free questions only, “Hey Bro, how old can cats get?” goes straight to the language model, without a detour via the device commands.

The “ioBroker” model was created from the voices you recorded during our community campaign. The campaign continues: every additional voice at wake.iobroker.in makes recognition better. If you want a word entirely of your own, you can upload a microWakeWord model you trained yourself.

By the way, the wake word is always detected on the device itself. Only after that is anything recorded and sent at all.

Step 6: Browser and smartphone as a microphone

For the browser you need the ioBroker.voice adapter, even if speech recognition itself runs in the cloud. In vis-2 you find the wake word microphone in the widget palette under “Voice”. Drag it onto a page and configure it:

  • Common: the voice instance and the activation mode: wake word, push-to-talk or both.
  • Text processing and output: assistant and the instance assistant.0. Alternatively the recognized text goes to smart-text2command.
  • Speech output: With Speak processor replies the widget reads out the answer, either with one of the browser's voices or with Piper on the ioBroker host.
  • Display and chat: If you like, the widget shows the recognized text and the conversation history.

Out of the box the widget listens to “ioBroker”; in the voice instance you can choose up to three words under Wake word widget and set the sensitivity. Detection runs in the browser: audio is only sent to ioBroker after the wake word.

A few things you should know:

  • ⚠️ The microphone is only available via HTTPS or on localhost. In the editor it always stays off.
  • The first time, the browser asks for permission to use the microphone. Depending on the browser, a first click on the page is also needed before speech output can play.
  • A locked screen, background tabs and power saving on the smartphone can pause listening. For a wall tablet, put the widget on a page that always stays open.

Step 7: Try it out and fine-tune

The Chat tab shows every request live, whether it comes from a satellite, from Telegram, from a script or from the chat itself. For every answer you can see which stage answered, how long it took and which states were read or switched. In the example below, the language model queried photovoltaics, grid, battery and heat pump for the question about the washing machine and answered after a little over nine seconds. The question about the time, on the other hand, was handled by the local rules in 176 milliseconds.

If something doesn't work, one of these points usually helps:

  • The speaker reacts to the wake word but doesn't hear the command: The microphone is too quiet. Lower the speech threshold in the satellite's row, for example from 250 to 100. The log suggests a suitable value.
  • The assistant cuts you off or waits too long: Under “End of speech and diagnostics” you set after how many milliseconds of silence the request ends.
  • The answer arrives but isn't played: Can the speaker reach the media server's port? Check firewall, Docker and VLAN.
  • Radio or audio files don't play: The assistant needs ffmpeg for that. In the Voice tab it can be downloaded with one click in the ffmpeg section. Plain spoken answers don't need ffmpeg.
  • A tone instead of a sentence: With Confirm switch commands with a tone (Commands tab) the speaker acknowledges successful switch commands with a short tone instead of “Okay, the light is on”.

Local or cloud?

The most important decision is where speech recognition, the language model and speech output run. All three can be chosen independently of each other.

Fully localMixedCloud
Speech recognitionioBroker.voiceioBroker.voicee.g. OpenAI, Azure
Language modellocal model or nonecloud modelcloud model
Speech outputPiperPipere.g. OpenAI, ElevenLabs
Privacynothing leaves the houseonly requests the rules don't understand go to the cloud as textaudio and text go to the cloud
Without interneteverything except weather and online servicesdevice commands, timers, alarmsnothing, except with a local fallback
Costsno running costslowdepending on usage
Hardwareat least a Raspberry Pi 5 with 8 GB, more is bettera Raspberry Pi 5 is enoughany

Fully local is the choice for everyone who wants nothing to leave the house. Device commands, timers, alarms and weather work completely. For open questions there is the Local models tab: there you download small language models, compare them with a built-in test and switch between them. But don't expect miracles from a small model on a Raspberry Pi; questions like the one about the washing machine need a large model.

Mixed is the best compromise for most people and our recommendation: speech recognition and speech output run locally, so your voice stays in the house. Only what the rules don't understand goes to a cloud model as text, together with the device data it needs for the answer. Everyday commands never reach the cloud.

Cloud offers the largest choice of voices and needs hardly any computing power at home. With a local fallback for speech recognition and speech output, the house still stays controllable when the internet is down.

Be realistic about speed, though: as soon as a large language model is involved, an answer takes a few seconds, because it first has to query data and then phrase the answer. Simple commands, on the other hand, go through the local rules and are done quickly.

More than answers: the pi-agent adapter

A language model answers a question and is done. If you want the assistant to also take on tasks that run for days, remember things across all rooms and know exactly where it left off after a restart, choose the Adapter pi-agent in the AI tab. It is an AI agent of its own for ioBroker, developed by sadam6752-tech and in stable since November.

The order stays the same: “light on”, timers, alarms and routines are still handled by the local rules of the assistant. Only what the rules don't understand goes to pi-agent instead of a cloud model.

Setting up pi-agent

  1. In the AI tab of the assistant, choose Adapter pi-agent. If the adapter is not installed yet, the button Install pi-agent appears. It installs the adapter on the same host and creates an instance.
  2. Below that, choose the pi-agent instance.
  3. Model and key are set in pi-agent, not in the assistant. The easiest way is again the system-wide AI settings of the Admin; then a new instance needs no setting of its own. Alternatively Anthropic, OpenAI, DeepSeek, Google Gemini, OpenRouter or an OpenAI-compatible server such as Ollama will do. The model must support tool calling, otherwise the agent can neither read nor switch anything.
  4. In pi-agent, decide in the Write permissions tab what the agent may switch, and turn off the simulation mode once everything fits (see below).

Every satellite, the chat and every Telegram user gets a conversation of their own in pi-agent. A follow-up question in the kitchen therefore doesn't end up in the bedroom. If pi-agent doesn't answer within the time limit (one minute by default) or reports an error, the local language model steps in, if you have set one up. The assistant's own tools for timers, memory, announcements and YouTube are not available to pi-agent. For reminders and memory it brings its own, though.

⚠️ Important: Out of the box, the Simulation mode (nothing is switched) is on. The agent then only says what it would switch. In addition, it may only write to the states that have a row with Write allowed in the Write permissions tab; everything else it can only read. Add installed instances creates a row for every instance, still without any rights. Tick what the agent should really switch, watch the log for a few days and only then turn off the simulation.

Tasks that run for days

Background tasks are what sets pi-agent apart most clearly from a plain language model. You describe a task in your own words, and the agent takes care of it until it is done:

  • “I'm away until the 20th. Let me know if a window is open for more than 15 minutes while the heating is running, or if a Zigbee sensor drops out.”
  • “Tell me the weather and which batteries are low every morning at seven.”

This is how it works:

  • Triggers: a state meets a condition, optionally for a certain time (“open for 15 minutes”), a fixed time of day, or an interval between 15 minutes and 24 hours. Only values reported by the device count, not switching commands.
  • The language model is only asked when a trigger fires. pi-agent watches the triggers itself. When one fires, the agent looks at the situation and reports, or stays quiet if it was a false alarm. A task that never fires costs nothing.
  • Where the report goes: to the chat the task was created in, to the Admin chat, to a messenger, or by voice to the satellite you set it up on. If you set up a task by voice, the agent asks where it should report. To be allowed to speak, the state assistant.0.satellites.<id>.tts (or assistant.0.tts.text for all satellites) needs Write allowed in the write permissions.
  • Switching only with confirmation: every action of a task, whether switching, a restart or an update, is confirmed by the agent in the chat with ✅/❌. A task that only reports by voice can therefore only report, not switch.
  • Limits: at most five tasks with five triggers each, every task runs for 30 days at most. If a task wakes up more than 20 times in one day, for example because of a flapping sensor, it pauses and says so.
  • Overview: “Which tasks are running?” or “Stop the window watch” works by voice. In the Admin, the menu item Pi Agent on the left opens the chat with the agent; above it you see all tasks with their triggers, how long they run, when they last woke up, and buttons to pause and resume them.

For simpler cases pi-agent has smaller tools:

  • Tell me once: “Let me know when the washing machine is done.” The agent waits, for example, until the power stays below 5 watts for three minutes, and reports exactly once.
  • Switch later: “Turn off the heating at 11 pm.” Whether it is allowed to do so, the agent checks when planning and once more when the time comes.
  • Reminders: “Remind me of the cake in the oven in 20 minutes.” Within the next 24 hours this becomes a timer right on the satellite, which rings and says “Reminder: …”. Later reminders are spoken by the satellite when they are due.
  • Recurring things: for “every weekday at seven” or appointments more than seven days ahead, the agent creates events in the fullcalendar adapter. There you see and change them like any other event. For this, fullcalendar.0 needs Write allowed in the write permissions.

Tasks, watches, reminders and scheduled switching survive a restart of ioBroker.

The long-term memory

Within a conversation the agent remembers everything that was said. But the conversations don't know each other: what you tell the satellite in the kitchen, the one in the bedroom doesn't know. That is what the Long-term memory is for, switched on by default:

  • “Remember: the floor lamp in the living room is hue.0.lamp3.” or “Remember that I only want dimmed light in the evening.” The agent turns this into a fact, also on its own when you mention a lasting preference. “Forget the thing about the floor lamp” deletes it again.
  • All facts apply in every conversation: on all satellites, in the Admin chat and in Telegram.
  • There is room for up to 100 facts of 500 characters each, at most 8,000 characters in total.
  • You can look at the memory and edit it by hand in the state pi-agent.0.memory.list, a JSON list. pi-agent takes over your changes.
  • The memory is shared by everyone who talks to the agent. Passwords and keys don't belong there; the agent is instructed not to store them.

With pi-agent, new facts end up in its memory, not in the long-term memory from the AI tab of the assistant.

Nothing twice, even after a crash

pi-agent is built on Pi Durable: every call of the language model and of every tool is stored before it runs. If the adapter restarts in the middle of a request, it continues at the same point instead of starting over. Reading may be repeated, a switching command never: the agent learns that the command was interrupted and first checks the current value of the state. So a restart never switches a light twice.

Confirming by voice

In the Admin chat and in Telegram, pi-agent asks with the buttons ✅/❌ before it switches a state with Confirmation required, restarts an instance or updates an adapter. A speaker doesn't have these buttons, so such actions are blocked from a satellite at first.

With Confirmation by text in sendTo conversations (Write permissions tab, off by default) the agent asks by voice instead: “Shall I restart the instance telegram.0? Say yes or no.” The satellite then opens the microphone right away. Whether the answer was a yes is decided by pi-agent itself, not by the language model. Only a clear yes counts, such as “yes”, “okay”, “sure” or “yes please”. Anything else, and two minutes of silence, count as no. Keep in mind: anyone in the room can say yes. Only turn the option on where that is acceptable.

Keeping costs under control

A satellite often keeps its conversation for weeks, and every request sends the history so far along. Three limits in the settings of pi-agent keep the costs low:

  • Tokens per request (context): from this limit on, the agent summarizes the older part of the conversation. For voice and chat, 32,000 to 48,000 tokens are a good fit; satellites benefit the most.
  • Tokens per day: a daily budget. Once it is reached, the agent only answers again after midnight.
  • Requests per minute per conversation: ten by default, which stops a script that asks in a loop.

What has been used so far is shown by the states under pi-agent.0.usage, including the costs in US dollars where prices are known for the model. And because the answers are read out, pi-agent rounds temperatures, percentages and wind speeds with Round values for spoken answers (on by default): the satellite says “1 to 8 degrees” instead of “0.6 to 8 degrees”.

What else pi-agent can do

  • The memory of the house: with the recorder adapter, the agent answers questions like “Was anything unusual last night?”, “Was the bedroom window open at 10 pm?” or “Who opened the garage door?”.
  • Restart instances and update adapters: “Telegram isn't answering, restart it” or “Are there any updates?”. Both have to be allowed separately in the write permissions and are confirmed every time.
  • Write scripts: “Write a script that turns on the hall light at sunset.” The agent only writes into the folder pi-agent, and every change has to be confirmed. By voice the code is not read out; the agent says in one sentence what the script does.
  • Know what every instance can do: before it sends a command to an adapter, the agent reads its description from the shared command catalog instead of guessing.

One more note on backups: the conversations are kept in a database of their own that the normal ioBroker backup doesn't cover. That is why pi-agent backs them up itself every day by default and keeps the last seven backups. They are stored in the file area of ioBroker, where the ioBroker backup and BackItUp take them along. In the Backup tab you set this up and restore a backup when needed.

Conclusion

With a speaker for 60 to 80 euros, the assistant and, if you like, ioBroker.voice, you have a voice assistant in half an hour that knows your house, listens to “ioBroker” and doesn't have to send your voice to someone else's data center. The assistant is still young and evolving quickly, with more than twenty versions in November alone. We are happy about everyone who tries it out.

Questions, experiences and ideas? Write to us in the forum; for local speech recognition there is the test thread for ioBroker.voice.

🔗 ioBroker.assistant on GitHub 🔗 ioBroker.voice on GitHub 🔗 ioBroker.assistant-satellite on GitHub 🔗 ioBroker.pi-agent on GitHub