hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
152 stars 83 forks source link

HomeKit Controller Support #188

Open AndreKoepke opened 2 months ago

AndreKoepke commented 2 months ago

I have a device that supports HomeKit (motion sensor, Aqara FP2).
Is it possible to link that device directly to this library?

I mean something like this:

    var homekit = new HomekitServer(9123);
    var bridge = homekit.createBridge(auth, "test", 1, "me", "pc", "abc", "abc", "abc");
    bridge.start();
    bride.pair("X-HM://0023GXL1U1234"); // <- printed as QR-code on motion-sensor
ccutrer commented 2 months ago

This project is meant to act as a HomeKit accessory, not a HomeKit controller. It could be used as a springboard to adding controller support, given that the data structures are the same, but it would take significant development effort to implement the controller side.