Logo van 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.

Uitgevermaerestijnde
Repositorymcp-homey
TaalPython
Forks
3
Sterren
12
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Homey MCP 服务器 biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    12 sterren en 3 forks in de gekoppelde 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

Installatie

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

Gebruik Homey MCP 服务器 MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Homey MCP 服务器 is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Homey MCP 服务器 toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Homey MCP 服务器.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "mcp-homey": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Homey MCP 服务器 in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Homey MCP 服务器 in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Homey MCP 服务器 gebruiken om me hiermee te helpen?
Homey MCP 服务器
Zeker. Ik heb het gelezen.
Dit vond ik met Homey MCP 服务器.

Veelgestelde vragen

Waarvoor wordt de MCP-server Homey MCP 服务器 gebruikt?

Homey MCP 服务器 is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Homey MCP 服务器 MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Homey MCP 服务器 gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Homey MCP 服务器 MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Homey MCP 服务器 verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Homey MCP 服务器 MCP met TypingMind?

Homey MCP 服务器 werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Homey MCP 服务器 MCP in TypingMind?

Homey MCP 服务器 biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Homey MCP 服务器 MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Homey MCP 服务器 authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