top | item 46974781

(no title)

j4mie | 19 days ago

This looks great! Question on the API/CLI - is there any provision for capturing frames (or even streams?) from Homekit cameras, or even triggering events or webhooks based on the cameras detecting motion?

discuss

order

nixus76|19 days ago

The camera streams are HLS via AVFoundation – Apple doesn't expose raw frames, so no programmatic capture there. But motion detection events do flow through the SSE endpoint (/events), so you can use those to trigger webhooks or automations. For HA cameras there's also a snapshot endpoint you can hit on demand, e.g. when motion fires.

SSE is in the upcoming 2.0.0 which is currently on TestFlight – happy to add you if you want to try it out.