HomeKit
Publishing Dominevo cameras and devices to Apple Home — what appears, the network it needs, pairing, the shared bridge, HomeKit Secure Video and viewing away from home.
The HomeKit exporter publishes your cameras and devices to the Apple Home app, on iPhone, iPad, Mac, Apple TV and Apple Watch. This page covers what appears in Home, what your network needs, how to pair, and what to expect from live video at home and away.
What appears in Home
Cameras
Each exposed camera is its own accessory in Home. Depending on what the camera has, it carries:
| In Home | When |
|---|---|
| Live video and snapshots | Always. |
| Doorbell | The camera has a doorbell. The accessory becomes a video doorbell, and a press rings your HomePods and Apple TVs. |
| Motion sensor | The camera runs motion detection in Dominevo. Usable in Home automations. |
| Two-way audio | The camera has an intercom. Talk from the camera view in Home. |
| HomeKit Secure Video | The camera can be recorded. See HomeKit Secure Video. |
| PTZ switches | The camera can pan and tilt: Pan Left, Pan Right, Tilt Up and Tilt Down, one switch per preset, and an Autotrack switch where the camera has it. Home has no PTZ control, so these are switches. One tap moves the camera by one step, the size its driver sets, and the switch turns itself off again. |
| Privacy | The camera has a privacy mask. A Privacy switch turns it on and off. |
| Battery | Battery cameras show their level, charging state, and a low-battery warning at 20%. |
| Floodlight, spotlight or siren | The camera has one. It appears inside the camera's own tile: a light as a light, a siren as a switch. |
Other devices
Lights, switches, sirens, locks, sensors, presence sensors and alarm panels can be exported too. What each shows in Home follows from what the device can do:
| Device can | In Home |
|---|---|
| Switch on and off | A switch, or a light for a light (with brightness where it has it) |
| Lock and unlock | A lock |
| Arm and disarm | A security system, offering only the modes the panel accepts |
| Report contact, motion, smoke, carbon monoxide or a leak | The matching sensor |
| Report presence | An occupancy sensor, occupied only when the state is home |
| Report temperature, humidity or light level | The matching sensor |
| Report a battery level | A battery |
Thermostats, blinds and covers, fans, valves, humidifiers, water heaters, buttons and media players are not exported to HomeKit, and do not appear in its device list.
What your network needs
HomeKit finds accessories with mDNS (Bonjour) on your local network, then talks to each one directly. That decides how the hub must run:
- Use host networking. The default install already does. Each accessory listens on its own random port, and live video uses random UDP ports, so under Docker bridge networking HomeKit cannot find or reach them. See Host networking.
- mDNS must reach your Apple devices. The hub and your iPhone need to be on the same network, or on networks your router forwards mDNS between. A camera VLAN the iPhone cannot see is fine; a hub the iPhone cannot see is not.
- No ports to open. Every port is chosen at random and used on your LAN only. Do not forward anything.
- A home hub for away from home. An Apple TV, HomePod or iPad set up as a home hub relays live video and notifications when you are out, and is required for HomeKit Secure Video.
When the hub's machine has several network cards, set Network interface to the one your Apple devices reach, so HomeKit advertises only there.
Set it up
- Make sure the HomeKit Export addon is installed and running. See Addons.
- Open Administration → Connectivity and select the HomeKit Export pill under Device export.
- Expose the devices you want, from the list or from each device's Export tab. See Exporters.
- On your iPhone, open the Home app and select + → Add Accessory. Either scan the QR code in the Setup section with the camera, or choose More options, pick the accessory by name, and enter the setup code.
The Setup code (all cameras) is the same for every accessory Dominevo publishes, so you enter one code for all of them. The QR code in the Setup section pairs the first exposed camera. Each camera's own Export tab shows a QR code for that camera.
Cameras are added one by one
Apple does not allow cameras behind a bridge, so each camera is its own accessory and is added on its own: run Add Accessory once per camera, with the same setup code each time.
Other devices go on a shared bridge by default, so they all arrive with
one pairing. The bridge appears in Add Accessory under the
Installation name (default Dominevo Bridge); add it once and every
bridged device comes with it, including ones you expose later.
A device's Status on its Export tab tells you what to do next: whether it is paired, and if not, the name to pick in Add Accessory and the code to enter.
Adding the same camera on another iPhone
Pairing belongs to your Apple home, not to the iPhone. Anyone in your home sees the camera without pairing again. To add it to a different home, scan the camera's QR code from a device in that home.
Per-device options
On a device's Export tab, the HomeKit Export section has:
| Option | Default | What it does |
|---|---|---|
| Expose to HomeKit | Off | Publishes the device. |
| Export through the bridge | On | Non-camera devices only. Puts the device on the shared bridge. Off gives it its own accessory and its own pairing. Changing it rebuilds the accessory, and it has to be added in Home again. |
| Source stream (HomeKit) | Auto (closest to 1080p) | Which stream profile Home receives at home. High, Mid or Low pins one. |
| Allow transcoding for HomeKit | On | Re-encodes when the resolution Home asks for cannot be sent as it is. Off refuses such a session instead. |
| Keep Dominevo copies of HomeKit clips | On | Saves a copy of every Secure Video clip. See HomeKit Secure Video. |
| Keep this camera's clips for (days) | 14 | How long this camera's copies are kept. |
| Offer the new HomeKit camera service (HEVC / 4K) | Off | Also declares Apple's newer camera service. iOS still streams H.264 over the classic service today, so this changes nothing you can see. Turn it off if the camera behaves oddly in Home. |
Allow transcoding and the new camera service apply from the next live session. The other options rebuild the accessory at once.
Settings
The addon's own settings, in the Settings section of Administration → Connectivity → HomeKit Export:
| Setting | Default | What it does |
|---|---|---|
| Installation name | Dominevo Bridge | The name of the shared bridge in Add Accessory. Set it before you add the bridge. |
| Fixed setup code (XXX-XX-XXX) | Empty | Leave empty to use the code generated on first start. Trivial codes such as 123-45-678 or 111-11-111 are refused. |
| Network interface | Empty | Advertises and listens on one network interface only, for example eth0. Empty uses all of them. |
| Keep HomeKit clips for (days) | 14 | The default for every camera's kept clips. |
The first three take effect when the addon restarts (Restart on its row). Set them before you pair.
HomeKit Secure Video
With HomeKit Secure Video, Apple records your camera to iCloud when Home sees motion, analyses the clip, and sends you a notification. It needs an iCloud+ plan and a home hub.
Recording is switched on in the Home app, not in Dominevo. Open the camera's settings in Home and choose Stream and Allow Recording. The camera's Export tab, under HomeKit recording (Secure Video), shows what Home currently has set, and why recording is not offered if it is not.
Recording is offered when the camera has motion detection in Dominevo and a stream HomeKit can record. HomeKit records the largest H.264 stream at or below 1080p. A camera that publishes only H.265 needs Allow transcoding on. A camera whose key frames are more than 8 seconds apart may not be offered recording; shorten the key-frame interval in the camera. While recording is on, the hub keeps a short pre-roll buffer for that camera, which costs very little when the stream is copied and close to a CPU core when it is re-encoded.
Dominevo keeps its own copies. Apple never gives a recorded clip back, so by default Dominevo saves a copy of every clip it sends. They appear in the camera's Clips as HomeKit clips, on the HomeKit Clips storage location. Copies are kept for 14 days, and at most 200 clips and 512 MB per camera and 4 GB in total, whichever is reached first. Turn Keep Dominevo copies of HomeKit clips off to save the disk; a clip recorded with it off cannot be recovered later.
Live video at home and away
HomeKit receives H.264 video and Opus audio. H.264 streams are passed through as they are. An H.265-only camera is re-encoded to H.264, which costs CPU on the hub.
The stream is chosen when a session starts:
| Where you watch | What you get |
|---|---|
| At home | The Source stream profile, about 1080p with Auto. |
| Away from home, through your home hub | The Low profile. |
| Apple Watch | The Low profile. |
The choice is made once per session and does not adapt while you watch. Make sure the camera's Low profile is a stream you are happy to watch remotely.
Limitations
- A VPN on the iPhone breaks live video. With a VPN that routes your home network, iOS believes it is at home and tries to reach the hub directly, which fails. Away from home without a VPN, video goes through your home hub and works.
- Remote video is the Low profile, whatever the connection.
- High-bitrate streams on Linux. On a stock Linux kernel the network
receive buffer is too small for 4K or very high bitrate streams, and the
picture goes black or arrives in pieces. Raise it on the hub's host, for
example to 16 MiB with
sysctl -w net.core.rmem_max=16777216, and make it permanent in/etc/sysctl.conf. The addon's log says when the buffer was limited. - No 4K or HEVC in Home. iOS streams H.264 only.
- Alarm panels that need a code cannot be armed from Home, because Home has no way to ask for a code.
- Locks lock and unlock; a separate latch release is not available.
- A siren's volume is not shown.
- The shared bridge holds up to 149 devices. Beyond that, a device gets its own accessory.
When something goes wrong
A camera does not appear in Add Accessory. It may still be paired to a home you removed it from while the hub was off. Turn Expose to HomeKit off and on again on its Export tab: that clears its pairing, and it reappears in Add Accessory.
Home shows a camera's old controls. iOS keeps what it learned about an accessory. After you change what a camera has, such as adding a doorbell, remove the camera in Home and add it again.
Nothing appears at all. Check that the hub uses host networking and that your iPhone is on a network that sees the hub's mDNS. The Activity logs of HomeKit Export show each accessory as it is published.
Then
Overview
Publishing your Dominevo cameras and devices to Apple Home, Alexa and Home Assistant — where the exporters live, how you choose what each one receives, and which one to pick.
Alexa
Publishing Dominevo cameras and devices to Alexa — the public address it needs, the Dominevo skill, account linking, who sees what, detection sensors, snapshots, object detection, what an Echo Show receives, and managing the link.