Stream to Homekit
Create a Homekit Camera accessory that can be discovered from and streams to Apple Homekit compatible devices.
Overview
This node creates a Homekit Camera accessory that can be discovered from and streams to Apple Homekit compatible devices. It can optionally support HomeKit Secure Video (HKSV) to record motion-triggered clips to your Apple Home hub and iCloud.
This node can be used at any point in a PIpeline, but requires a Stream RTSP Node to be present in that PIpeline to function.
Inputs & Outputs
- Inputs : 1, Media Format : Raw
- Outputs : 1, Media Format : Raw
- Output Metadata : None
Properties
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
homekit_camera_name | Camera name as it appears in Homekit. If not specified, it will be set to the deployment name. | string | null | No |
homekit_pin | Pin to be used to link the camera to Homekit. Must be of format xxx-xx-xxx. | string | — | Yes |
trigger | Send a motion detected notification to Homekit when this condition evaluates to true. | trigger-condition | null | No |
source_node | RTSP output node whose stream to use as the source for the Homekit stream. If not specified, uses the first one it finds. | string | null | No |
enable_hksv | Advertise HomeKit Secure Video so the camera can record motion-triggered clips to your Apple Home hub (HomePod / Apple TV) and iCloud. Requires an iCloud+ plan and a home hub. Recordings are produced as fragmented MP4 from the same RTSP source used for live streaming. | bool | true | No |
enable_debug_logs | Emit verbose per-event diagnostics (HomeKit connections, motion events, stream/recording setup, data-stream frames) to the node logs. Leave off for normal operation; enable only when troubleshooting. | bool | false | No |
Output Metadata
Node does not insert any output metadata; upstream metadata continues through the pipeline
Homekit Discovery
Once the deployment with this Pipeline is running, on a IOS/Apple device, perform the following steps to discover and link the Camera:
- Open the Home App, navigate to "Add Accessory"
- Select "More Options" and you should see the Cameras listed there.
HomeKit Secure Video (HKSV)
When enable_hksv is turned on, this node advertises the additional HomeKit services required for Secure Video recording (Camera Operating Mode, Camera Event Recording Management and Data Stream Transport Management) on top of the live stream.
Requirements
- An iCloud+ subscription (Secure Video recordings do not count against your iCloud storage).
- A home hub that is always on — a HomePod, HomePod mini, or Apple TV 4K. The home hub performs analysis and stores the recordings; the camera only supplies video.
- The Lumeo deployment device and the home hub must be on the same local network.
How it works
- The Lumeo Pipeline produces an RTSP stream (via a Stream RTSP Node), which this node also uses for live HomeKit viewing.
- When HKSV is enabled and you set the camera to Stream & Allow Recording in the Home app, the node continuously re-muxes that RTSP stream into fragmented MP4 and keeps a short rolling prebuffer in memory.
- When the
triggercondition fires (motion), the Home app opens a HomeKit Data Stream and the node pushes the prebuffered footage followed by live fragments until the event ends. The home hub analyzes and stores the clip.
Setup
- Configure a
triggercondition that represents motion/activity for your use case (e.g. a line-counter or presence trigger). - Enable
enable_hksv. - Add the camera in the Home app as described above.
- Open the camera settings in the Home app, choose Recording Options, select the home hub, and set the desired mode (e.g. Stream & Allow Recording and Record: When Motion Is Detected).
Recordings are video-only (the recording pipeline muxes H.264 video only).
Updated 11 days ago
