Java implementation of the HomeKit Accessory Protocol
Clone or download
beowulfe Merge pull request #52 from timcharper/tharper/leak-sensor
Add support for LeakSensor and Valve devices
Latest commit 3ec7264 Jan 6, 2019


HAP-Java is a Java implementation of the Homekit Accessory Protocol.

Using this library, you can create your own Homekit Accessory or Homekit Accessory Bridge.

Because the MFi Specification is closed to individual developers, and this implementation was made without access to that specification, it may not be complete. iOS devices do recognize and are able to interact with accessories exposed via this library however.

This library would not have been possible without Tian Zhang who did a lot of the hard work of figuring out how the protocol works in his NodeJS implementation.


Include HAP-Java in your project using maven:


After that, read the Javadoc and check out the Sample.