Add HomeKit camera pairing support

- Add POST /api/homekit/pair endpoint that calls hap.Pair() from go2rtc
- Rewrite homekit.html with PIN input UI (XXX-XX-XXX format)
- Auto-advance between digit fields, paste support, error/success states
- On successful pairing, redirect to create.html with homekit:// URL
- Pass mdns_port and mdns_paired from probe to homekit.html
- Detect HomeKit cameras regardless of pairing status
This commit is contained in:
eduard256
2026-04-05 12:43:06 +00:00
parent e2e24c7578
commit a9820abc37
7 changed files with 397 additions and 84 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func Init() {
ports = loadPorts()
// HomeKit detector
detectors = append(detectors, func(r *probe.Response) string {
if r.Probes.MDNS != nil && !r.Probes.MDNS.Paired {
if r.Probes.MDNS != nil {
if r.Probes.MDNS.Category == "camera" || r.Probes.MDNS.Category == "doorbell" {
return "homekit"
}