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.11

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.11
File Size Uploaded Provenance Actions
majordom_homekit-0.1.11.tar.gz 20.0 kB With provenance Details for majordom_homekit-0.1.11.tar.gz

Built distribution (wheel)

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

Total release size: 41.4 kB

Release files / majordom_homekit-0.1.11.tar.gz

Download URL majordom_homekit-0.1.11.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f31ccfa7a7e6421424afcb2ee4d999cff519e55024f2e8ccf0a647dca491f55b
BLAKE2b-256 checksum
How to use checksums
5f0e207d82022a3934a4532d0abd17c650dcd351754a7fd8d07021dc5b2b95ab
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 Nov 30, 2026.

Transparency log

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

Download URL majordom_homekit-0.1.11-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a97230646dba0facba4575d751159927b83f644cd63c7e64d8800f8f33330f93
BLAKE2b-256 checksum
How to use checksums
2ace6c298e7023bb9c7a14a8c98a4c2e36f79cf16db26e539b4e50a4ed27aa9e
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 Nov 30, 2026.

Transparency log

Security for majordom-homekit 0.1.11

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for majordom_homekit-0.1.11.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 Nov 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