Home Assistant verbinden met OpenLLM Buddy
Connect Home Assistant to OpenLLM Buddy through an OpenAI-compatible conversation integration for a private smart-home assistant.
No-code, automatisering en domotica · Integratiegids
Wat is Home Assistant?
Home Assistant is the open-source smart-home hub. Its Assist feature lets you control devices and ask questions by voice or chat through a conversation agent. Bezoek Home Assistant.
Waarom OpenLLM Buddy verbinden?
The built-in OpenAI integration does not accept a custom URL, but community integrations such as Extended OpenAI Conversation do. They let Assist run on your OpenLLM Buddy model instead of a cloud assistant.
Maak voordat je begint een API-sleutel aan in de console en deploy een model. Gaat er iets mis, voer dan eerst de curl-test in stap 4 uit: geen enkele tool kan een kapot endpoint repareren.
Install a compatible integration
Install HACS if you do not have it, then add the community integration Extended OpenAI Conversation from HACS and restart Home Assistant.
Any HACS conversation integration that supports a custom base URL works the same way. Check its README for exact field names.
Add and configure it
Go to Settings → Devices & services → Add integration, search for the integration, and enter:
- API Key: your OpenLLM Buddy key
- Base URL: https://openllmbuddy-proxy.botbuddytech.workers.dev/v1
- Leave API version and organisation empty.
- Open the integration's options and set Chat Model to gemma4:26b.
Make it the Assist agent
Open Settings → Voice assistants, edit your assistant, and choose the new integration as its Conversation agent. Test it from the Assist dialog.
Only expose the devices and entities you want the model to control. Start read-only until you trust the setup.
Het endpoint testen met curl
Controleer of sleutel, URL en model-ID werken voordat je Home Assistant debugt. Een kort JSON-antwoord betekent dat het endpoint gezond is.
curl -sS https://openllmbuddy-proxy.botbuddytech.workers.dev/v1/chat/completions -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model": "gemma4:26b", "messages": [{"role": "user", "content": "Reply with OK"}], "max_tokens": 16}'Probleemoplossing
- Responses are slow for voice — a large model adds latency to every spoken request. Use a small, fast deployment for Assist.
- It ignores device commands — device control needs function calling. Use a model that supports tool calls.
- 401 of 403 — de API-sleutel is fout, ingetrokken of mist het voorvoegsel Bearer . Maak een nieuwe sleutel aan in de console.
- 404 op /chat/completions — de base-URL moet eindigen op /v1, zonder /chat/completions erachter en zonder extra pad.
- Model niet gevonden — het model-ID moet exact overeenkomen met je deployment. Voer de curl-test uit en kopieer het ID dat je hebt gebruikt.
- Time-outs bij het eerste verzoek — een GPU die inactief was, is mogelijk nog bezig het model te laden. Probeer het na een minuut opnieuw.
- Verbinding geweigerd vanuit Docker of een externe host — gebruik de openbare HTTPS-base-URL, nooit localhost.
Verbindingsgegevens
Gebruik deze waarden overal waar Home Assistant om een OpenAI-compatible provider vraagt.
Base URL: https://openllmbuddy-proxy.botbuddytech.workers.dev/v1 Chat URL: https://openllmbuddy-proxy.botbuddytech.workers.dev/v1/chat/completions API-sleutel: je sleutel uit de console Model-ID: gemma4:26b