# HomeKit

**HomeKit** 是苹果（Apple）的智能家居框架，集成于 iOS、iPadOS、macOS 和 tvOS，让家庭能够通过 Apple 家庭 App（Home app）和 Siri 发现、配对、控制并自动化经过认证的配件，如灯、锁、恒温器和摄像头。配件通过 HomeKit 配件协议（HAP）或跨平台智能家居连接标准 [Matter](https://www.edgepedia.org/zh/matter-standard) 通信，使用 Wi-Fi、低功耗蓝牙（BLE）或 [Thread](https://www.edgepedia.org/zh/thread-network-protocol) 传输。<sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/pii/S1570870526002052)</sup>

| 关键事实 | 详情 |
|---|---|
| 它是什么 | 苹果以安全和隐私为重点的智能家居框架，内置于 iOS、iPadOS、macOS 和 tvOS，并通过家庭 App 管理<sup>[3](https://raw.githubusercontent.com/CankayaUniversity/ceng-407-408-2025-2026-A-Smarthome-System/Documents/Final%20Report.pdf)</sup> |
| 协议 | 配件使用 HomeKit 配件协议（HAP）或 Matter；传输方式包括 IP、低功耗蓝牙和 Thread<sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup> |
| 家庭中枢 | HomePod、HomePod mini 或 Apple TV 4K 充当家庭中枢，远程访问、自动化和 Matter 配件都需要它；Thread 设备需要支持 Thread 的中枢，例如 HomePod mini 或 Apple TV 4K（第三代）Wi-Fi + 以太网<sup>[4](https://support.apple.com/en-gb/102557)</sup><sup> • </sup><sup>[5](https://support.apple.com/en-mide/guide/iphone/iph22d98bbca/27/ios/27)</sup> |
| 加密 | 用户设备与家庭中枢之间的命令通过苹果身份服务（IDS）进行端到端加密和认证；广播数据使用由 HKDF-SHA-512 派生的密钥，并以 ChaCha20-Poly1305 AEAD 加密<sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup><sup> • </sup><sup>[6](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup> |
| HomeKit 安全视频 | 摄像头录像经过加密，运动检测在家庭中枢上处理；该功能需要 iCloud+ 方案和兼容摄像头<sup>[7](https://smartlivingweb.com/platforms/apple-home/)</sup> |
| 架构支持终止 | 苹果在 2025 年确认，对原始 HomeKit 架构的支持将于 2026 年 2 月 10 日结束，从而完成向更新的 Apple Home 架构历时数年的过渡<sup>[8](https://www.youtube.com/watch?v=rvJNjvKyvwE)</sup> |

## 架构与家庭中枢

HomeKit 采用本地优先、去中心化的中枢架构，其中 iPhone 上的家庭 App 通过本地网络直接与配件和家庭中枢通信。<sup>[3](https://raw.githubusercontent.com/CankayaUniversity/ceng-407-408-2025-2026-A-Smarthome-System/Documents/Final%20Report.pdf)</sup> HomePod 或 Apple TV 充当中枢，其中至少一台设备必须开机并运行，自动化、远程访问和共享访问才能工作。<sup>[7](https://smartlivingweb.com/platforms/apple-home/)</sup> 只有家庭所有者才能将 HomePod 或 Apple TV 添加到家庭 App，将其设置为家庭中枢；用户可以关闭自动选择（Automatic Selection），手动选择偏好的中枢。<sup>[4](https://support.apple.com/en-gb/102557)</sup>

支持 Thread 的 Matter 配件需要支持 Thread 的家庭中枢，例如 HomePod mini 或 Apple TV 4K（第三代）Wi-Fi + 以太网，或受支持的第三方边界路由器。Thread 边界路由器在 Thread 网络与 Wi-Fi 或以太网之间路由 IP 流量，使 iOS 设备能够与 Thread 设备通信。<sup>[4](https://support.apple.com/en-gb/102557)</sup><sup> • </sup><sup>[9](https://ma-kobol-public-prod.apple.com/documentation/ThreadNetwork)</sup>

## 安全模型

**端到端加密。** 从用户设备发往家庭中枢的命令，使用苹果身份服务（IDS）进行端到端加密和认证，然后通过 HAP 或 Matter 转发给相关配件。这适用于基于 IP 的配件和 BLE 配件。<sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup> 广播加密密钥是由 HKDF-SHA-512 派生的密钥，其保护的数据使用 ChaCha20-Poly1305 AEAD 算法加密；该密钥会定期更换，并通过 iCloud 在其他设备上更新。<sup>[6](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup><sup> • </sup><sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup>

**配对与身份。** Matter 配件生成自己的 NIST P256 密钥对和[证书签名请求](https://www.edgepedia.org/zh/certificate-signing-request)，并在配件配对期间从证书颁发机构获得证书。<sup>[1](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)</sup> 更广泛地说，Matter 标准（其 1.0 版由连接标准联盟（Connectivity Standards Alliance）于 2022 年 10 月发布）将设备身份植根于 X.509 证书，并通过 SPAKE2+ 口令认证密钥交换保障配网安全。<sup>[2](https://www.sciencedirect.com/science/article/pii/S1570870526002052)</sup> 当 HomeKit 在配置了 HomeKit 路由器的家庭中将配件添加到 Wi-Fi 网络时，会使用每配件预共享密钥（PPSK），在“设置”中显示为“Wi-Fi 凭据：由 HomeKit 管理”。<sup>[10](https://help.apple.com/pdf/security/en_GB/apple-platform-security-guide-b.pdf)</sup>

**隐私立场。** HomeKit 安全视频加密录像，并在家庭中枢而非云端处理检测，评论者称其为真正的隐私优势。<sup>[7](https://smartlivingweb.com/platforms/apple-home/)</sup> 《时代》（Time）2015 年的一篇评估文章认为，HomeKit 的端到端加密意味着任何人——甚至苹果——都无法读取 HomeKit 通知，同时指出代价是苹果决定哪些配件类别可以发送这些通知。<sup>[11](https://time.com/4480681/apple-home-homekit-notifications/)</sup> 请求 HomeKit 访问权限的 App 在获得用户批准后，可以读取房间和配件的名称以及每个配件所属的房间。<sup>[10](https://help.apple.com/pdf/security/en_GB/apple-platform-security-guide-b.pdf)</sup>

## Matter 集成

在开发者一侧，App 可以将[二维码](https://www.edgepedia.org/zh/qr-code)载荷直接传给配对 API，在配网期间扫描附近网络，并将 Matter 配件配网到特定的 Wi-Fi 或 Thread 网络。未实现自有 Matter 生态的 App 可以使用 HomeKit API，同时控制 Matter 配件和 HAP 配件；只需一项 HomeKit 授权，即可访问用户添加到 Apple Home 的所有配件，无需重新配对。<sup>[12](https://developer.apple.com/apple-home/matter/)</sup>

对 Matter 的支持存在实际限制。Matter 不涵盖安全摄像头或门铃，设备特有的功能可能在转换中丢失；例如，通过 Matter 添加到第三方生态的智能锁可能只支持上锁和解锁。<sup>[13](https://www.tomsguide.com/home/smart-home/eufy-familock-s3-max-review)</sup> Matter 对安防系统的支持也仍然有限，因此兼容 HomeKit 的安防系统少于支持更广泛平台的安防系统。<sup>[14](https://alarm-reviews.net/homekit-home-security/)</sup>

## 家庭 App 中的功能

家庭 App 按房间组织配件，归入气候、灯光、安防、扬声器与电视、用水等类别，并设有家庭、自动化和发现标签页。<sup>[5](https://support.apple.com/en-mide/guide/iphone/iph22d98bbca/27/ios/27)</sup> 支持的能力包括：HomeKit 安全视频摄像头在识别到人或包裹时通知用户；兼容门锁的家庭钥匙；分组扬声器播放同一音频；在支持的设备之间发送对讲消息；以及按计划或在配件状态变化时运行的自动化，例如前门解锁时。<sup>[5](https://support.apple.com/en-mide/guide/iphone/iph22d98bbca/27/ios/27)</sup>

## 限制

Apple Home 不提供本地 API，也不提供配置导出，但确实支持通过自动化进行脚本编写，包括用快捷指令（Shortcuts）操作创建的自动化。<sup>[7](https://smartlivingweb.com/platforms/apple-home/)</sup><sup> • </sup><sup>[16](https://support.apple.com/en-ae/guide/shortcuts/apddb94c7489/9.0/ios/26)</sup> 由于 HomeKit 认证执行苹果的安全和功能标准，兼容设备的范围比更宽松的平台窄，而且苹果可依靠的厂商集成少于 Alexa 或 Google，这一限制部分继承自 Matter 本身。<sup>[15](https://www.cs.dartmouth.edu/~kotz/research/mangar-framework/mangar-framework.pdf)</sup><sup> • </sup><sup>[7](https://smartlivingweb.com/platforms/apple-home/)</sup>

## References

1. [HomeKit communication security, Apple Support](https://support.apple.com/en-ca/guide/security/sec3a881ccb1/web)
2. [A systematic survey of post-matter smart-home mesh security, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S1570870526002052)
3. [Apple HomeKit system overview, Cankaya University Ceng 407-408 final report](https://raw.githubusercontent.com/CankayaUniversity/ceng-407-408-2025-2026-A-Smarthome-System/Documents/Final%20Report.pdf)
4. [Set up your HomePod, HomePod mini or Apple TV as a home hub, Apple Support](https://support.apple.com/en-gb/102557)
5. [Intro to Home on iPhone, Apple Support](https://support.apple.com/en-mide/guide/iphone/iph22d98bbca/27/ios/27)
6. [Apple Platform Security guide](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)
7. [Apple Home: what it does well and where it stops, Smart Living Web](https://smartlivingweb.com/platforms/apple-home/)
8. [Goodbye to HomeKit and Looking Ahead to Apple Home in 2026 and beyond, Apple Home Authority (YouTube)](https://www.youtube.com/watch?v=rvJNjvKyvwE)
9. [ThreadNetwork, Apple Developer Documentation](https://ma-kobol-public-prod.apple.com/documentation/ThreadNetwork)
10. [Apple Platform Security guide (en_GB)](https://help.apple.com/pdf/security/en_GB/apple-platform-security-guide-b.pdf)
11. [Apple's New Smart Home Platform Has One Big Flaw, Time](https://time.com/4480681/apple-home-homekit-notifications/)
12. [Matter support in iOS, Apple Developer](https://developer.apple.com/apple-home/matter/)
13. [Eufy FamiLock S3 Max review, Tom's Guide](https://www.tomsguide.com/home/smart-home/eufy-familock-s3-max-review)
14. [HomeKit Home Security 2026, Alarm Reviews](https://alarm-reviews.net/homekit-home-security/)
15. [A Framework for Evaluating the Security and Privacy of Smart-Home Devices, Dartmouth College](https://www.cs.dartmouth.edu/~kotz/research/mangar-framework/mangar-framework.pdf)
16. [Intro to home automation in Shortcuts on iPhone or iPad](https://support.apple.com/en-ae/guide/shortcuts/apddb94c7489/9.0/ios/26)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 通信与日常技术 › 消费电子产品与设备 › Home and personal electronics › Smart home devices

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/homekit

English original: https://www.edgepedia.org/homekit
