A Home Assistant custom integration that provides conversation agent capabilities using Ollama with full tool/function calling support for device control.
- 🤖 Local AI Processing: Run language models locally via Ollama
- 🔧 Tool/Function Calling: Native support for Home Assistant device control
- 💡 Smart Home Control: Control lights, climate, and other devices through natural language
- 🔄 Conversation History: Maintains context across multiple turns
- ⚙️ Configurable Parameters: Adjust temperature, context window, and other model settings
- 🎯 Optimized for Function-Capable Models: Designed to work with tool-capable models like Home-FunctionGemma-270m
- Ollama Server: Running locally or on your network
- Compatible Model: Download a tool-capable model:
ollama pull home-functiongemma-270m
- Open HACS in Home Assistant
- Go to "Integrations"
- Click the three dots menu → "Custom repositories"
- Add this repository URL
- Search for "Ollama Conversation" and install
- Restart Home Assistant
- Copy the
custom_components/ollama_conversationfolder to your Home Assistantconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click "+ Add Integration"
- Search for "Ollama Conversation"
- Enter your Ollama server URL (default:
http://sanctuarymoon.local:11434) - Select your model from the dropdown
- Configure optional parameters (temperature, context window, etc.)
See the detailed README for:
- Usage examples
- Supported device types
- Architecture details
- Troubleshooting guide
- API documentation
| Feature | home-llm | ollama_conversation |
|---|---|---|
| Ollama Support | ✅ Basic | ✅ Full API |
| Tool Calling | ❌ Limited | ✅ Native |
| UI Configuration | ❌ YAML only | ✅ Config Flow |
| Model Switching | ❌ Manual | ✅ Dropdown |
| Error Handling | ✅ Comprehensive |
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
MIT License - See LICENSE file for details
- Built by goose (Block's AI agent)
- Inspired by Home Assistant's
bedrockintegration - Compatible with Home-FunctionGemma-270m model
This integration processes everything locally. Your conversations never leave your network when using Ollama locally.