modelscope·@Jonathan97480/McpHomeAssistant
暂无描述。
Un serveur Model Context Protocol (MCP) puissant avec interface web complte pour intgrer Home Assistant avec les agents IA.
** Interface Web Complte !** Phase 3.4 inclut une interface web responsive avec dashboard, authentification, gestion des permissions et configuration multi-instances Home Assistant. Installation automatise pour Raspberry Pi.
** Raspberry Pi Ready!** Installation optimise pour Raspberry Pi 3B+ avec script automatis
install.sh.
Version franaise | Documentation | Tests
In addition to MCP protocol, this server can run as a standalone HTTP REST API server, perfect for:
Why use HTTP Server mode?
The HTTP server provides a complete REST API interface to Home Assistant:
GET /health - Server health check and Home Assistant connectivity statusGET /api/entities - List all entities (with optional domain filtering like ?domain=light)GET /api/entities/{entity_id} - Get specific entity state and attributesPOST /api/services/call - Call Home Assistant services (turn on/off devices, etc.)GET /api/history - Get entity history data with time range filteringUse Cases:
Automatic Installation:
curl -fsSL https://raw.githubusercontent.com/Jonathan97480/McpHomeAssistant/master/install.sh | bash
Manual Installation:
git clone https://github.com/Jonathan97480/McpHomeAssistant.git
cd McpHomeAssistant
chmod +x install.sh
./install.sh
# Install dependencies
pip install aiohttp python-dotenv
# Configure environment
cp .env.example .env
# Edit .env with your Home Assistant URL and token
# Start HTTP server
python http_server.py
Server runs on http://localhost:3002 by default and provides a complete REST API interface.
Example API calls:
# Check server health
curl http://localhost:3002/health
# List all lights
curl http://localhost:3002/api/entities?domain=light
# Turn on a light
curl -X POST http://localhost:3002/api/services/call \
-H "Content-Type: application/json" \
-d '{"domain": "light", "service": "turn_on", "target": {"entity_id": "light.living_room"}}'
Use HTTP Server when:
Use MCP Server when:
homeassistant-mcp-server/
src/ # Main source code
homeassistant_mcp_server/
server.py # Main MCP server
tests/ # Test and analysis scripts
test_connection.py # Basic connection test
test_mcp_tools.py # Complete tools test
test_http_server.py # HTTP server tests
analyze_energy.py # Energy analysis
analyze_smart_plugs.py # Smart plugs analysis
examples/ # Examples and configuration
claude_desktop_config.json # Claude Desktop configuration
smart_plug_automations.py # Smart plug automations
docs/ # Documentation
QUICKSTART.md # Quick start guide
HTTP_SERVER_README.md # HTTP server documentation
RASPBERRY_PI_INSTALL.md # Raspberry Pi installation
ARCHITECTURE.md # Technical architecture
scripts/ # Utility scripts
launcher.py # Service launcher wrapper
README.md # Scripts documentation
http_server.py …
一座通过串行通信将物理硬件设备与人工智能大语言模型连接起来的桥梁,允许用户使用自然语言命令控制硬件。
一种多功能的模型上下文协议服务器,使人工智能助手能够管理日历、跟踪任务、处理电子邮件、搜索网络以及控制智能家居设备。
暂无描述。
暂无描述。
暂无描述。
暂无描述。