Home Assistant Integration¶
Kiwi Voice integrates bidirectionally with Home Assistant:
- HA → Kiwi: Control Kiwi from the HA dashboard (switches, buttons, sensors)
- Kiwi → HA: Control your smart home by voice through Kiwi via the Conversation API
Installation¶
-
Copy the custom component to your HA installation:
-
Restart Home Assistant
-
Add the integration via UI: Settings → Integrations → Add Integration → Kiwi Voice
-
Enter the Kiwi Voice API URL (e.g.,
http://192.168.1.100:7789)
The integration auto-discovers Kiwi Voice on your network.
Entities¶
| Entity | Type | Description |
|---|---|---|
| State | Sensor | Current Kiwi state (idle, listening, thinking, speaking) |
| Language | Sensor | Active language code |
| HA Connected | Binary Sensor | Whether Kiwi is connected to HA |
| Speakers | Sensor | Number of known speaker profiles |
| Uptime | Sensor | Service uptime |
| Listening | Switch | Enable/disable microphone listening |
| Stop | Button | Stop current TTS playback |
| Reset Context | Button | Clear conversation context |
| TTS Test | Button | Speak a test phrase |
| TTS | Platform | Use Kiwi as a TTS platform in HA |
Voice Control¶
Say a Home Assistant command through Kiwi:
"Kiwi, turn on the lights in the bedroom"
The command is routed to the Home Assistant Conversation API and the response is spoken back by Kiwi.
Configuration¶
Kiwi Side¶
# config.yaml
homeassistant:
enabled: true
url: "http://homeassistant.local:8123"
token: "" # Long-Lived Access Token from HA
To create a Long-Lived Access Token:
- Go to your HA profile page
- Scroll to Long-Lived Access Tokens
- Click Create Token
- Copy the token to
config.yaml
HA Side¶
The custom component connects to Kiwi's REST API and WebSocket for real-time state updates. No additional HA configuration is needed beyond adding the integration.
REST API¶
Kiwi also exposes a Home Assistant endpoint: