项目作者: MihaelBercic

项目描述 :
HomeKit Accessory Protocol implementation following the specification standard written by Apple.
高级语言: Kotlin
项目地址: git://github.com/MihaelBercic/HomeKit-Accessory-Protocol.git
创建时间: 2020-12-21T14:41:07Z
项目社区:https://github.com/MihaelBercic/HomeKit-Accessory-Protocol

开源协议:

下载


HomeKit Accessory Protocol (HAP)

HomeKit Accessory Protocol based on HAP Specification provided by Apple.

Why?

This project was developed with interest in privacy and understanding of how the HomeKit Accessory Protocol works to provide safe and secure communication between our iDevices and the server itself.

This project implements

  • SRP (secure remote password) for early pairing setup.
  • mDNS service discovery for consistent service advertisement.
  • Ed25519 and Curve25519 for consistent and encrypted communication between controllers and the bridge.

Get started

  1. git clone https://github.com/MihaelBercic/HomeKit-Accessory-Protocol.git
  2. cd HomeKit-Accessory-Protocol # Move to the cloned folder.
  3. ./gradlew jar # Run the jar building task.
  4. nano config.json # edit config.json and then.
  5. java -jar build/libs/HAP-1.0.jar # run the jar built.

Required dependencies


Example Configuration file (config.json)

  1. {
  2. "accessories": [
  3. {
  4. "mac": "FF:AA:BB:CC:DD:EE",
  5. "name": "Balcony Door",
  6. "type": "ShellySwitch",
  7. "ip": "192.168.1.139"
  8. },
  9. {
  10. "mac": "FF:CC:AA:CC:DD:EE",
  11. "name": "Balcony Window",
  12. "type": "ShellySwitch",
  13. "ip": "192.168.1.113"
  14. }
  15. ]
  16. }