Logo von Homey MCP 服务器

Homey MCP 服务器

Community
maerestijnde

A comprehensive Model Context Protocol (MCP) server for Homey smart home automation systems, providing seamless integration with Claude AI assistants.

Herausgebermaerestijnde
Repositorymcp-homey
SprachePython
Forks
3
Sterne
12
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Homey MCP 服务器 stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    12 Sterne und 3 Forks im verlinkten Repository.

Homey MCP Server

A comprehensive Model Context Protocol (MCP) server for Homey smart home automation systems, providing seamless integration with Claude AI assistants.

🏠 Overview

The Homey MCP Server enables Claude AI to interact directly with your Homey Pro smart home system, offering real-time device control, automation management, and advanced analytics through natural language conversations.

Key Capabilities:

  • 📱 Device Control: Control lights, thermostats, sensors, and smart appliances
  • 🔄 Flow Management: Trigger and manage Homey automation flows
  • 📊 Advanced Analytics: Historical data analysis, energy monitoring, and usage patterns
  • 🌡️ Climate Intelligence: Temperature and humidity monitoring across zones
  • ⚡ Energy Insights: Power consumption tracking and optimization recommendations
  • 📈 Live Monitoring: Real-time dashboard metrics and system status

🚀 Quick Start

Prerequisites

  • Homey Pro device with local API access enabled
  • Python 3.11+ with uv package manager
  • Claude Desktop application
  • Valid Homey Personal Access Token

Platform Support: macOS, Windows, Linux

