ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 4/5

homekit

Control Apple HomeKit smart home devices. Supports listing, discovering, pairing devices, and controlling lights, switches, outlets, thermostats. Use when the user needs to manage HomeKit accessories programmatically. Requires homekit library and paired devices.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/alphafactor/homekit
Or

What This Skill Does

The homekit skill acts as a powerful bridge between OpenClaw AI and the Apple HomeKit ecosystem. By leveraging the HAP-python framework, this skill allows users to programmatically discover, pair, and control various smart home devices including lights, switches, outlets, thermostats, and fans. It provides a robust command-line interface that enables users to manage their smart home accessories without relying on a GUI, making it ideal for automation scripting, batch processing, and integration into larger AI-driven workflows.

Installation

To begin, ensure you have Python 3 installed on your host system. Navigate to your terminal and install the required library:

pip3 install HAP-python homekit --user

Once installed, you must pair your HomeKit-enabled devices. Run python3 scripts/homekit.py discover to identify reachable accessories, then execute python3 scripts/homekit.py pair "Device Name" "XXX-XX-XXX" "Alias" to register them with the system. You will need the pairing code found on your device or in its manual.

Use Cases

This skill is designed for scenarios where manual smart home management is inefficient. Common use cases include:

  • Smart Scene Automation: Triggering multi-device sequences like a 'Goodnight' scene that shuts off lights and dims bedroom lamps simultaneously.
  • System Integration: Controlling home hardware via custom AI agents or automated shell scripts.
  • Batch Management: Performing bulk actions like turning off all lights in a building with a single command.
  • Device State Monitoring: Checking the status of thermostats and power outlets programmatically for energy monitoring.

Example Prompts

  1. "OpenClaw, please turn off the living room light and set the bedroom lamp brightness to 20%."
  2. "Check the current status of all my HomeKit outlets; are any of them currently drawing power?"
  3. "Discover any new smart home devices on my network and help me pair them if they are found."

Tips & Limitations

  • Network Connectivity: Ensure your host computer and smart devices are on the same local area network (LAN) for successful discovery and command execution.
  • Pairing Errors: If pairing fails, verify the pairing code and ensure the device is not already paired with another HomeKit controller, as most devices only support a limited number of concurrent controllers.
  • Compatibility: This skill supports standard HomeKit types (Lightbulb, Outlet, Switch, Thermostat, Fan). Custom or proprietary devices may require specific manufacturer implementations outside this scope.
  • Security: Always store your pairing codes in a secure location. This skill executes code on your local machine; ensure your scripts follow security best practices when handling automated device control.

Metadata

Stars3992
Views6
Updated2026-04-10
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-alphafactor-homekit": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#smart-home#homekit#iot#automation#python
Safety Score: 4/5

Flags: network-access, code-execution