🤖 AI Chat Control

Control your Homey with AI assistants using natural language

👋 Introduction

AI Chat Control brings the power of AI to your smart home by connecting your Homey to advanced AI assistants like Claude. Using natural language, you can ask your AI assistant to control devices, trigger flows, and get information about your home - all without navigating through apps or remembering exact commands. The app uses the Model Context Protocol (MCP) standard, making it compatible with any MCP-enabled AI assistant.

The app works by running a local server on your Homey that communicates with your AI assistant. This means you need to be on the same network as your Homey for the connection to work. The app also provides a special Flow trigger card that lets you create custom commands - when your AI assistant sends a specific command, your Flow can perform any action you want, from playing your favorite radio station to running complex multi-device routines.

Try It Out

Once you've completed the setup, start with these example questions to see what AI Chat Control can do:

📦 Installation & Setup

Step 1: Install the App

  1. Open the Homey app on your phone
  2. Go to MoreApps
  3. Tap the + (plus) icon to add a new app
  4. Search for "AI Chat Control"
  5. Tap Install
⚠️ Important: Your computer and Homey must be on the same local network for this app to work.

🔧 Step 2: Configure Claude Desktop

What is MCP?

Model Context Protocol (MCP) is a standard that allows AI assistants like Claude to communicate with external tools and services. AI Chat Control uses MCP to let Claude control your Homey.

Step-by-Step Configuration

1. Locate the Claude Desktop Config File

Easiest Method: Via Claude Desktop (recommended)

  1. Open Claude Desktop
  2. Go to FileSettings
  3. Click on Developer in the left sidebar
  4. Click the Edit Config button
  5. This will open Windows Explorer (or Finder on macOS) with the config file selected
  6. Open the file in a text editor (Notepad, VS Code, etc.)

Manual Method: Navigate to the file directly

Windows:

%APPDATA%\Claude\claude_desktop_config.json

macOS:

~/Library/Application Support/Claude/claude_desktop_config.json

Linux:

~/.config/Claude/claude_desktop_config.json

2. Get Your Configuration

Recommended: Use the App Settings Page

The easiest way to get the correct configuration is through the app's settings page:

  1. In the Homey app, go to MoreApps
  2. Find AI Chat Control and tap on it
  3. Tap the Settings icon (gear icon)
  4. Choose your configuration scenario:

New Configuration: Choose this if you don't have an MCP configuration yet. You'll get a complete config file.

Existing Configuration: Choose this if you already have other MCP servers. You'll get just the Homey block to add manually.

Automatic Merge: Paste your current config and the app will merge Homey into it for you.

  1. Tap "Copy Configuration to Clipboard"
  2. Paste the configuration into the Claude Desktop config file you opened in step 1
Benefits: No manual IP address lookup needed, automatic language detection (EN/NL), and guaranteed correct configuration format!

Alternative: Manual Configuration

If you prefer to configure manually, find your Homey's IP address:

  1. Open the Homey app
  2. Go to MoreSettingsGeneralAbout
  3. Under Connectivity, look for the Wi-Fi address

Then add this configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "homey": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://[YOUR-HOMEY-IP]:3000/mcp",
        "--allow-http"
      ]
    }
  }
}

Replace [YOUR-HOMEY-IP] with your Homey's actual IP address (e.g., 192.168.1.50)

3. Restart Claude Desktop

  1. Save the configuration file
  2. Completely quit Claude Desktop
  3. Important: Just closing the window is not enough - Claude continues running in the background. Use Task Manager (Windows) or Activity Monitor (macOS) to ensure Claude Desktop is fully closed.
  4. Start Claude Desktop again
✅ Success! If configured correctly, Claude will now be able to control your Homey. Try asking: "What devices do I have in Homey?"
💡 Tip: You can verify the connection by checking if Claude mentions "Homey" tools when you start a conversation about your smart home.

🎯 Flow Trigger Cards

What are Flow Trigger Cards?

Flow trigger cards are "When..." cards you can add to your Flows. The AI Chat Control app provides an "AI Tool call" card that lets Claude start your Flows with custom commands.

The "AI Tool call" Card

This card has two purposes: it teaches Claude what your Flow does and what information is needed, and it triggers the Flow to run when Claude sends the command with the required parameters. Only Flows with this card are made available to Claude as tools.

Configuration Fields

Field Description Example
Command The command name that will trigger this Flow play_radio, bedtime_routine
Description Explain to the AI what this command does Play a radio station on the kitchen radio
Parameters Optional parameters that Claude can provide (one per line) streamUrl: string
streamName: string

Available Tokens

When the trigger fires, these tokens become available in your Flow:

Example: Play Radio Station

Step 1: Create the Flow

  1. Open Homey and create a new Flow
  2. Add the "AI Tool call" card as your trigger
  3. Configure the card:
    • Command: play_radio
    • Description: Play a radio station on the kitchen radio
    • Parameters: (each parameter on its own line)
      streamUrl: string - Radio stream URL
      streamName: string - Name of the radio station

Step 2: Add Flow Actions

  1. Add your "Cast Audio URL" action (or similar for your radio device)
  2. For the stream URL field, use the token {{Parameter 1}} (this is the streamUrl parameter)
  3. For the stream name field, use the token {{Parameter 2}} (this is the streamName parameter)
  4. Add any other actions you want

Step 3: Refresh Claude's Flow List

After creating or modifying a Flow, ask Claude to refresh:

"Refresh the Homey flows"

Claude will use the refresh_homey_flows tool to discover your new Flow. Alternatively, you can restart Claude Desktop.

