Matter bridge
Reeve exposes its own devices as one local Matter bridge node. Apple Home, Google Home, Alexa, Home Assistant and any other Matter controller commission it once per ecosystem and then drive it over the LAN. There is no cloud, no per-vendor authorization flow and no public HTTPS endpoint. The bridge is how Reeve devices reach voice assistants.
This page describes how the bridge works. Deploying and configuring it is in the operator guide, and the vendor clusters it serves are in the vendor cluster reference.
The bridge is a sidecar in services/matter-bridge (TypeScript on matter.js), with the Reeve.MatterBridge.Protocol
wire contract and a host in the backend. The host feeds device state and exposure down over the workload-gateway
session, routes Matter-originated commands back in, and caches the commissioning and fabric control plane. The bridge
makes no outbound HTTP call except to the camera media route.
Node shape
endpoint 0 Root Node
endpoint 1 Aggregator
endpoint 2+ one Bridged Node per exposed device
The node declares the aggregator device type explicitly. A Matter node with no explicitly declared device type never advertises: the node comes up, mints a pairing code that nothing can reach, and emits no mDNS packets and no log lines. The aggregator endpoint exists before the node starts, because at least one ecosystem refuses a node that has nothing beside the root endpoint. The root endpoint stays a Root Node.
Exactly one bridge process runs per instance. The chart pins one replica with the Recreate strategy and one volume,
the backend runs the link as a single-owner unit, and the gateway accepts one session per bridge.
One identity, one authority
The bridge acts as a single fixed household identity chosen by the operator. It projects the devices visible to that identity, intersected with the exposure flag and the eligible types, and runs every inbound command and scene activation as that identity.
A Matter fabric carries no user signal, only a fabric index, so per-fabric or per-user separation cannot be represented. The fabric index on an inbound command is kept for audit only. Anyone who can commission an ecosystem while a pairing window is open gains control of the whole exposed set. For that reason pairing windows mint a fresh single-use code with a bounded lifetime and are closed at rest.
One Reeve installation runs one Matter bridge. Stricter separation between groups of devices or controllers means a separate Reeve installation with its own bridge, bridge identity and exposed set, see Stricter separation.
Exposure
One per-device flag controls exposure across every mechanism, so toggling it anywhere affects them all. It defaults
to off, so a device is bridged only once it is marked exported. A coordinator needs both the global
ExposeCoordinators switch and its per-device flag, and the unknown type is never exposed.
- Every canonical device type is exportable except the coordinator and the unknown type. A coordinator bridges as a raw-only node. A scene is sent as a device carrying raw properties and becomes a scene activator.
- Each exposed device takes an exported-name override. A blank name means the Reeve friendly name, and a blank name or type override clears it.
- A scene's export flag is a row in
integration.scene_bridge_exposure, keyed by scene id. A scene with no row is not exported. A scene is bridged only when it is enabled and exported, and the row is deleted with the scene. It is read and written throughGETandPUT /api/integrations/matter-bridge/scenes. - The bridge's instance id and settings namespace are fixed. Changing the instance id orphans the stored host configuration.
- A device with no producer-declared descriptor is still sent, with an empty descriptor, and the bridge decides whether anything is left to expose.
The flag and the overrides live in one per-device JSON blob (integration.device_cloud_exposure) that plugin
device-metadata writes share. Every writer changes only its own keys, atomically in one SQL statement, so two replicas
cannot drop each other's keys.
The bridge owns every key that starts with matterBridge (the exported name is matterBridgeName) and isExposed. A
plugin write ignores them and never removes them, so only the operator's exposure toggle changes what the bridge
exposes. A plugin's SetAsync replaces the plugin's own keys, removes a key by leaving it out, and clears them all
with null. A plugin reaches only the rows of devices it may see: another device reads as absent and a write to it is
refused. DeleteAsync removes only the plugin keys, and the row goes once no key is left. A document that is not a
JSON object is stored whole under a reserved $document key and read back as written.
Uninstalling a plugin instance removes every key of its rows except isExposed and the matterBridge keys, re-stamps
the rows to the best-priority plugin that still sources the device, and removes them when nothing owned by the host
remains or no source is left. A device the uninstall deletes takes its row with it.
Switches and outlets
A Switch gang without an override is a wall switch: Mounted On/Off Control (0x010F) with an On/Off Plug-in Unit (0x010A) beside it. An Outlet gang is an On/Off Plug-in Unit. Reeve cannot tell what a switch or an outlet drives. Google Home renders a plug-in unit as an outlet and merges every On/Off Light of a room into the room's lights, so a wall switch shown as a light could not be controlled apart from them.
A per-device light, plug or switch override replaces the default for either type, and changing it rebuilds the
device's endpoints under the same ids. switch lists the plug-in unit beside Mounted On/Off Control, so controllers
that do not know 0x010F still recognise a plug. How Google Home and the other ecosystems show it is described in
Switches and outlets. 0x010F comes
first because SmartThings takes the first non-bridge type. The override is ignored for every other device type. The
operator sets it with PUT /api/integrations/matter-bridge/devices/{id}/on-off-kind.
The effective type is the override, else the kind applied from "Shows as", else the type default. "Auto" takes "Shows as"
as it stands. The applied kind is the matterBridgeAppliedAutoOnOffKind key (light or plug) of the exposure
metadata. It changes only on Resync or when the operator picks Auto, and the exposure build reads the stored kind, so
a bridge rebuild never retypes an endpoint on its own.
Every bridged node carries BridgedDeviceBasicInformation.configurationVersion, starting at 1. The bridge keeps the
last DeviceTypeList it built per endpoint id and increases the bridged node's version and the root's when a rebuild or
a boot finds a different list. That signals a type change, but a controller may not re-read the type: Google Home kept
the type of an existing endpoint after an override change and shows the new type only after the gang is recreated.
Data flow between the backend and the bridge
- The backend streams device state down as
COMMANDframes. The bridge sends only facts it owns up asDATA: health, commissioning state, command responses, media tickets and snapshots. - The backend sends a complete
exposesnapshot plus add and remove deltas. A device missing from a snapshot is removed and its endpoint storage deleted, unless it is listed inretainedDeviceIds. A failed read on the backend throws instead of sending a partial snapshot. A device with no active source has null state, because a last-known value must not read as live. - The bridge persists the exposure set itself, because matter.js persists endpoint numbers but not the Reeve descriptor. A corrupt document is treated as empty, and the backend resends the retained snapshot. At boot the bridge rebuilds endpoints from it with stable ids, and one device that cannot be constructed does not crash-loop the pod.
- A rebuild happens only when the fields used to construct an endpoint change. An offline device keeps its stored shape and only turns unreachable. A device first seen while offline is exposed from its newest-seen source with no state. Reachability of a device whose sources are all offline reaches the ecosystem through the periodic exposure snapshot, normally within 45 seconds and up to about 90 seconds.
- State frames carry a sequence number that is monotonic per backend link. Stale or out-of-order frames are dropped. A device's pending frame is replaced by its newest. A snapshot is applied to a device only when it is newer than the device's last applied frame.
- A controller write becomes a canonical command. Discrete one-shot actuations (on/off, lock, cover, valve) wait for
the backend's acknowledgement and fail on refusal or timeout, so matter.js rolls the attribute back and a controller
never shows "locked" unless the backend accepted it. Continuous controls (level, colour, setpoints, fan percentage)
commit optimistically and are reconciled by the next state frame. An acknowledgement means the command was
accepted, not that the device did it. A command waiting for acceptance times out after 3 seconds
(
CommandTimeoutMs) and surfaces as a Matter failure. - Scene activation is fire-and-forget: a momentary On that resets itself, with Off deliberately inert, because a scene cannot be un-run.
- Button presses arrive on the device-event feed. Only an exposed, visible scene controller with a button index is forwarded. Presses are queued in order and never coalesced. Presses are de-duplicated over a 10-second window, and a press that waited more than 3 seconds in the forward queue is dropped.
- The bridge retains at most 1,200 recent Matter event occurrences and trims back to 1,000 when full.
- A disabled exported scene is closed but keeps its identity, listed in
retainedDeviceIds, until it is enabled again. A scene deleted in Reeve or not exported, and a device that is un-exposed or no longer visible, is erased.
Liveness is up while the process can serve a request and never depends on the gateway session or the node, or the orchestrator would kill the bridge during a legitimate wait. Readiness requires a connected session and a started node, and zero fabrics is not a gate. A gauge counts exposed devices that produced no endpoint, and non-zero always means a defect. There is no last-will: health is a birth message and a graceful-shutdown message only.
Replicas and the link
The sidecar's WebSocket lands on an arbitrary backend replica, while the bridge link is owned by one replica through
the matter-bridge-link owned unit. Socket placement and link ownership are therefore unrelated. Matter commands are
delivered at least once and the canonical command send has no idempotency key, so the design keeps a single owner
instead of de-duplicating commands. See
the tenure contract.
- The owner enters and exits the link, and the link answers true only while this replica holds the tenure. Every send re-checks, because after a fence a link can outlive its tenure while a peer builds its own. A command refused after a hand-over is lost: the bridge never resends, so the controller sees a timeout or its optimistic value until the next state frame.
- Each inbound correlation id is claimed atomically. A redelivery re-emits the cached response, or is dropped while the first apply is in flight.
- Commissioning state and the fabric list are persisted as a read-through cache, so a replica that does not own the link can answer status reads.
- On any replica count, inbound
DATAframes reach the link owner over the cluster bus channelmatter_bridge_inbound_frame. The envelope is capped at 64 KiB, and an over-cap frame is dropped and logged. A forwarded frame has no database backstop, so one lost in transit is lost. - On a clustered deployment (
Coordination:Clustered), live state and button presses travel on two more channels,matter_bridge_live_stateandmatter_bridge_button_press. The owner also reads exposed devices' state from the database when the link starts, when the bus reconnects and every 45 seconds, and sends devices whose source or state version differs from what the bridge holds. That heals a relay frame lost even while Redis is unavailable. The owner also forces a resend of every exposed device on the second consecutive probe that reads a new bridge session id, and at least 10 minutes after the previous forced pass. A single node uses its complete local feed and registers neither relay. - Configuration and exposure changes do not travel on the bus. They reach every replica as
matter_bridgegenerations, which wake the link owner's configuration pass and rebuild. See Configuration-derived state is read through a generation.
The owner rebuilds the exposure gate from a pinned generation, and an exposure change reaches the gate when the owner
applies its generation. A fixed 25-second tick also asks for a rebuild, which heals what a lost request left behind.
A descriptor change of an exposed device appends a matter_bridge:{id} change entry, so the bridge hears of a
structural change without waiting for the tick.
reeve_matter_bridge_button_presses_total{outcome} counts button presses: delivered, deduplicated and
send_failed on the holder, and forwarded, no_receiver, dropped, stale and queue_full on the sender.
Commissioning commands
Opening a pairing window, rotating its code and removing a fabric answer 200 only once the bridge reports the new
commissioning state or fabric list, whichever replica served the call. A replica that does not hold the link asks the
holder of the matter-bridge-link unit
(a request to another replica goes through the relay port).
| Answer | Meaning |
|---|---|
200 |
The bridge reported the result. Removing a fabric index that was never commissioned also answers 200, because the sidecar republishes the fabric list either way. |
503 MATTER_BRIDGE_LINK_BUSY, Retry-After: 1 |
There is no holder, the ask failed before hand-over, the holder never took the request, or it lost its tenure before acting. Nothing ran, and this is the one answer a client may repeat. |
504 MATTER_BRIDGE_UNCONFIRMED |
The holder took the request and did not see the result in time, so the fabric may be gone. |
400 |
The holder's link or session is not live. |
On a 504 the web application refetches the bridge status instead of assuming either outcome, hides the pairing code
it was showing and never retries by itself. Rotating the pairing code waits for the sidecar's reply carrying the new
code, so the UI never shows a stale one.
POST /api/integrations/matter-bridge/resync is answered the same way: 503 when no replica holds the link or the
holder was busy or unreachable, 504 when the holder took the request without confirming, and 400 when the
holder's link is not live. The holder requests a rebuild and writes nothing.
Commissioning
The bridge advertises and commissions over IP and mDNS only. It needs no device mounts and no administrative or raw network capabilities. The pod runs on host networking for mDNS, or on a network attachment that gives it a LAN identity of its own, with no privileged capabilities. Its node selector is a LAN-reachability label, never a radio label. The Bluetooth transport is not linked in, so the host needs no Bluetooth stack.
- The node has a base passcode and discriminator, advertised before any fabric joins. The base window is re-armed from the current codes only while the node is offline or uncommissioned.
- An additional-ecosystem pairing window is an Enhanced Commissioning Window opened locally. It takes a fresh single-use passcode and discriminator from matter.js's generators, never the base code, and lasts 15 minutes by default. Rotating replaces the open window's code and republishes it. On an uncommissioned node, the base codes are the window's codes, so rotating changes the stored passcode and discriminator and re-arms the window. With no window open, rotate changes nothing and goes unconfirmed.
- The base passcode is rotated on full decommission, before re-advertising. Removing the last ecosystem therefore resets the bridge's codes, so a code that leaked earlier is dead.
- Operator fabric removal goes through the fabric manager. Fabrics are retained on shutdown. Commissioning state is recomputed from the fabric table, never from event payloads.
- Setup passcodes, pairing codes and private keys are never logged. The commissioning code never rides health metadata. It is published non-retained, on demand, only while a window is open, and is discarded after rendering.
- A joined fabric is displayed by its commissioner's root vendor id, mapped to an ecosystem name (an unknown one shows
Vendor 0xXXXX). A fabric with no label falls back to the ecosystem name, and fabrics are sorted by index.
The bridge never persists a controller as a client node. matter.js creates a persisted client node for every controller it resolves and never deletes it when the fabric is removed, so the leftover would bind to a fabric that no longer exists and the bridge would exit on every restart. The bridge therefore invokes the WebRTC Requestor commands through matter.js's in-memory peer set, which writes nothing to storage. Before the node is created, the bridge also removes persisted client nodes whose fabric is not in the fabric table, logging each at warn level, and deletes a fabric's client nodes when the fabric is removed. An unreadable fabric table prunes nothing.
Fabric storage
The Matter library's storage holds the fabric table with the per-ecosystem operational certificates and keys, the pinned passcode and discriminator, and endpoint-number assignments. It lives on a local writable volume keyed by a deployment-stable node id. A new id on every boot would be a fresh, uncommissioned node.
The storage is read synchronously on the hot path, so it cannot live in the application database. There is no in-app export and no fabric backup button. Recovery is a volume snapshot or a volume tar, and losing the volume means re-commissioning every ecosystem. After every fabric add or remove, the storage tree is fsynced, so a hard kill right after commissioning still leaves the operational certificate intact.
Attestation
The bridge ships the Matter library's test attestation chain under a test vendor and product id. Certification is a paid process per product. Without it, two ecosystems show a one-time prompt, and a third needs a free developer-console registration. The private keys in that chain are well-known test material, so the security boundary is the commissioning passcode.
A production chain replaces it through a pluggable seam. The vendor and product ids, the attestation certificate, the intermediate and the certification declaration must be replaced together and chain correctly, or commissioning fails. Absent or partial production material falls back to the test chain and test vendor id with a logged warning. Controllers pin a fabric's vendor identity, so switching to a real vendor id makes the bridge a new identity and forces every ecosystem to re-commission. The manufacturer-specific raw cluster id is derived from the vendor id and changes with it.
Cameras
The camera media proxy itself is in camera-media.md. This section describes how the bridge reaches it.
The bridge pulls media through a signed, short-lived ticket. It asks the backend for a ticket over its session and then
makes one GET to the media route, presenting the ticket in X-Reeve-Media-Ticket and its workload bearer. The route is
an anonymous endpoint that authenticates itself, because the bridge has no workload-instance row and the browser camera
routes reject a bearer. The ticket names the device, the identity and the bridge instance. It is signed with the shared
data-protection key ring, so any replica redeems what another issued, and it travels in a header and never in a URL.
It lives 120 seconds by default (MediaTicketLifetimeSeconds), is revoked only by expiry, and is worthless without the
bridge's own bearer. A bad ticket is an ordinary 403, and "may not see" and "not there" give the same answer so device
ids cannot be probed. The backend supplies the path to GET, and a path that could aim the bridge's bearer at another
host is refused.
A Matter controller watching a camera takes a viewer slot, like a browser. A CaptureSnapshot request resolves the camera as the bridge identity, so the same visibility rules apply, and it returns one Base64 frame over the session plane. A still frame is capped at 2 MiB, and beyond the cap the request fails instead of truncating.
The bridge composes a snapshot-camera endpoint, with implemented snapshot commands and the full canonical camera key set on the manufacturer-specific raw cluster, by default. It composes the full camera type only when the process has both a media port and a signaller wired. The Matter library generates every camera cluster but implements no command, and Matter derives the advertised command list from the schema, so a type whose commands are unimplemented would advertise a permanently broken tile. The snapshot type disallows video and audio features and the full type mandates them, so the feature set follows the device type. Only one major controller ships Matter camera support, so an exposed camera may not appear elsewhere.
WebRTC media
Frames come from Reeve's canonical fMP4 surface and are re-packetised from AVCC without transcoding. The bridge sends H.264 only, and never audio. Audio streams are allocated as bookkeeping because the full camera type mandates the feature. Advertised ceilings are declarations: snapshot and video up to 1920x1080, a minimum viewport of 320x180, 30 fps, 64 kbit/s to 4 Mbit/s, a 2-second key-frame interval and one concurrent encoder. One camera is one upstream pull, so two controllers do not double the load.
- Negotiation works either way round. With
SolicitOfferthe bridge offers its video on midvideoat payload type 96. WithProvideOfferthe controller's offer decides the answer: the video goes on the first m-line the controller can receive video on that offers H.264 at packetization-mode 1, under that m-line's mid and payload type. Every other m-line is answered inactive, and an m-line the controller rejected stays rejected. An offer with no such m-line is refused withDYNAMIC_CONSTRAINT_ERROR, because the bridge splits large NAL units into FU-A fragments, which packetization-mode 0 does not allow. - A session must reference a video or audio stream, and a controller naming none gets the default LiveView stream. The camera is dialled before a session is returned, so a camera with no media is a Matter failure instead of a session that never carries video.
ProvideOfferanswers with a session id only, so the answer, the bridge's own offer and every ICE candidate are invoked back on the controller's Requestor endpoint, taken fromoriginatingEndpointId. The bridge holds its local candidates until the controller has the description, then sends them in gathered order. An answer or offer refused asNOT_FOUNDis retried with 50, 100, 200 and 400 ms backoff, and only the first answer or offer of a session is retried. If the controller still does not know the session, the push fails and the session is torn down.- A session id names one session on the whole bridge, because the controller keys a negotiation by bridge node and session id and all bridged cameras sit behind one node. One counter serves every camera.
iceServersis empty, so there are no server-reflexive candidates and no egress. WithenableIceUdpMux, every session uses one host candidate on one pinned UDP port (MATTER_BRIDGE_MEDIA_PORT, default 5541), so the port an operator opens does not grow with viewers.- A pull that ends on its own is logged as
media.stream_ended_early. A pull that fails is logged asmedia.stream_failed. - The bridge image builds node-datachannel from source against the image's OpenSSL 3. The prebuilt platform packages statically link an end-of-life OpenSSL 1.1.1 in the DTLS/SRTP path, so the image deletes them, and a failed build fails closed.
Mapping rules
A mapper supplies the device-specific half of an endpoint plan. The factory adds identifiers and the
bridgedDeviceBasicInformation block, which mappers never set. A plan may be empty ("nothing to expose"), and one
descriptor can fan out into several members (gangs, scene buttons, boolean sensors). Default exposure uses native
Matter types.
- A mapper that writes a cluster declares it on the endpoint plan. An endpoint rejects a payload block for a behaviour it does not compose and rolls back the whole frame, so one undeclared cluster silently freezes every control attribute of the device. See A bridged cluster is declared before it is written.
- A state frame is applied in one matter.js transaction. On failure it is re-applied per cluster block, and what could not be placed is reported, rate-limited with a running count.
- The two directions cover the same attributes. Every controller-writable attribute has an observer, and every observed attribute is reconciled by the state projection. An observer for an attribute the state direction also writes has an echo guard, so a state frame is not republished as if a user had touched the control.
- Presence and controllability come from the capability descriptor, never from whether a value is present. A non-controllable capability is exposed read-only, and its handler returns an explicit Matter status.
- Fields with no canonical Matter mapping ride the Reeve Raw manufacturer cluster (
0xFFF1FC01), a read-only, non-volatileEntrieslist. It is read-only because a writable one would accept and serve back a controller write as if Reeve had said it. Partial frames merge over current entries by key. Its wire shape is in the vendor cluster reference.
A bridged endpoint's unique id and serial number are both at most 32 characters, stable across restarts and never
equal to each other, since ecosystems de-duplicate on the unique id. A dash-stripped GUID already takes 32 characters,
so a member id folds its key into a content digest plus a sliced GUID head, and the serial takes a non-hex leading
character (r). member.reeveDeviceId keeps the original GUID so inbound commands carry what the backend knows.
FixedLabel carries the room name, the only per-endpoint room hint in the specification (Google Home ignores it).
Vacuum area ids are the vendor's own numbers when the source forwards usable plain decimal ones for the whole list,
and otherwise FNV-1a hashes of the room name with collisions resolved by probing upward. A controller stores the
ServiceArea id, so an ordinal would repoint a saved automation when rooms are reordered. A rename changes the shown
name only. Clean-mode numbers follow the same all-or-nothing rule. An administrator's area names travel as the optional
AreaLabels of the expose message (area token to name) and are shown as the ServiceArea location name. A change of
labels rebuilds the endpoint with the same endpoint ids.
Unit and polarity traps:
| Trap | Rule |
|---|---|
| Window covering | Matter is 0 open, 100 closed, the inverse of the canonical model. Tilt percentage inverts the same way. |
| Brightness | Level maps to 1-254 as round(percent/100 × 253) + 1. Zero brightness is expressed as off, never as level 0. |
| Colour temperature | Mireds are the reciprocal of kelvin, so the descriptor's minimum kelvin becomes the maximum mireds. The bridge advertises the physical bounds and clamps. |
| Mode select | The cluster is a singleton per endpoint. A type with two open-enum capabilities cannot carry both, and carrying one arbitrarily is worse than carrying neither on the raw cluster. |
| Attribute shape | A controller may not write the attribute a canonical capability resembles. A thermostat fan declared as an enum is rendered by at least one ecosystem as a percentage slider writing a percent attribute. The bridge binds to what controllers write. |
| Enum ladders | When a canonical enum maps to a numeric ladder, each bucket's representative value lands inside that bucket, or the state feed and the control disagree. |
| Locks | Matter has no jammed state. It maps to not-fully-locked, and a lock alarm event is emitted only when the alarm feature is advertised on the endpoint. |
| Tilt angle | A tilt angle without a declared range cannot be converted to a percentage. The descriptor must carry the bounds, or the angle rides the raw cluster. |
Per-type rules:
| Type | Rule |
|---|---|
| Alarm panel | There is no intruder-alarm panel type, so it is ModeSelect plus BooleanState. Triggered keeps the prior CurrentMode, and only BooleanState flips. |
| Gas, siren, humidifier | A gas detector rides the Smoke/CO alarm's CO channel, with gas labels on the raw mirror. A siren and a humidifier are On/Off Plug-in Unit shells with extra clusters. |
| Outlet | A plug by default (overrides: light or mounted switch), with metering on the first gang only. |
| Sensor | One primary endpoint (the highest-priority type, with the others composed) plus one BooleanState endpoint per device-class boolean, in stable order. A battery alone never justifies a primary measurement endpoint. |
| Scene controller | One Generic Switch endpoint per button, with PowerSource on the first button only, so controllers show no phantom batteries. |
| Climate | Canonical Climate has no power capability ("off" is a mode), so a power button names a running mode (the last one seen) from the tokens the instance declares. A fan makes it a Room Air Conditioner, and the fan mode sequence includes Auto. The fan ladder is ascending and excludes auto. A single-setpoint device has one canonical setpoint but two Matter attributes, so the bridge observes both and publishes from the one systemMode selects. |
| Light | Features are declared explicitly and Lighting's StartUpOnOff is enabled. Unrecognised colour driver tokens ride the Reeve Raw cluster losslessly. XY follows colour temperature only while the light is in that mode. |
| Lock | The Unbolting feature is composed only when lock.lockState allows unlatched among a narrowed token set (the whole canonical set is the host's fallback for a driver that reported none, and does not count). With it, UnlockDoor unlocks and pulls the latch (unlatched) and UnboltDoor unlocks without pulling it (unlocked). Without it, UnlockDoor is a plain unlock (unlocked). |
| Vacuum | The OperationalState list includes an Error entry. Identify maps to vacuum.command=locate. RVC operation completion is emitted because the type mandates it. The clean-mode list contains a Vacuum- or Mop-tagged mode, and the Vacuum plus Mop tags mean "at once". Area names are capped at 128 octets, and same-named rooms collapse, because matter.js rejects a repeated AreaInfo. An unknown current room is null. A refused area selection is rejected before selectAreas writes. |
| Water heater | Needs an Off- and a Manual-tagged mode (reserved base modes seeded first, instance tokens offset by two) and boost and cancel-boost implemented, or construction fails. |
| Smoke/CO | A boolean detect maps to Normal, Warning or Critical from alarmState. Anything but "warning", absent included, is Critical, and test mode never masks a real alarm. |
| Camera | The full camera type mandates a WebRTC transport provider and video plus audio. snapshot-camera disallows them. Whether the bridge's WebRTC media module is enabled decides which is composed, and it is a runtime capability, not an operator setting. Commands the specification forbids while streams are allocated are refused, and releasing an unknown stream id is NOT_FOUND. |
For gang and button fan-out, the bridge reads the static channels declarations in descriptor order and uses each
declaration's Number as the endpoint member identity. channelLabels are a fallback only when declarations are
absent, and device state never creates endpoints. Read-only gang channels reject On/Off commands, while scene-controller
buttons remain event sources although they are non-controllable.
Structural limits:
- There is no per-ecosystem device-type morphing on one endpoint. A lowest-common-denominator fallback is always a separately advertised endpoint, never a runtime type change.
- Multi-gang devices have no composite that ecosystems render. Each gang is its own bridged endpoint, and each button of a scene controller is its own momentary switch endpoint.
- A device whose descriptor yields zero clusters is exposed only if it has raw properties to carry. Otherwise it is skipped.
- A device type whose mandatory clusters have unimplemented command handlers is not exposed, because a tile that fails on every interaction is worse than no tile. A write-only capability key with nowhere to route is refused for the same reason.
Limits
- The pairing window lasts 15 minutes by default and mints a fresh single-use code. Windows are closed at rest.
- The node-side supported-fabric cap is effectively off (
MATTER_BRIDGE_SUPPORTED_FABRICS, default 254). The limits that matter are per ecosystem: one consumes two fabric slots, and another caps at roughly fifty bridged devices. - Operational traffic and commissioning use UDP port 5540 (with TCP for large payloads), and mDNS uses 5353. Health and metrics are served over HTTP inside the pod.
- The bridge's footprint scales with the number of bridged devices, not viewers: roughly 113 MB for five devices, against limits of one core and 512 MiB and requests of 100 millicores and 192 MiB. A camera session costs roughly 0.008 cores and almost no memory.
Troubleshooting
| Symptom | Cause | Do |
|---|---|---|
| Controllers never find the bridge | No usable non-loopback IPv6 on the bridge host's LAN interface, the most common cause | Enable IPv6. The sidecar exits non-zero and crash-loops by design. |
| Controllers on another VLAN never find the bridge | mDNS does not cross subnets | Put the bridge host and every controller hub on one layer-2 segment, or run an mDNS reflector and allow the Matter UDP port across |
| Commissioning starts and stalls | The node's firewall blocks inbound UDP 5540 or 5353, or Wi-Fi client isolation is on | Open both ports from the LAN (cluster network policy does not apply to a host-network pod), or use a wired connection |
| An exposed camera appears but never plays | Live video is negotiated over TCP on the bridge port, and the firewall rule opened UDP only | Open TCP 5540 from the LAN as well |
| The bridge is on a multi-homed host and announces on the wrong interface | Interface selection defaults badly | Set MATTER_BRIDGE_NETWORK_INTERFACE to the LAN interface name or an address it holds. A value naming neither fails the boot with a config exit code. |
| "Uncertified accessory" prompt | The shipped test attestation identity | Accept once. It disappears only after certification. |
| One ecosystem refuses to commission at all | It requires the test vendor and product id to be registered in a free developer-console project, and test ids are limited to a few accounts | Register them and commission with that account |
| A device is greyed out in the controller | Reeve considers it stale or unreachable, which maps to the Matter reachable flag | It recovers when Reeve sees the device again. A device that is un-exposed or deleted is removed from the bridge, not marked unreachable. |
| Every ecosystem must be re-paired after a redeploy | The fabric volume was lost, or the node's storage identity changed | Restore from a volume snapshot. There is no other recovery. |
| Fabric slots exhausted | One ecosystem consumes two slots, and another caps at roughly fifty bridged devices | Unpair an unused fabric. Raising the node's supported-fabrics number changes nothing. |
| Media controls, sirens and alarm panels work in one ecosystem and not others | Known rendering limits of the bridged types | A mismatch from the documented rendering, such as a controller crashing on the raw cluster, is a defect worth reporting |
| A camera is exposed but no tile appears | The controller does not implement Matter cameras | Nothing is broken |
| The bridge reports healthy with zero fabrics | A freshly deployed, never-commissioned bridge is awaiting commissioning, not degraded | Only a bridge that was commissioned and now has zero fabrics is degraded |
| A commissioning code stops working | Each pairing window mints a fresh single-use code with a bounded lifetime | Re-open the window or rotate the code |
| New devices appear in one ecosystem but not another after a re-sync | Some ecosystems only refresh on an explicit "look for new devices" | Trigger it in that ecosystem's app |
| The readiness panel disagrees with the deployment checklist | Readiness lists conditions the backend can evaluate, such as an identity to act as and an active link. Host and network items cannot be observed from the backend. | Treat the checklist as guidance that the sidecar enforces on its own host |
| A pairing or unpair command answers 504 | The holder took it and did not see the bridge's report in time, so the fabric may or may not be gone | Refetch the status before acting |
| A resync answers 400 | The replica holding the link has no live link to the bridge | Check the bridge's session |
| A switch shows the old type in one controller after an override change | The controller does not re-read an existing endpoint's type | Recreate the gang in that controller |
See also
- Matter bridge operator guide: deploying, commissioning and troubleshooting.
- matter-vendor-clusters.md: the vendor clusters the bridge serves.
- Matter controller: the other direction.
- integrations.md: sidecars and the session plane.
- cluster.md: owned units, generations and the cluster bus the bridge relies on.
- camera-media.md: the camera media proxy the bridge pulls from.