🤖 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

Step 2: Find Your Homey's IP Address

Method 1: Via Homey App

  1. Open the Homey app
  2. Go to MoreSettings
  3. Under System Info, tap General
  4. Tap About
  5. Under Connectivity, look for the Wi-Fi address value

Method 2: Via Router

  1. Log in to your router's admin panel
  2. Look for connected devices
  3. Find "Homey" in the device list
⚠️ Important: Your computer and Homey must be on the same local network for this app to work.

🔧 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

Windows:

%APPDATA%\Claude\claude_desktop_config.json

macOS:

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

Linux:

~/.config/Claude/claude_desktop_config.json

2. Edit the Configuration File

Open the file in a text editor and add the following configuration:

{
  "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. Full Example Configuration

If you already have other MCP servers configured, your file might look like this:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Documents"]
    },
    "homey": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://192.168.1.50:3000/mcp",
        "--allow-http"
      ]
    }
  }
}

4. 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.

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

Performance Issues

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