Installation

  1. Clone and Setup

    bash
    git clone <repository-url>
    cd mcp-homey
    make install
    
    # Make the script executable (macOS/Linux only)
    chmod +x start_homey_mcp.sh
  2. Get Homey Token

    • Navigate to Homey Developer Portal
    • Go to Settings → Advanced → API Keys
    • Create new API Key with all available scopes
  3. Configure Claude Desktop

    ⚠️ IMPORTANT: Replace all paths with YOUR actual paths

    🍎 macOS/Linux

    Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "/path/to/your/uv/binary",
          "args": ["run", "--directory", "/path/to/your/mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-token-here",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Find your uv path with:

    bash
    which uv
    # Usually: /Users/yourname/.local/bin/uv
    #      or: /usr/local/bin/uv  
    #      or: /opt/homebrew/bin/uv

    Example with real paths:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "/Users/yourname/.local/bin/uv",
          "args": ["run", "--directory", "/Users/yourname/Projects/mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-personal-access-token",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    🪟 Windows

    Add to %APPDATA%\Claude\claude_desktop_config.json:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "uv",
          "args": ["run", "--directory", "C:\\path\\to\\mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-token-here",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Find your uv path with:

    powershell
    where uv
    # Usually: C:\Users\yourname\.local\bin\uv.exe
    #      or: C:\Program Files\uv\uv.exe

    Example with real paths:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "C:\\Users\\yourname\\.local\\bin\\uv.exe",
          "args": ["run", "--directory", "C:\\Users\\yourname\\Projects\\mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-personal-access-token",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Windows Notes:

    • Install uv first: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    • Use full Windows paths with double backslashes: C:\\Users\\Name\\Projects\\mcp-homey
    • Restart PowerShell after installing uv
    • Use where uv to find the exact uv.exe path
  4. Find Your Paths

    Before configuring Claude, find the correct paths for your system:

    macOS/Linux:

    bash
    # Find uv location
    which uv
    
    # Find project directory  
    cd path/to/mcp-homey && pwd
    
    # Example output:
    # /Users/yourname/.local/bin/uv
    # /Users/yourname/Projects/mcp-homey

    Windows:

    powershell
    # Find uv location
    where uv
    
    # Find project directory
    cd path\to\mcp-homey; pwd
    
    # Example output:
    # C:\Users\yourname\.local\bin\uv.exe
    # C:\Users\yourname\Projects\mcp-homey
  5. Restart Claude Desktop and test!

⚙️ Operating Modes

Switch modes by editing your Claude Desktop config and restarting Claude:

🏠 Normal Mode (Real Homey)

json
"env": {
  "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
  "HOMEY_LOCAL_TOKEN": "your-actual-token",
  "OFFLINE_MODE": "false",
  "DEMO_MODE": "false"
}

🧪 Demo Mode (Testing without Homey)

json
"env": {
  "OFFLINE_MODE": "true",
  "DEMO_MODE": "true"
}

Demo includes: Multi-room setup, various device types, sensors, flows, and analytics data

🔧 Development Mode

json
"env": {
  "OFFLINE_MODE": "true",
  "DEMO_MODE": "false"
}

Offline but minimal demo data

🛠️ Available Tools (17 total)

📱 Device Control (7 tools)

get_devices • control_device • get_device_status • get_zones • find_devices_by_zone • control_lights_in_zone • get_sensor_readings

🔄 Flow Management (7 tools)

get_flows • get_flow • trigger_flow • get_device_flow_capabilities • get_flow_folders • get_flow_cards • run_flow_card_action

📊 Insights & Analytics (3 tools)

get_device_insights • get_energy_data • get_live_insights

💬 Usage Examples

"What devices do I have?"
"What zones are available?"
"Turn on the kitchen lights at 75%"
"Set thermostat to 22 degrees"
"Start the evening routine"
"Show my energy usage this month"
"Export temperature data to CSV"

🔧 Development & Debugging

🍎 macOS/Linux

bash
# Manual testing
export OFFLINE_MODE="true" DEMO_MODE="true"
./start_homey_mcp.sh

# Development commands  
make install test lint format
python test_capabilities.py
python test_insights.py

# Debugging
tail -f homey_mcp_debug.log
make inspector  # Web UI at localhost:5173

🪟 Windows

powershell
# Manual testing
$env:OFFLINE_MODE="true"; $env:DEMO_MODE="true"
uv run python src/homey_mcp/__main__.py

# Development commands
uv sync
uv run pytest
uv run python test_capabilities.py
uv run python test_insights.py

# Debugging
Get-Content homey_mcp_debug.log -Wait  # Like tail -f

🔍 Troubleshooting

🪟 Windows-specific

❌ "uv not found" → Install uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
❌ Path issues → Use full Windows paths with double backslashes: C:\\Users\\Name\\Projects\\mcp-homey
❌ PowerShell execution policy → Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
❌ Wrong uv path → Use where uv to find exact path, then use full path like C:\\Users\\yourname\\.local\\bin\\uv.exe

🍎 macOS/Linux

❌ "uv not found" → Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh and restart terminal
❌ "command not found" → Use full path to uv binary: /Users/yourname/.local/bin/uv
❌ Permission denied → Make sure uv is executable: chmod +x /path/to/uv
❌ Wrong paths → Use which uv and pwd to get correct absolute paths

🌐 All Platforms

❌ Missing scopes → Create API key with ALL scopes at my.homey.app
❌ Connection timeout → Verify Homey IP and network connectivity
❌ Unauthorized → Check token validity and expiration


Built with ❤️ for the Homey community

Installation

TypingMind
{
  "mcpServers": {
    "mcp-homey": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/your/mcp-homey",
        "python",
        "src/homey_mcp/__main__.py"
      ]
    }
  }
}

Homey MCP 服务器 MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Homey MCP 服务器 verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Homey MCP 服务器 als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Homey MCP 服务器 ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "mcp-homey": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Homey MCP 服务器. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Homey MCP 服务器.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Homey MCP 服务器 bei dieser Aufgabe helfen?
Homey MCP 服务器
Gerne. Ich habe es gelesen.
Das habe ich mit Homey MCP 服务器 gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Homey MCP 服务器 verwendet?

Homey MCP 服务器 ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Homey MCP 服务器 MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Homey MCP 服务器 mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Homey MCP 服务器 MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Homey MCP 服务器 verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Homey MCP 服务器 MCP mit TypingMind?

Homey MCP 服务器 wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Homey MCP 服务器 MCP in TypingMind bereit?

Homey MCP 服务器 stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Homey MCP 服务器 MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Homey MCP 服务器 eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