Skip to Content

Binding in Practice: Setting It Up in Our Own App, Step by Step

The first two parts of this series were theory: what binding is, and when it beats an automation or a scene. This part is the practical one.

We will use Magic Box Binding, our iOS app, to bind a switch panel to a separate Matter light strip. By the end, pressing the panel turns on the strip — with no gateway, no automation and no cloud in the path.

What you need before you start

  • An iPhone on iOS 18.2 or later. The app is iOS only; there is no Android build.
  • Both devices commissioned into the same Apple Home. Not "both on the same network" — the same Apple Home.
  • A Thread border router if either device is Matter over Thread: HomePod mini, HomePod (2nd gen), Apple TV 4K (3rd gen, Ethernet), or a compatible third-party border router. If both devices are on Wi-Fi or Ethernet, the binding flow itself does not require Thread.

One caveat worth knowing up front: test builds of the app may report that the installed signature is missing Apple's Matter setup permission. If you see that, commission both devices in the Apple Home app first, then come back here to bind.

What the app does for you

This is the part that matters, and it follows directly from part 1.

A binding needs two things written: the binding table on the initiator, and an ACL entry on the target. Doing that by hand means two different write paths with two different privileges, and getting either wrong produces the same silent failure.

The app does both. When you confirm a binding, it writes the target's ACL entry granting the controller's Matter node ID CASE Operate, scoped to the selected endpoint and cluster, then reads it back. Then it writes the binding table on the controller endpoint — target node ID, endpoint, cluster — and reads that back too.

You pick the endpoints and confirm a preview. The two write paths are handled for you.

The eight steps

  1. 1. Open the app and tap Bindings in the bottom bar. If you are on the website home page, tap Bindings first.
  2. 2. Tap Read Apple Homes and allow Home access when iOS asks.
  3. 3. Under Apple Home, choose the Home that contains both devices. Under Controller, choose the panel, then tap Check Controller Endpoints.
  4. 4. Under Binding Type, choose On/Off or Dimming, then check the Controller Endpoint and tap Add Target. If the device supports only one type, the app shows that one directly.
  5. 5. Under Add Target Device, choose the light strip, then tap Check Target Endpoints. If the target is another endpoint on the same device, pick it from the list instead — the English prefix is Same device.
  6. 6. Under Target Endpoint, confirm the strip's endpoint, then tap Preview Binding.
  7. 7. Check the preview: controller, target device, endpoints and the privilege about to be granted. If the app says it will grant access, it handles that after you confirm. Tap Confirm Setup.
  8. 8. In the Write Binding dialog, tap Confirm Write and wait for the app to read the result back.

Then verify. Under Bound Targets you should see the strip with a note that one target is configured. Press the panel — or use Read Target State under Test Devices — and confirm the strip actually responds. If you are binding a second device, tap Add Another Target.

What build 14 does and does not do

Supported, with a controller endpoint that provides both a Binding Server (0x001E) and the matching client cluster:

  • On/Off (0x0006) — switch-style control, a panel key driving another strip
  • Level Control (0x0008) — dimming, a knob adjusting brightness

Not configured in this build:

  • Color Control (0x0300) — colour and colour temperature. Lamps with this cluster still work via their On/Off or Level Control capabilities.
  • Window Covering (0x0102) — no opening, closing, stop or position binding
  • Occupancy Sensing (0x0406), Boolean State (0x0045) — no sensor state or event binding
  • Switch (0x003B) alone is not enough to initiate a binding. Switch mode still requires On/Off Client on the same endpoint.

Two other limits worth stating plainly:

  • Group binding is not created in build 14. Existing valid group entries are preserved in the table, but the app does not create or edit them.
  • There is no automatic rollback. Across two devices the app writes the target ACL first, reads it back, then writes the controller binding. If the ACL write succeeds and the binding write fails, the new ACL entry may remain. If a write times out, read the state back before retrying.

Multi-admin devices work as long as source and target both belong to the Apple Home you are configuring. The app does not write across fabrics, and does not copy bindings or ACLs from other platforms such as Home Assistant.

When it does not work

The app reports failures with specific text rather than a generic error. The most common ones at this stage:

  • "This device has no binding endpoint for on/off or dimming." — the controller firmware does not expose both a Binding Server and the matching client cluster.
  • "The target ACL is full for the current fabric." — the preview found that appending the grant would exceed the target's ACL capacity.
  • "The binding table changed during confirmation." — something else modified the controller's table between preview and write. Read again and re-preview.

Part 4 goes through the full set of failure modes and what each one actually means.

Written by ReZ-TI. Magic Box Binding is our iOS tool for configuring Matter bindings; the fixtures and panels it binds are the ones we build.

Binding、自动化、场景:让一个开关工作的三种方式