Step 4: Test with Claude

Ask Claude:

"Start radio station BBC1 on the kitchen radio"

Claude will parse this request and call the play_radio command with the appropriate URL and station name.

Parameter Format Guidelines

Format: parameter_name: type - Description

IMPORTANT: Each parameter must be on its own line. Don't put multiple parameters on the same line.

Types you can use:

  • string - Any text
  • number - Numbers (e.g., 42, 3.14)
  • boolean - true or false

Optional parameters: Add ? after the validation

volume: number(0-100)? - Optional volume level

Ranges (for numbers): Specify min-max in parentheses

temperature: number(16-30) - Temperature in degrees Celsius
brightness: number(0-100) - Brightness percentage

Enums (for strings): Specify allowed values separated by | in parentheses

mode: string(on|off|auto) - Operating mode
color: string(red|green|blue) - Light color

Tips for Creating Commands

💡 Usage Examples

Basic Device Control

These commands work out of the box without creating any Flows. Just ask Claude and it will control your devices directly.

Historical Data & Insights

Query and analyze historical device data over time (new in v2.0.0).

Flow Discovery & Analysis

Discover which flows use specific devices or apps (new in v2.0.0).

Mood Overview

View your configured moods and which zones they belong to (new in v2.1.0).

Note: Mood activation via AI is not supported due to Homey API limitations. You can create custom flows using the "AI Tool call" trigger card if you want to activate moods through Claude.

AI Chat Control Flows

To start a Flow using Claude, the Flow must contain an "AI Tool call" card. You cannot start existing Flows that don't have this card.

AI-Powered Queries

These questions leverage Claude's intelligence to analyze and interpret your Homey data in smart ways.

🔧 Troubleshooting

Claude Can't Connect to Homey

Check Network Connection

  1. Verify your computer and Homey are on the same network
  2. Try pinging your Homey: ping [homey-ip]
  3. Make sure your firewall isn't blocking port 3000

Verify Configuration

  1. Double-check the IP address in your Claude config
  2. Ensure the format is exactly: http://[YOUR-HOMEY-IP]:3000/mcp
  3. Make sure there are no typos in the JSON
  4. Restart Claude Desktop after any config changes

Test the Connection

Open a browser and go to:

http://[YOUR-HOMEY-IP]:3000/health

You should see a JSON response with status information. If you get an error or timeout, the app may not be running.

Flow Triggers Not Working

Commands Not Recognized

"spawn npx ENOENT" Error (macOS/Linux)

This error means Claude Desktop can't find the npx command. This typically happens on macOS or Linux when Node.js isn't in the system PATH.

Quick Fix: Verify Node.js Installation

  1. Open Terminal
  2. Run these commands to verify Node.js is installed:
    node --version
    npm --version
    npx --version
  3. If any command fails, install Node.js from nodejs.org

If Node.js is Installed but Error Persists

Option 1: Find the npx path and use it directly

  1. In Terminal, run: which npx
  2. Copy the full path (e.g., /usr/local/bin/npx or /opt/homebrew/bin/npx)
  3. In your Claude config, replace "command": "npx" with the full path:
    {
      "mcpServers": {
        "homey": {
          "command": "/usr/local/bin/npx",
          "args": [
            "-y",
            "mcp-remote",
            "http://192.168.1.50:3000/mcp",
            "--allow-http"
          ]
        }
      }
    }
  4. Save and restart Claude Desktop completely

Option 2: Install mcp-remote globally

  1. In Terminal, run: npm install -g mcp-remote
  2. Find where it was installed: which mcp-remote
  3. Use the full path in your config:
    {
      "mcpServers": {
        "homey": {
          "command": "/usr/local/bin/mcp-remote",
          "args": [
            "http://192.168.1.50:3000/mcp",
            "--allow-http"
          ]
        }
      }
    }
  4. Save and restart Claude Desktop completely
⚠️ macOS Users: If you installed Node.js via Homebrew on Apple Silicon (M1/M2/M3/M4), npx is typically located at /opt/homebrew/bin/npx

Connection Works But Tools Fail

If Claude can see Homey tools but they fail when executed:

  1. Verify the health endpoint works: http://[YOUR-HOMEY-IP]:3000/health
  2. Check the detailed MCP server logs:

    Finding the MCP Server Log File

    macOS:

    1. Open Finder and press Cmd+Shift+G
    2. Paste: ~/Library/Application Support/Claude and press Enter
    3. Open the logs folder
    4. Look for mcp-server-homey.log
    5. Open it and scroll to the bottom for recent errors

    Windows:

    1. Press Win+R and type: %APPDATA%\Claude
    2. Open the logs folder
    3. Look for mcp-server-homey.log
    4. Open it and scroll to the bottom for recent errors

    💡 Tip: If the log file is very large and hard to read, delete it and restart Claude Desktop. Claude will create a fresh log file with only new entries, making it much easier to spot errors.

  3. Look for specific error messages in the log file
  4. Try restarting both the AI Chat Control app in Homey and Claude Desktop
  5. Share the error messages in the forum for help if the issue persists

Performance Issues

Advanced Setup: Auto-Start on macOS

Mac Users: Want AI Chat Control to start automatically when your Mac boots, without keeping terminal windows open?

Community member Roedi_de_Lion created an automated setup that runs everything in the background.

View the step-by-step guide on the forum →

Still Having Issues?

Visit the Homey Community Forum for help.

When asking for help, include:

  • Your Homey firmware version
  • The AI Chat Control app version
  • What you tried and what error you got
  • Your Claude Desktop version