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:
@@ -393,6 +393,8 @@
|
||||
if (probes.mdns.model) p.set('mdns_model', probes.mdns.model);
|
||||
if (probes.mdns.category) p.set('mdns_category', probes.mdns.category);
|
||||
if (probes.mdns.device_id) p.set('mdns_device_id', probes.mdns.device_id);
|
||||
if (probes.mdns.port) p.set('mdns_port', probes.mdns.port);
|
||||
p.set('mdns_paired', probes.mdns.paired ? '1' : '0');
|
||||
}
|
||||
|
||||
window.location.href = 'homekit.html?' + p.toString();
|
||||
|
||||
Reference in New Issue
Block a user