據 AlphaMoat 統計,截至 2026-09,HomeKit Smart Home Control 累計下載 3,337 次、獲 5 個星標,在全部 5,078 個 AI 技能中排名第 3,388 位,在「生活服務」分類(246 個)中排名第 165 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 106 | 3337 | 5 | 1 |
| SkillHub ↗ | 106 | 3333 | 5 | — |
各平台的計數口徑不同,統計時間不一致。
主文支援裝置發現和配對、列出裝置、檢視狀態,以及控制燈、開關、插座、風扇和恆溫器。控制命令會直接改變真實家庭裝置狀態;應先確認目標別名和動作,在執行前由使用者明確確認,尤其是恆溫器或其他影響安全與財產的裝置。配對 PIN 和本地配對資訊也需妥善保護,不要讓 PIN 留在命令歷史中。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 3337 | — | 5 |
| 2026-08 | 3231 | +4.1% | 5 |
| 2026-07 | 3103 | +9.6% | 5 |
| 2026-06 | 2830 | +6.1% | 5 |
| 2026-05 | 2668 | — | 5 |
| 2026-03 | 2119 | — | 5 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: homekit description: 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. --- # HomeKit Smart Home Controller Control Apple HomeKit smart home devices using Python scripts. ## Features
- 🔍 Discover unpaired devices
- 🔗 Pair/Unpair devices
- 📱 List all paired devices
- 💡 Control light switches and brightness
- 🔌 Control outlets and switches
- 🌡️ View device status
## Prerequisites
### 1. Install Dependencies
```bash
pip3 install HAP-python homekit --user
```
### 2. Pair Devices
Pair your devices before first use:
```bash
# Discover devices
python3 scripts/homekit.py discover
# Pair a device
python3 scripts/homekit.py pair "Device Name" "XXX-XX-XXX" "alias"
```
The pairing code is usually found in the device manual or on the device itself (format: XXX-XX-XXX).
## Usage
### List All Devices
```bash
python3 scripts/homekit.py list
```
Example output:
```
📱 Found 3 devices:
Alias Name Type Status
----------------------------------------------------------------------
💡 living-light Living Room Light Lightbulb on (80%)
🔌 desk-outlet Desk Outlet Outlet off
💡 bedroom-lamp Bedside Lamp Lightbulb off
```
### Control Devices
**Turn on:**
```bash
python3 scripts/homekit.py on living-light
```
**Turn off:**
```bash
python3 scripts/homekit.py off living-light
```
**Set brightness (0-100):**
```bash
python3 scripts/homekit.py brightness living-light 50
```
### View Device Status
```bash
python3 scripts/homekit.py status living-light
```
### Device Management
**Discover new devices:**
```bash
python3 scripts/homekit.py discover --timeout 10
```
**Unpair a device:**
```bash
python3 scripts/homekit.py unpair living-light
```
## Supported Device Types
| Type | Supported Operations |
|------|---------|
| 💡 Lightbulb | On/Off, Brightness |
| 🔌 Outlet | On/Off |
| 🔲 Switch | On/Off |
| 🌡️ Thermostat | View temp, Set target temp |
| 🌀 Fan | On/Off, Speed |
## Troubleshooting
**Error: homekit library not installed**
→ Run: `pip3 install HAP-python homekit --user`
**Error: Device not found**
→ Ensure the device and computer are on the same WiFi network.
**Error: Pairing failed**
→ Check if the pairing code is correct and the device is in pairing mode.
**Device shows offline**
→ Try re-pairing or check device power.
## Advanced Usage
### Batch Control
```bash
# Turn off all lights
for device in living-light bedroom-lamp kitchen-light; do
python3 scripts/homekit.py off $device
done
```
### Scene Script Example
Create `~/scripts/goodnight.sh`:
```bash
#!/bin/bash
# Goodnight Scene: Turn off all lights except a dim bedside lamp
python3 ~/.openclaw/workspace/homekit/scripts/homekit.py off living-light
python3 ~/.openclaw/workspace/homekit/scripts/homekit.py off kitchen-light
python3 ~/.openclaw/workspace/homekit/scripts/homekit.py brightness bedroom-lamp 10
echo "Goodnight 😴"
```
## References
- HomeKit Official Docs: https://developer.apple.com/homekit/
- Library Docs: https://github.com/jlusiardi/homekit_python
用 curl 直接查詢公開天氣服務,取得目前天氣與預報。
在區域網裡發現並控制 Sonos 音箱的命令列工具。
以六爻占卜方式作答的技能。
用本地 JSON 記錄飲水量與睡眠的技能。
在本地同步並查詢 CalDAV 日曆的命令列技能。
在 macOS 上透過 remindctl 管理 Apple 提醒事項的技能。
travel-cn 聚合去哪兒/攜程/飛豬等中國旅行平台的資料查詢,覆蓋機票、酒店、火車票、景點門票與行程規劃。
在終端裡搜尋與控制 Spotify 播放的技能。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。