Matter bridge
The Matter bridge exposes Reeve's own devices as a local Matter bridge, so Apple Home, Google Home, Amazon Alexa and Home Assistant commission it once per ecosystem and then control the devices on the LAN: no Reeve cloud, no per-vendor OAuth fulfilment, no public HTTPS endpoint. It is the way Reeve reaches voice assistants and ecosystem apps; Reeve has no Google Home or Alexa cloud integration.
The bridge can expose 19 of Reeve's 21 canonical device types, all but Coordinator and Unknown. Nothing is exported until you mark it: a device is bridged only when it is marked exported on the Devices tab, and a scene only when it is marked exported in the Scenes section of the same page.
The bridge is the controller-facing side. The inbound Matter adapter is the other direction, joining other people's Matter devices to Reeve; see Matter controller. How the bridge works inside is in the Matter bridge reference.
How it fits together
+-----------+ exposure, state (WebSocket +------------------+ Matter over IP (UDP/TCP 5540, mDNS 5353, IPv6)
| Reeve | ---------------------------------> | matter-bridge | <---- Apple Home, Google Home,
| backend | workload gateway session) | sidecar | Amazon Alexa, Home Assistant
| | <--------------------------------- | (matter.js | (each ecosystem is its own fabric)
+-----------+ commands, scene activations | ServerNode) |
+------------------+
- The sidecar is a Node.js service built on matter.js (
services/matter-bridge/, published as thematter-bridgeimage). It is one Matter node: root endpoint 0, one Aggregator endpoint and one Bridged Node endpoint per exposed device. It re-exposes Reeve devices as Matter cluster attributes and forwards Matter-originated commands back as canonical intents. It holds no database client; it talks to the backend only over the workload gateway's WebSocket session, never over the MQTT broker. - The backend integration owns the configuration, the exposure feed, the live-state feed, inbound command routing, commissioning and fabric control, and the single-owner link across replicas.
Each ecosystem joins as its own fabric. The fabric and credential state lives on a writable volume at
/data/matter-bridge; losing that volume means re-commissioning every ecosystem.
Requirements
- An account with the
integrations.managepermission. - The sidecar running on a LAN-reachable host, exactly one process per bridge instance.
- IPv6 on the LAN segment and mDNS on one layer-2 segment between the bridge and every controller. Matter over IP needs a usable non-loopback IPv6 address on the interface the bridge advertises (link-local with a scope id counts). The sidecar checks this at start and exits non-zero without one.
- The client feature flag
Features:MatterBridgeon, or the bridge is invisible in every client. - Per ecosystem, the hub needed for remote access and voice (see Hub requirements). Control on the same network needs only the controller app.
The published image is linux/amd64, runs node dist/main.js as the non-root node user and has a
read-only root filesystem with a writable /tmp.
Deploying it
The bridge commissions over IP and multicast name resolution only. There is no Bluetooth in it, so it needs no device mounts and no privileged capabilities, but it needs an identity on the controllers' own LAN segment: multicast plus a usable IPv6 address on the advertised interface. Host networking is the default way to get one.
Two settings decide whether it works at all: the gateway address and the per-instance workload token.
| Variable | Required | What it is |
|---|---|---|
REEVE_GATEWAY_URL |
yes | The workload gateway URL, ws(s)://<backend>/ws/workloads/<instanceId>. The {instanceId} segment is the identity the bridge claims in its HELLO, and the token is bound to it |
REEVE_WORKLOAD_TOKEN |
yes | The per-instance rwt_ token. The backend stores only its hash (MatterBridge:WorkloadToken on the backend side) |
REEVE_SPEC_HASH |
yes | Any stable non-empty value per release; the HELLO refuses a blank one. The chart fills it from the chart's appVersion |
REEVE_BACKEND_URL |
no | The backend's HTTP origin, no trailing slash. Needed only for camera media: without it the camera media path refuses and everything else works. Validated at start and again before the credential is sent |
MATTER_BRIDGE_NETWORK_INTERFACE |
on a multi-homed host | The LAN interface to advertise on: an interface name, or an address the host holds (mapped to its interface). Unset, the bridge picks one, which is wrong on a multi-homed host. A value naming neither fails the boot with exit code 78 (EX_CONFIG) |
A label variable that disagrees with the gateway URL's instance id is warned about and ignored. Every other variable of the container, with its default, is in the Matter bridge container.
Ports
| Port | Protocol | Purpose |
|---|---|---|
| 5540 | UDP | Matter operational and commissioning traffic. Alexa requires 5540 |
| 5540 | TCP | The same port over TCP. Required for cameras: WebRTC signalling is a large-payload command that matter.js serves only over TCP. A UDP-only firewall rule commissions and then answers every play button with InvalidTransportType |
| 5353 | UDP | mDNS multicast |
media port (MATTER_BRIDGE_MEDIA_PORT, 5541 on Compose) |
UDP | Camera media. Every concurrent WebRTC session multiplexes onto this one port, so the firewall rule does not grow with viewers. An ephemeral port fails behind a firewall |
| health port | TCP | The health endpoint. On Kubernetes it must match the pod's http container port; on Compose it is 8090, off the backend's 8080 and 8081 |
Never forward 5540 to the internet.
Running it on Kubernetes
Set adapters.matterBridge.enabled. The chart renders one Deployment with exactly one replica and the
Recreate strategy (two instances at once would contend for the read-write-once fabric volume and, with
host networking, for the same host UDP ports), a read-write-once PersistentVolumeClaim for the fabric
store, and the workload token Secret. Supply the token as a named Secret: the backend seeds only its hash
at boot, so a token regenerated on every render, as with helm template or a GitOps sync, breaks the
bridge. The token Secret is created in an early sync wave, before the backend and the bridge start.
A token an administrator revoked or rotated, or one a later Secret value superseded, stays retired: the boot
logs an error naming its prefix and carries on, and the bridge cannot authenticate. Put a new token in the
Secret, restart the backend, which then seeds that token and retires the previous one, and restart the bridge
pod, which reads the token only when it starts. With the Secret the chart generates (no
adapters.matterBridge.workloadTokenSecret), lookup keeps the old value on every upgrade, so rotating means
deleting that Secret and running helm upgrade, which generates a new token; then restart both.
-
Host networking (
adapters.matterBridge.hostNetwork, the default) binds 5540/udp, 5540/tcp and 5353/udp on the node's addresses. Kubernetes NetworkPolicy does not apply to a host-network pod: open those ports from the LAN in the node's own firewall. -
Its own LAN interface. Turn host networking off and name an attachment network the cluster already has, typically a Multus NetworkAttachmentDefinition with macvlan on the nodes' LAN VLAN:
adapters: matterBridge: hostNetwork: false networkAttachment: lan-iotThe attachment is requested on the bridge pod alone (Multus names it
net1) and the bridge advertises on it, so nothing else has to be set;networkInterfacestays for a pod that holds several interfaces. The bridge needs IPv6 on the LAN on that interface, which in practice means router advertisements accepted on it. macvlan never talks to its own host, so the backend stays reachable over the cluster network. Give the attachment a parent interface that exists under the same name on every node. -
Storage. Persistence is on by default. Without it the fabric state lives in an
emptyDirand every ecosystem must re-commission after a pod restart. The pod'sfsGroupmakes the volume writable for the non-root user.HOMEpoints at the volume because the root filesystem is read-only. -
Readiness. Zero fabrics is Ready (waiting to be paired). A down gateway session, a node that failed to start, or no usable IPv6 on the LAN interface is NotReady.
-
Memory.
adapters.matterBridge.nodeOptionsdefaults to--max-old-space-size-percentage=35, so V8's old space scales with the pod's memory limit; the young generation comes on top. Thematter_bridge_native_bytesgauge (resident memory minus everything the JavaScript heap accounts for) shows a native leak long before the kubelet reacts. -
Logging.
adapters.matterBridge.logLeveltakesdebug,info,notice(the default),warn,errororfatal, andadapters.matterBridge.logFormattakesplain(the default),ansiorhtml. Any other value crash-loops the bridge at boot. They map toMATTER_LOG_LEVELandMATTER_LOG_FORMAT. -
Heap snapshots are an opt-in diagnostic. Temporarily set
adapters.matterBridge.nodeOptionsto--max-old-space-size=160 --heapsnapshot-near-heap-limit=1 --diagnostic-dir=/tmpand raiseadapters.matterBridge.resources.limits.memoryto about1Gi: a snapshot of a 160 MiB heap needs several hundred MiB more. The chart's/tmpis a size-limited writableemptyDir; never point diagnostics at the fabric volume.
Every bridge value is in Helm chart values.
Running it on Compose
Enable the matter-bridge profile and layer docker-compose.matter-bridge-secrets.yml, which mounts the
workload token from deploy/secrets/ into both the backend and the bridge; set FEATURES_MATTER_BRIDGE
too. The bridge runs with host networking by default (MATTER_BRIDGE_NETWORK_MODE), because Matter
discovery is link-local mDNS and a bridge on a container network is invisible to commissioners; override
it only for macvlan or ipvlan, or for a conflict on 5540/udp. Under host networking service names do not
resolve, so the gateway and backend URLs default to 127.0.0.1:<BACKEND_PORT> (8080 unless .env moves it).
Do not add sysctls: to the bridge service: net.* sysctls are namespaced, and under host networking the
runtime refuses to create the container (exit 125). Enable IPv6 on the host instead.
The image ships the fabric mountpoint owned by the runtime user. Docker seeds a fresh named volume from
the path it covers, so keep that ownership when you supply your own volume; a root-owned mountpoint makes
the first start crash-loop with EACCES.
Production attestation
The bridge ships the matter.js test attestation chain (vendor id 0xFFF1). Production material is all or
nothing: MATTER_VENDOR_ID, MATTER_PRODUCT_ID, MATTER_DAC_PEM, MATTER_PAI_PEM, MATTER_CD_DER and
the DAC private key, changed together and correctly. A partial set falls back to the test chain with a
logged warning. Controllers pin a fabric's vendor identity, so changing it makes every ecosystem
re-commission.
Supply the DAC key with Helm's adapters.matterBridge.dacKeySource (value, existingSecret,
externalSecret or file), or on Compose with docker-compose.matter-dac-key-secrets.yml, which reads
deploy/secrets/matter-dac-key. A standalone sidecar uses MATTER_DAC_KEY_FILE or MATTER_DAC_KEY, never
both. The bridge waits up to 30 seconds for a missing key file and then refuses to start; an empty file is
refused at once.
Setting it up
Step 1. Enable the bridge
Open Admin, Matter Bridge, Overview, tick Enable Matter bridge and fill in the configuration:
| Field | Required | What to enter |
|---|---|---|
| Instance ID | yes | matter-bridge-1 by default. A label for the bridge in the backend's logs. The sidecar's session is bound to the installation's single bridge integration, not to this label (see Stricter separation) |
| Fabric label | no | A label written into the fabric metadata, such as Home |
| Vendor ID, Product ID | yes | The Matter attestation identity. The test chain uses 0xFFF1 and 0x8001. Change the vendor id only for the Google console step or with production attestation |
| Command timeout (ms) | yes | How long a Matter actuation waits for the backend to accept it before failing back to the controller. Default 3000 |
| Expose Coordinators by default | no | Off by default. A Coordinator device can also be opted in on the Devices tab |
Save. The Bridge health card shows the sidecar link only; a deployed bridge that has never been
commissioned is healthy, awaiting commissioning. The integration status on that card (and in
GET api/integrations) of an enabled bridge is ConfiguredNotChecked, shown as Configured (not checked),
with no last-successful-check time, because saving the settings does not contact the bridge; a disabled
bridge is Not configured. On a multi-replica backend, saved settings and identity
changes apply on the replica holding the Matter link when the matter_bridge configuration generation
reaches it, and at the latest at its 30-second configuration pass.
The page shows two panels. Readiness checks are what the backend evaluates, and a fail there gates discovery: the bridge has an identity to act as, and some backend replica holds the single-owner link. The Deployment checklist lists host and network requirements you verify on the bridge host (IPv6, one LAN-reachable host, firewall, VLAN and mDNS, fabric backup); these are guidance and never a backend fail, because a probe from the backend pod reads the wrong network namespace. The sidecar enforces IPv6 on its own host. The health view asks whether any replica owns the link; an unanswered question is not shown as "nobody owns the link".
Step 2. Pick the bridge identity
Open Admin, Matter Bridge, Setup help, Bridge identity and choose which account the bridge acts as. The bridge projects the devices visible to that identity (intersected with the exported flag and the eligible device types) and runs every inbound Matter command and scene activation as that identity. It defaults to the primary administrator: the built-in administrator, else the oldest active user. Enabling the bridge without an identity is refused. A change of identity changes nothing about the bridge's health; the audit trail records it.
Read the security consequence shown on that screen before you commission; see Security model.
Step 3. Choose what to expose
Open Admin, Matter Bridge, Devices. The list shows every device visible to the bridge identity that is of an eligible type; toggle Expose per device. A Coordinator carries a Coordinator chip and is opted in per device. After a change, Resync re-publishes the exposure snapshot to the sidecar. On a multi-replica backend the request runs on the replica holding the link; with no live link it fails with a 400. Paired controllers pick up additions and removals on their own; some ecosystems need a manual "look for new devices" in their app.
Step 4. Commission each ecosystem
Open Admin, Matter Bridge, Ecosystems and press Add an ecosystem to open a commissioning window. The page shows a QR code, an 11-digit manual pairing code and a countdown (900 s by default). Each window mints a fresh single-use code; Rotate code generates a new one and Re-open pairing window opens another after one expires. Opening and rotating answer only once the bridge reports the new window, so the code shown always comes from the bridge; the codes are visible only while the window is open.
Home Assistant. Settings, Devices and Services, Add Integration, Matter; scan the QR or paste the code. Commissioning is silent, with no uncertified warning. Home Assistant is its own hub.
Apple Home. Home app, Add Accessory, scan the QR. Apple flags an uncertified accessory because of the test vendor id; tap Add Anyway once. Assign rooms. Remote access and Siri need an Apple TV or HomePod. Apple uses two fabric slots.
Amazon Alexa. Alexa app, Devices, +, Add Device, Other, Matter; scan the QR or enter the code. Without a Matter-capable Echo, Alexa cannot commission the bridge: the Echo is the controller. Alexa takes about 50 bridged devices per bridge.
Google Home. Google commissions a test-vendor bridge only when its vendor and product ids are registered in a free Google Home Developer Console project:
- In the Google Home Developer Console create or open a project.
- Add a Matter integration and register vendor id
0xFFF1and product id0x8001. If the console assigns another test vendor id, set it under Overview, Vendor ID and save. - Commission with a Google account that is a member of that project; test vendor ids are limited to a few accounts.
- Google Home app, +, Set up device, Matter device, scan the QR.
- Remote access and voice need a Nest hub or speaker.
With certified production attestation the uncertified prompts disappear and the console step is not needed.
Hub requirements
| Ecosystem | Hub for remote access and voice | Fabric slots |
|---|---|---|
| Home Assistant | Home Assistant itself (its Matter server) | 1 |
| Apple Home | Apple TV or HomePod | 2 |
| Amazon Alexa | A Matter-capable Echo | 1 |
| Google Home | A Nest hub or speaker | 1 |
The node accepts 254 fabrics (MATTER_BRIDGE_SUPPORTED_FABRICS), so all four ecosystems coexist with room
to spare. The limits that matter are per ecosystem: Apple's two slots and Alexa's device count. Fabric
ecosystems are named from the root vendor id when it is known.
What each device type becomes
Every exposed device becomes a Bridged Node with the clusters its type maps to. Presence and controllability come from the device's capability descriptor: a capability that is not controllable is exposed read-only, never dropped. Fields Matter cannot carry ride a manufacturer-specific "Reeve Raw" cluster that Home Assistant can read and the other ecosystems ignore; see Matter vendor clusters.
| Reeve device type | Matter rendering | Apple, Google, Alexa | Home Assistant |
|---|---|---|---|
| Switch | Mounted On/Off Control (0x010F) with On/Off Plug-in Unit (0x010A) per gang, shown as a wall switch; per device: On/Off Light or On/Off Plug-in Unit | Google: full. Apple and Alexa show an outlet | full |
| Outlet | On/Off Plug-in Unit (0x010A) per gang; per device: On/Off Light or Mounted On/Off Control | full | full |
| Light | On/Off, brightness, colour and colour temperature | full | full |
| Lock | Door Lock (lock, unlock; on a lock that can pull the latch, Unlock also pulls it and Unbolt only unlocks; jammed reads not fully locked plus an alarm) | full | full |
| Cover | Window Covering (position percent) | full | full |
| Fan | Fan Control (on/off and speed percent) | full | full |
| Climate | Thermostat and temperature | full | full |
| Sensor | Measurement clusters, read-only | full | full |
| SmokeCoDetector, GasDetector | Boolean-state alarm sensor | alarm sensor only | full |
| MediaPlayer | Speaker subset (on/off and volume); transport, title and artist on the raw cluster | on/off and volume only, or nothing | full transport |
| Siren | A switch | a switch, not a siren panel | usable |
| AlarmControlPanel | Arm and disarm through ModeSelect, a triggered Boolean-state, PIN on the raw cluster | sensor only, not a panel | usable |
| Vacuum | RVC run and clean modes, operational state, battery, ServiceArea rooms; locate rides Identify |
core works; mode names depend on the controller | full |
| Valve, WaterHeater, Humidifier | Core open/close, power, setpoint | core works, extras only in Home Assistant | full |
| SceneController buttons | Momentary Generic Switch; a press triggers the Reeve automation | works | works |
| Reeve scenes | Momentary Generic Switch; a press activates the scene. Only scenes marked exported, and only while enabled | works | works |
| Coordinator | Diagnostic, opt-in per device | minimal | diagnostic |
| Camera | Matter camera with WebRTC with the bridge's media module enabled (REEVE_BACKEND_URL set), else snapshot-camera; state on the raw cluster |
see Cameras | see Cameras |
Switch, Light, Outlet, Lock, Cover, Fan, Climate and Sensor work fully everywhere. MediaPlayer, Siren and AlarmControlPanel are fully usable only in Home Assistant; elsewhere they degrade as listed. These are known limitations; a mismatch from this table, such as a controller crashing on the raw cluster, is a bug.
Switches and outlets
Reeve cannot tell what a switch or an outlet drives. Google Home shows an On/Off Plug-in Unit as an outlet and merges every On/Off Light in a room into the room's lights, so a wall switch bridged as a light disappears into them. A Switch therefore defaults to Wall switch and an Outlet to a plug; the controller-only On/Off Light Switch type (0x0103) is never used. If a switch drives a lamp or an appliance, or an outlet drives a lamp, set the device's export type to Light, Plug or Wall switch on the Devices tab (stored per device; clearing it restores the default). The default applies only to a device with no export type set.
The export type is Auto by default. Auto exports the kind last applied from the device's Shows as
setting: Light as On/Off Light, Outlet (a Switch only) as On/Off Plug-in Unit; a device nobody applied
anything to is a wall switch (Switch) or a plug (Outlet). Resync on the Devices page applies Shows as to
every Auto device and rebuilds, and choosing Auto for one device applies it for that device. Changing Shows
as alone does nothing in Matter; the row says "Shows as changed, Resync to export as ..." while one is
waiting. Light, Plug and Wall switch override Auto. Both actions need integrations.manage.
Wall switch (valid for a Switch and an Outlet) bridges each gang as Mounted On/Off Control (0x010F, Matter 1.4), the type for a load controller fixed in the wall, and lists On/Off Plug-in Unit beside it, so a controller that does not know 0x010F still recognises a plug. Google Home shows it as a switch tile that is not merged with the room's lights, and on/off works. Apple Home does not support 0x010F and Alexa does not document it, so those two show an outlet. SmartThings maps it to a switch. Check the result in your controller before relying on it.
Changing how a gang appears in Google Home. A changed export type rebuilds the gang's endpoints under the same endpoint ids, but Google reads a device's type once, when it first sees the endpoint, and keeps it, whatever the bridge's ConfigurationVersion says. To make Google show the new type, recreate the gang:
- Set the export type on the Devices tab, or clear it to take the default.
- Turn Expose off and press Resync. This erases the gang's endpoint storage.
- Turn Expose on and press Resync again. The gang comes back with a new endpoint number, which Google treats as a new device.
- Set the device up again in Google Home.
Recreating the gang loses its room, its name and the routines, favourites and groups that reference it. Expect the same in any controller that matches on the endpoint. Do it only for a gang that needs it.
Switch and Outlet indicator modes are not exported; they stay in Reeve.
Scenes
The Scenes section of the Devices tab lists every scene with an export toggle. A scene is bridged only when it is enabled and marked exported, and the default is not exported. Disabling an exported scene closes its endpoint and keeps its Matter identity until it is enabled again; un-marking or deleting it erases the endpoint. The bridge answers the controller as soon as it forwards the activation, before the scene runs, so the controller shows success even when none of the scene's actions reached a device (every target offline, timed out or refused). The backend logs such an activation as a warning naming the skip reasons.
An activation runs as the bridge identity, like every inbound command: the identity must be allowed to see the scene, the audit entry names it, and each action reaches only the devices the identity may control (unless the scene itself is marked to bypass executor permissions). A scene the identity cannot see is refused.
Vacuums
Cleaning modes are named by the controller. Every mode carries its label and semantic tags (Vacuum,
Mop, VacuumThenMop, intensity), which controllers that read tags use to label the modes. Google Home
discards the label and shows the headings Rvc_run_mode and Rvc_clean_mode with the options numbered
0, 1, 2; start, stop, docking and battery work, and nothing the bridge sends changes the naming. When
the source integration forwards them (the Matter plugin does), the modes carry the vacuum's own tags and
numbers; otherwise the bridge infers the tags from the mode name and numbers the modes by position.
Rooms are a real ServiceArea cluster. The rooms a vacuum reports become Matter areas, so "clean the
kitchen" works from any controller that supports the cluster. The area id a controller stores is the
vacuum's own id when the source integration forwards a usable one for every room, so it matches the vendor
app. Otherwise (a room's id missing, not a plain unsigned number in range, repeated, or given differently by
the two room lists) the whole list uses an id derived from each room's name, never its position: adding,
removing or reordering a room upstream keeps every other room's id. The fallback is logged as
bridge.vendor_ids_unusable. Re-mapping the home in the vendor app can change the vendor's ids, and every
stored controller selection then needs picking again. Two rooms with the same name collapse into one area,
because Matter requires distinct descriptions. Floor maps are not modelled.
An area shows the name an administrator gave it. A name set on the vacuum's control
(PUT /api/devices/{id}/area-labels) becomes the area's name in the controller; an area with no name
keeps its token. Only the shown name follows the label: the area id and the mapping of a controller's
selection stay on the token, so renaming never repoints a stored selection or automation. A name equal to
another area's shown name is dropped for every area that would share it, and so is a name over 128 bytes.
A change reaches the bridge through the change log like an exposure change, and a changed name rebuilds the
vacuum's endpoint under the same endpoint number. While the vacuum is offline the bridge keeps its stored
shape and applies new names when it is back. A label for an area the device does not report is ignored.
Other Matter bridges report that Apple's Home app handles a robot vacuum endpoint badly when it shares a bridge with other devices. If Apple Home misbehaves after you expose a vacuum, un-expose it on the Devices tab.
Media players
A KeypadInput SendKey for Play, Pause, Stop, Forward (next) or Backward (previous) publishes the matching
mediaplayer.command, as the MediaPlayback commands do. Any other key, and any of those when the player
does not declare that token or its command is not controllable, is answered UnsupportedKey.
SelectInput switches mediaplayer.source and is refused with UNSUPPORTED_ACCESS when the source is not
controllable. ShowInputStatus and HideInputStatus are answered UNSUPPORTED_COMMAND: Reeve has no
on-screen input overlay.
Cameras
A camera is exposed on the strength of its transport, not its capabilities: a camera that declares no
controllable capability, such as a plain RTSP one, gets the same endpoint as one with pan, tilt and
two-way talk, and simply carries nothing on the raw cluster. CaptureSnapshot is implemented on both
shapes and answered with a frame pulled through Reeve's own camera proxy, so no picture leaves your network
by another route.
With the bridge's media module enabled (REEVE_BACKEND_URL set), the bridge composes the full
Matter camera type with WebRTC signalling; without it, snapshot-camera, a still tile that works. The
choice is automatic. Live video needs REEVE_BACKEND_URL and TCP on port 5540. The bridge closes a WebRTC
session when the camera stream ends, the peer or video track closes, or negotiation or ICE stays
disconnected for 30 seconds; a brief ICE disconnect recovers without ending the session.
Controller support is the practical limit. An app that does not understand a camera endpoint ignores it, so an exposed camera may not appear at all. Google Home has no Matter camera support and shows a bridged camera as a tile with no controls; SmartThings supports it. End-to-end live playback through a commercial controller is not verified.
Security model: one identity, every fabric
A Matter fabric carries no user signal, only a fabric index, so the bridge acts as one fixed identity. Every commissioned fabric can actuate every device that is visible to the bridge identity and exposed. There is no per-fabric or per-user separation: anyone who can commission an ecosystem onto the bridge (anyone holding the code while a window is open) controls the whole exposed set, as the bridge identity.
What you control:
- Pairing windows are closed by default. They open only on Add an ecosystem and mint a single-use code that expires (900 s by default). Removing a fabric and Rotate code rotate the credential.
- Keep the bridge on a trusted LAN; never forward 5540, UDP or TCP, to the internet.
- Scope what the bridge identity can see (roles and permissions) and which devices are exposed.
Stricter separation
One Reeve installation runs one Matter bridge: the bridge integration has a fixed id, the gateway URL and workload token are bound to it, and the chart deploys one bridge sidecar. Inside one installation, separate groups of devices through what the bridge identity may see and which devices are exposed. For real separation between groups of devices or controllers, run a separate Reeve installation, each with its own bridge, bridge identity and exposed set.
How commands behave across replicas
Commissioning, rotation and fabric removal run on the replica that owns the bridge link; another replica asks the owner, and a non-owner never answers 200 for something it did not do. The answers mean:
| Answer | Meaning |
|---|---|
| 200 | The bridge reported the result. For a window, the response carries the new code |
| 503 | No replica holds the link, or the owning replica was busy, and nothing was sent. Retry; nothing can apply twice |
| 504 | The request reached the owner and no confirmation came back in time; it may or may not have applied. For a window, the page hides the code: press the button again and use only a code from an answer that succeeded. For an unpair, the Ecosystems tab reloads; if the fabric is still listed, unpair again |
| 400 | No live session: enable the bridge first |
The Matter bridge link holds the tenure itself: a command the bridge forwards from a controller has no idempotency
key, so the link checks ownership immediately before each canonical command it sends and each scene it activates.
Once the stop has begun nothing is sent or answered, however long the link takes to close; the bridge never resends a
command, so one refused there is dropped. A fence or a drain ends the tenure; for a moment after a fence the old link
can still be open while it refuses to send, as a peer builds its own. Peers reach the holder over the library's keyed
ask to matter-bridge-link.
| Area | Effect behind round-robin |
|---|---|
| Matter bridge state | The link owner sends exposed-device state for devices with an active source on link start or session open, heals database differences on bus reconnect, probes at most every 45 s, and resends every exposed device within 90 s of a bridge reconnect on any replica and at the latest 10 min 45 s after its previous resend, which bounds a state frame lost on the last hop. Publishers filter through their cached exposure set |
| Matter button presses | A press ingested on a replica that does not hold the link is forwarded to the holder and dropped if it waited 3 s in the forward queue; it is lost while no holder is known, while the holder moves and while Redis is down. reeve_matter_bridge_button_presses_total{outcome} counts the outcomes |
Settings reference
Bridge settings
| Setting | Default | Effect |
|---|---|---|
| Bridge port | 5540 |
Operational and commissioning traffic, over both UDP and TCP. At least one ecosystem requires this exact port. TCP carries live camera video signalling; without it cameras pair and never play |
| Bridge storage path | volume mount | Must be deployment-stable. A fresh identifier each boot is a fresh, uncommissioned node |
exposeCoordinators |
false |
Coordinators are opt-in; the unknown device type is never exposed |
commandTimeoutMs |
3000 |
Inbound command timeout |
| Commissioning window | 900 seconds | Each window mints a fresh single-use code; windows are closed at rest |
| Media ticket lifetime | about 2 minutes | Minted per view for the Matter bridge, revocable only by expiry |
| Media UDP port | 5541 |
All media sessions multiplex onto this one pinned port, so the ports a firewall must name do not grow with viewers |
MatterBridge:WorkloadToken |
unset | The bridge's workload token, set on the backend. Only its SHA-256 hash is stored. Any secret source |
The bridge's own environment is in the Matter bridge container.
The Matter bridge container
The bridge (services/matter-bridge) reads its configuration from the environment at start and validates it there; a
bad value stops the start.
| Variable | Default | Effect |
|---|---|---|
REEVE_GATEWAY_URL |
none, required | The workload gateway URL. The bridge's instance id is its last path segment |
REEVE_WORKLOAD_TOKEN, REEVE_WORKLOAD_TOKEN_FILE |
none, required | The bridge's token, as a value or a file |
REEVE_BACKEND_URL |
unset | The backend's HTTP(S) origin, validated at boot. Without it cameras fall back to snapshots |
REEVE_SPEC_HASH |
empty | See the workload gateway |
REEVE_APP_VERSION |
the release version the image was built with (0.0.0-dev in a local build) |
The version the bridge reports |
MATTER_BRIDGE_UNIQUE_ID |
reeve-bridge |
Keys all node state. Changing it is a new node |
MATTER_BRIDGE_DEVICE_NAME |
Reeve Bridge |
Name ecosystems show |
MATTER_BRIDGE_NETWORK_INTERFACE |
unset | Limits mDNS to one interface. Unset, the bridge picks one, which is wrong on a multi-homed host; a name that matches no interface fails the boot |
MATTER_BRIDGE_PORT |
5540 |
Matter port, UDP and TCP. Alexa requires 5540 |
MATTER_BRIDGE_MEDIA_PORT |
5541 |
The one UDP port all camera media is multiplexed on, announced as a single host candidate |
MATTER_BRIDGE_VENDOR_ID, MATTER_BRIDGE_PRODUCT_ID |
0xFFF1, 0x8000 (Compose and the chart set 0x8001) |
Test vendor and product ids, used with test attestation. Register the product id the bridge actually runs with, 0x8001 under Compose and the chart |
MATTER_BRIDGE_STORAGE_PATH |
/data/matter-bridge |
Fabric storage; must survive restarts |
MATTER_BRIDGE_HEALTH_PORT |
8080 (Compose sets 8090) |
Health endpoint |
MATTER_BRIDGE_SUPPORTED_FABRICS |
254 |
Fabrics the node accepts |
MATTER_VENDOR_ID, MATTER_PRODUCT_ID, MATTER_DAC_PEM, MATTER_PAI_PEM, MATTER_CD_DER, MATTER_DAC_KEY or MATTER_DAC_KEY_FILE |
unset | Production attestation. All or nothing: a partial set falls back to the test vendor id |
Helm chart values (adapters.matterBridge)
| Key | Default | Effect |
|---|---|---|
adapters.matterBridge.enabled |
false |
Renders the bridge Deployment, its token Secret and PVC, and sets Features__MatterBridge so the menu item follows the sidecar. The backend reads the same workload token (MatterBridge__WorkloadToken_FILE) and seeds its hash at boot. |
adapters.matterBridge.image.{repository,tag,digest,pullPolicy} |
ghcr.io/reeve-iot/reeve-matter-bridge, "", "", IfNotPresent |
Bridge image; an empty tag runs the release the chart belongs to (appVersion), like the backend and frontend images; digest works as for the backend image. |
adapters.matterBridge.nodeSelector |
{} |
Optional pin. Set it only when some nodes cannot reach the commissioners' LAN. |
adapters.matterBridge.networkAttachment |
"" |
A Multus NetworkAttachmentDefinition giving the pod its own LAN NIC instead of hostNetwork, requested by an annotation on this pod alone. Requires hostNetwork: false. |
adapters.matterBridge.hostNetwork |
true |
Matter discovery is link-local mDNS and needs a routable IPv6 address on the LAN segment, which a pod network lacks. Turn off only when the pod has its own LAN identity. |
adapters.matterBridge.mediaPort |
5541 |
The single UDP port all camera media sessions mux onto (ICE UDP mux); the container port and MATTER_BRIDGE_MEDIA_PORT take this one value. Can collide on a busy node. |
adapters.matterBridge.runAsUser |
2000 |
Non-root UID the container runs as; also the fsGroup, so the PVC and /tmp stay writable. |
adapters.matterBridge.vendorId |
"0xFFF1" |
Matter attestation vendor id. The default is the matter.js test chain; a certified vendor id is a configuration change. |
adapters.matterBridge.productId |
"0x8001" |
Matter product id. |
adapters.matterBridge.deviceName |
"Reeve Bridge" |
Name controllers show. |
adapters.matterBridge.storagePath |
/data/matter-bridge |
Fabric, operational-certificate and credential store (also HOME), on the PVC. Losing it means commissioning every ecosystem again. |
adapters.matterBridge.networkInterface |
"" |
LAN advertise interface (a NIC name or an address the node holds). Multi-NIC nodes must set it; empty lets matter.js choose, and under networkAttachment it follows the attachment's NIC. A value matching no interface fails the boot with exit code 78. |
adapters.matterBridge.gatewayUrl |
"" |
Full per-instance workload-gateway WebSocket URL. Empty derives ws://<fullname>-backend.<namespace>.svc:<port>/ws/workloads/<bridge instance id>; set it to dial an ingress or external gateway. Do not add an instanceId key: it comes from this URL. |
adapters.matterBridge.specHash |
"" |
Spec hash echoed in the gateway HELLO, the health-gate identity anchor. Empty derives a stable per-release value from the chart's appVersion. |
adapters.matterBridge.workloadTokenSource |
null |
Source of the raw rwt_ gateway token (ref refused: the backend and the bridge both read it). Empty makes the chart generate a stable token (kept across upgrades by lookup). Required under argocd.enabled, where helm template would mint a new one on every sync. |
adapters.matterBridge.workloadTokenSecret |
"" |
Alias: your own Secret holding the token. |
adapters.matterBridge.workloadTokenSecretKey |
"REEVE_WORKLOAD_TOKEN" |
Key of the token in that Secret. |
adapters.matterBridge.dacKeySource |
null |
Device-attestation key for a certified identity, delivered to the bridge as MATTER_DAC_KEY_FILE. Only the bridge reads it, and it does not resolve provider references; a file path must be mounted into the bridge. |
adapters.matterBridge.{extraVolumes,extraVolumeMounts} |
[], [] |
Extra mounts for the bridge pod. |
adapters.matterBridge.backendUrl |
"" |
In-cluster HTTP origin the bridge fetches camera media from after the backend issues it a media ticket. Empty derives the backend Service. |
adapters.matterBridge.logLevel |
notice |
debug, info, notice, warn, error or fatal; any other value crash-loops the bridge. Raise it temporarily for diagnosis. |
adapters.matterBridge.logFormat |
plain |
plain, ansi or html. |
adapters.matterBridge.nodeOptions |
"--max-old-space-size-percentage=35" |
Node options; the old-space heap tracks 35 % of the pod limit, and V8 adds the young generation on top. |
adapters.matterBridge.persistence.enabled |
true |
Fabric store PVC. Off, commissioning is lost at every restart. |
adapters.matterBridge.persistence.{size,storageClassName} |
256Mi, "" |
Size and class of that PVC. |
adapters.matterBridge.resources.limits.{cpu,memory} |
1000m, 512Mi |
Sized from measurement: matter.js dominates (about 113 MB RSS at five bridged endpoints), grows with the device count and bursts CPU while building endpoints at boot. |
adapters.matterBridge.resources.requests.{cpu,memory} |
100m, 192Mi |
Bridge requests. |
Troubleshooting
Controllers cannot find the bridge, or commissioning never starts. Matter discovery is mDNS over IPv6. Check, in order:
- IPv6 on the bridge host's LAN interface (
ip -6 addr). Without a usable non-loopback IPv6 the sidecar exits non-zero and crash-loops, and readiness stays NotReady. This is the most common cause. - mDNS reaches the controller. The bridge host and every controller hub share one layer-2 segment. Across VLANs or subnets, configure an mDNS reflector and allow UDP 5540 across, or move them onto one segment.
- Wi-Fi client or AP isolation is off for the bridge host and the controllers, or use wired links.
- The host firewall allows inbound UDP 5540 and 5353 from the LAN (firewalld, ufw, nftables).
- TCP 5540 is open too, if you expose cameras. Commissioning and control work over UDP alone; live video does not.
The Readiness checks panel shows failures. Resolve every fail before commissioning; controllers do not discover the bridge until they pass. Deployment checklist items are guidance the backend cannot probe.
Uncertified accessory prompt. Expected with the test vendor id. Tap Add Anyway on Apple.
Google Home refuses to commission. Register 0xFFF1 and 0x8001 in a Google Home Developer Console
project and commission with that account (Step 4).
Fabric limit reached. Apple uses two slots and Alexa takes about 50 devices. Remove an unused fabric on the Ecosystems tab (Unpair).
A device is greyed out in the controller. The bridge maps Reeve availability to the Matter reachable
flag, so a device Reeve sees as unreachable greys out and recovers when Reeve sees it again. A device turned
off on the Devices tab, or deleted, is removed from the bridge.
A device is exposed in Reeve but appears in no controller. The bridge builds no endpoint for a device it cannot map, and readiness, the endpoint gauge and the Devices tab stay healthy. Read the counter:
matter_bridge_devices_without_endpoints
Anything above 0 is a defect. The sidecar log names the device and the reason in the same event,
bridge.expose_skipped_unmapped_type or bridge.expose_skipped_no_clusters. A failed endpoint build never
fails the boot.
The bridge container restarts with bridge.endpoint_build_stuck in its log. Building one device's endpoint
did not finish within 60 s. The bridge drops that device from its own store and exits, so the workload restarts
it and rebuilds the other exposed devices; the event names the device. Reeve offers the device again with its
next snapshot. If the same device keeps doing it, turn off its Expose setting and report it.
A device appears as new in Google Home or Apple Home after Reeve merged or re-typed it. A device that
Reeve collapses from several devices, or re-homes onto a device of another type, keeps the old device's
Expose setting but gets new endpoint numbers, so the Home apps treat it as a new accessory. Reeve raises a
device.exposure_changed alert. Re-assign the room, name and routines in the Home app and delete the stale
accessory; see Device model changes.
Devices missing after a redeploy. The fabric state lives on the /data/matter-bridge volume. If the
volume was lost, every ecosystem must be re-commissioned. Back the volume up with a snapshot or an archive;
see Backup and restore.
The pod exits with code 78. MATTER_BRIDGE_NETWORK_INTERFACE names no interface and no address the host
holds.
More symptoms, with their cause and what to do:
| Symptom | Cause | What to do |
|---|---|---|
| Controllers never find the Matter bridge | No usable non-loopback IPv6 on the bridge host's LAN interface | Enable IPv6. The sidecar exits non-zero and crash-loops by design. This is the single most common cause |
| Controllers on another network segment never find the bridge | Multicast name resolution does not cross subnets | Put the bridge host and every controller hub on one layer-2 segment, or run a multicast reflector and allow the Matter port across |
| Commissioning starts and then stalls | The node's own firewall blocks the inbound Matter or multicast ports, or wireless client isolation is on | Open both ports from the LAN, or use wired. Cluster network policy does not apply to a host-network pod |
| The bridge announces on the wrong interface on a multi-homed host | No network interface named | Name the LAN interface or an address it holds. A value naming neither fails the boot with a configuration exit code rather than being ignored |
| An "uncertified accessory" prompt appears | The shipped test attestation identity | Accept it once. It disappears only after certification |
| One ecosystem refuses to commission at all | It requires the test vendor and product identifiers to be registered in a free developer project, and test identifiers are limited to a few accounts | Register them and commission with that same account |
| A device is greyed out in the controller | Reeve considers it stale or unreachable, which maps to the reachable flag | It recovers when Reeve sees the device again. An un-exposed or deleted device is removed from the bridge entirely, not marked unreachable |
| Every ecosystem must be re-paired after a redeploy | The fabric and credential volume was lost | Restore from a volume snapshot. There is no other recovery path |
| Fabric slots are exhausted | Per-ecosystem limits, not the node's: one ecosystem consumes two slots, another caps at roughly fifty bridged devices | Unpair an unused fabric. The node-side cap is already off, so raising it changes nothing |
| A commissioning code stops working | Each pairing window mints a fresh single-use code with a bounded lifetime, and windows are closed at rest | Re-open the window or rotate the code |
The bridge logs bridge.stale_peer_pruned at start after an ecosystem was removed |
The fabric volume still held a controller entry for a fabric that does not exist any more | Nothing: the bridge deletes entries for missing fabrics before it starts, logging each one at warn, so a stale entry never stops the start. Nothing needs editing on the volume |
| The bridge log warns that a SmokeCoAlarm endpoint violates its device type, naming PowerSource | The detector reports no battery, and Matter's smoke alarm type asks for a power source | Expected: the bridge does not invent a power source it cannot read |
| Removing the last ecosystem reset the bridge | The node decommissions and rotates its stored passcode and discriminator | Deliberate. Any previously captured code is dead |
| The bridge reports healthy with zero fabrics | A freshly deployed bridge is awaiting commissioning, not degraded | Only a bridge that was commissioned and now has zero fabrics is degraded |
| New devices appear in one ecosystem but not another after a re-sync | Already-paired controllers pick up additions and removals automatically, but some refresh only on an explicit "look for new devices" | Trigger it in that ecosystem's own app |
| Media controls, sirens or alarm panels work in one ecosystem and not the others | Known, accepted rendering limits of the bridged device types | A mismatch from the documented rendering — a controller crashing on the raw cluster — is a real defect worth reporting |