This project integrates LiveKit Agents with Home Assistant's Model Context Protocol (MCP) Server, allowing voice control of your smart home through LiveKit agents.
This integration enables:
- Voice control of Home Assistant devices through LiveKit Agents
- Real-time audio/video communication with AI assistants
- Access to Home Assistant entities and services via MCP
- Home Assistant with MCP Server integration enabled
- LiveKit and OpenAI settings
- Python environment for running the agent
- Configure Home Assistant MCP Server following the official documentation
- Set up your LiveKit agent using the LiveKit Agents framework
- Configure the agent with your Home Assistant URL and access token
# Example configuration
LIVEKIT_URL = "wss://your-livekit-server.com"
LIVEKIT_API_KEY = "your-api-key"
LIVEKIT_API_SECRET = "your-api-secret"
OPENAI_API_KEY
HOME_ASSISTANT_URL = "http://your-homeassistant:8123/mcp_server/sse"
HOME_ASSISTANT_TOKEN = "your-long-lived-access-token"