Skip to main content
Part of MajorDom — the next-gen smart home

integration-homekit

A MajorDom integration — bridges Apple HomeKit accessories into the MajorDom language.

Built for the MajorDom Hub, but it doesn't need it: this is a standalone, standardized library for HomeKit that you can use on its own (see Run it standalone below). Built on the MajorDom Integration SDK. The entry point is HomeKitController (majordom_homekit/controller.py), which the Hub — or the SDK's dev runner — instantiates and drives through its lifecycle: discovery → pairing → commands → teardown.

Documentation

Full integration-author docs — the controller lifecycle, data models, storing data, discovery, and a worked example — live at docs.majordom.io.

Development

poetry install && poetry run poe install
Task Description
poe check Full quality pipeline (ruff, ty, pytest, poetry build/check)
poe check --ci Same, plus git diff --exit-code

Work lands on develop; master is protected and released via Actions → Release. Tests drive the controller with the SDK's test doubles against an in-process fake HAP accessory server — no real accessory required (see tests/).

Run it standalone (without the Hub)

majordom-homekit is a standalone library — import it into your own app, or run just this integration interactively (discover, pair, control, and inspect devices from a prompt) with no Hub. It discovers IP accessories over mDNS; no external service is required.

See Standalone mode for the interactive CLI, watch mode, and the programmatic API.

About this integration

  • Protocol / platform: Apple HomeKit Accessory Protocol (HAP) via the parker-aiohomekit fork of aiohomekit.
  • Transport(s): IP (Wi-Fi / Ethernet, discovered via mDNS). BLE is not supported yet: discovery and pairing are in progress, and the transport stays disabled until the encrypted session is verified on hardware.
  • Supported devices: HomeKit-compatible accessories — lights, plugs, switches, sensors, locks.
  • Credentials needed to pair: code (the accessory's 8-digit HomeKit setup code).

Required harness

  • Hardware adapters: none.
  • Third-party software services: none — aiohomekit speaks HAP directly.
  • OS / permissions: mDNS on the LAN for discovery.

Protocol stack (OSI)

OSI layer Protocol Implemented by
Application (7) HAP characteristics / services this integration (via aiohomekit)
Session (5) Pair-Setup / Pair-Verify (SRP, Ed25519) library (aiohomekit)
Transport (4) TCP (IP) OS
Network + below (1–3) IP over Wi-Fi / Ethernet OS

Progress

  • Discovery services registered (mDNS via zeroconf_discovery_service); cancel closures called in stop
  • Discovery listeners fire and call controller_did_receive_discovery
  • Re-discovery of already-paired accessories on reconnect (controller_did_connect_device)
  • Device pairing (HAP pair-setup with the setup code)
  • Device schema mapped: services/characteristics → parameter list with per-parameter metadata
  • Hub → Device control (send_command)
  • Device → Hub event subscription (controller_did_receive_events)
  • identify
  • unpair
  • fetch
  • Availability tracking while running (controller_did_lose_device / last_error)
  • Graceful shutdown in stop
  • Tests pass against a fake HAP accessory server (tests/)
  • Owned — maintained by Parker Industries
  • BLE accessories (discovery and pairing in progress; disabled until the encrypted session is verified on hardware)

Notes

Uses the parker-aiohomekit fork of aiohomekit; note its Python upper bound (<3.14).

License

See LICENSE. For commercial licensing or partnership inquiries regarding MajorDom, contact us via parker-industries.org/partnership.

Metadata

Release files for majordom-homekit 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for majordom-homekit 0.1.9
File Size Uploaded Provenance Actions
majordom_homekit-0.1.9.tar.gz 18.5 kB With provenance Details for majordom_homekit-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for majordom-homekit 0.1.9
File Interpreter ABI Platform Actions
majordom_homekit-0.1.9-py3-none-any.whl Python 3 none any Details for majordom_homekit-0.1.9-py3-none-any.whl

Total release size: 38.5 kB

Release files / majordom_homekit-0.1.9.tar.gz

Download URL majordom_homekit-0.1.9.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
675e3bbc1ad4428475d532e82d27539493e27a143b95112d61de886756fa21c7
BLAKE2b-256 checksum
How to use checksums
96e7a772c1f292e30aeef22d5fa7bcc9563176fb54cf9bdc1cccd99899744035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / majordom_homekit-0.1.9-py3-none-any.whl

Download URL majordom_homekit-0.1.9-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b487aadedc77996b11aea0f9736087a50137b42c4ea420deff6bdbce4498fa75
BLAKE2b-256 checksum
How to use checksums
0caf51f8a65cba1035cd86d486ab02a4b74a2e2d58b351e4bcd6cdf109b4338d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for majordom-homekit 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for majordom_homekit-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page