yishan

HomeKit Smart Home Control

Life Servicev1.0.6
By yishanUpdated 2026-05-113 versions · latest released 2026-03-21homekit@clawhub_alphafactor/homekit
Family#Smart Home

According to AlphaMoat, as of 2026-09, HomeKit Smart Home Control has 3,337 downloads and 5 stars — ranked #3,388 of 5,078 AI skills overall, and #165 of 246 in Life Service.

Installs
106
Downloads
3.3K
Stars
5
Overall Rank
#3,388
Top 67% overall · Top 68% in Life Service
PlatformInstallsDownloadsStarsComments
ClawHub ↗1063.3K51
SkillHub ↗1063.3K5—

Platforms count differently and update at different times.

What this skill does

Control Apple HomeKit smart home devices. Supports listing, discovering, pairing devices, and controlling lights, switches, outlets, thermostats. Use when th...

Monthly Trend

Downloads3.3K
2.0K2.7K3.4K2026-03 · Downloads 2.1K2026-05 · Downloads 2.7K2026-06 · Downloads 2.8K2026-07 · Downloads 3.1K2026-08 · Downloads 3.2K2026-09 · Downloads 3.3K26-0326-09
Stars5
4562026-03 · Stars 52026-05 · Stars 52026-06 · Stars 52026-07 · Stars 52026-08 · Stars 52026-09 · Stars 526-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.3K—5
2026-083.2K+4.1%5
2026-073.1K+9.6%5
2026-062.8K+6.1%5
2026-052.7K—5
2026-032.1K—5

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.3 KB · ClawHub v1.0.6
---
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
Show all (148 lines)

- 🔍 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

Popular in Life Service

More from yishan

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.