Skip to main content

Homekit

@bixu/homekitv2026.10.22.1· MIT(was none)· 4d agoBEHAVIORS
01README

Discover, pair with, and read sensors from HomeKit accessories — pure TypeScript HAP protocol implementation

02Behaviors1
@bixu/homekitv2026.03.14.3homekit.ts

Global Arguments

ArgumentTypeDescription
discoveryTimeout?numberSeconds to wait for mDNS discovery (default: 10)
fn discover(timeout?: number)
Discover HomeKit accessories on the local network via mDNS
ArgumentTypeDescription
timeout?numberOverride 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)
ArgumentTypeDescription
accessoryNamestringName of a discovered accessory to pair with
setupCodestring8-digit setup code in XXX-XX-XXX format
fn readSensors(accessoryName: string)
Read sensor data (temperature, humidity, etc.) from a paired accessory
ArgumentTypeDescription
accessoryNamestringName 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 Versions5
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
05Platforms
06Labels