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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alphafactor/homekitWhat 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
- "OpenClaw, please turn off the living room light and set the bedroom lamp brightness to 20%."
- "Check the current status of all my HomeKit outlets; are any of them currently drawing power?"
- "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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alphafactor-homekit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
todo
**macOS Only** - Manage macOS Reminders app via AppleScript. Full-featured reminder management: add, list, complete, delete, search, create lists, and more. **Note: This skill is macOS-only**, requiring the native Reminders app. Use cases: - Create reminders with due dates and priorities - List reminders from specific lists or incomplete ones - Mark reminders as complete/uncomplete - Delete reminders - Search reminders by title or content - Create new reminder lists - View today's due reminders
Wechat Connect
Install OpenClaw's official WeChat plugin and complete account pairing via QR code scan. Triggers when the user says "install WeChat plugin", "connect WeChat", or "WeChat QR code". No command-line interaction required.
Ghost
Skill by alphafactor
Crypto Market
Cryptocurrency market data and price alert monitoring tool based on CCXT. Supports multiple exchanges, real-time price tracking, and configurable price/volatility alerts. Use when the user needs to monitor crypto prices or set up trading alerts. Default exchange is Binance.
Tushare Pro
Fetch Chinese stock and futures market data via Tushare API. Supports stock quotes, futures data, company fundamentals, and macroeconomic indicators. Use when the user needs financial data from Chinese markets. Requires TUSHARE_TOKEN environment variable.