Homekit
@bixu/homekitv2026.10.22.1
01README
Discover, pair with, and read sensors from HomeKit accessories — pure TypeScript HAP protocol implementation
02Behaviors
@bixu/homekitv2026.03.14.3homekit.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| discoveryTimeout? | number | Seconds to wait for mDNS discovery (default: 10) |
fn discover(timeout?: number)
Discover HomeKit accessories on the local network via mDNS
| Argument | Type | Description |
|---|---|---|
| timeout? | number | Override discovery timeout in seconds |
fn pair(accessoryName: string, setupCode: string)
Pair with a HomeKit accessory using its setup code (from the accessory label or app)
| Argument | Type | Description |
|---|---|---|
| accessoryName | string | Name of a discovered accessory to pair with |
| setupCode | string | 8-digit setup code in XXX-XX-XXX format |
fn readSensors(accessoryName: string)
Read sensor data (temperature, humidity, etc.) from a paired accessory
| Argument | Type | Description |
|---|---|---|
| accessoryName | string | Name of a discovered accessory to read sensors from |
Resources
discovery(infinite)— Discovered HomeKit accessories on the local network
accessory(infinite)— Individual HomeKit accessory
summary(infinite)— Summary of a discovery or sensor operation
pairing(infinite)— Stored pairing credentials for a HomeKit accessory
sensorReading(infinite)— Sensor reading from a paired HomeKit accessory
sensorSummary(infinite)— Summary of sensor readings
03Previous Versions
2026.04.24.1
2026.04.23.1
2026.03.15.1
2026.03.14.3
2026.03.14.2
04Stats
C
66 / 100
Downloads
54
Archive size
68.6 KB
- Has README or module doc0/2missing
- README has a code example0/1missing
- README is substantive0/1missing
- Most symbols documented0/1missing
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Repository
https://github.com/bixu/swamp-extensions05Platforms
06Labels