Matter Bridge commissioning with Amazon Echo Hub fails after AddNOC (openHAB 5.2.3)

Hello everyone,

I’m trying to commission the openHAB Matter Bridge with an Amazon Echo Hub, but commissioning consistently fails before completion.

I’d appreciate help understanding whether this is a known issue with openHAB 5.2.3, the bundled Matter.js runtime, or the attestation certificates used by the bridge.

Environment

  • openHAB: 5.2.3

  • Hardware: Raspberry Pi 5

  • Node.js: v22.23.4 (/usr/bin/node)

  • Matter binding bundle: 301, version 5.2.3

  • Controller/commissioner: Amazon Echo Hub

  • Router: ASUS RT-AC86U running Asuswrt-Merlin 386.14_2

  • The openHAB Matter Bridge Thing reports ONLINE.

  • The bridge configuration reports Running State: Running.

  • The Matter Node.js process listens on UDP port 5540.

The bridge is defined in a .things file as a matter:controller Thing with interface="eth0". The devices I want to expose are standard openHAB Switch items, for example:

Switch bs01 "Pool" {
    channel="openwebnet:bus_on_off_switch:mybridge:s01:switch",
    ga="Light",
    matter="OnOffLight"
}

What happens

The Echo Hub discovers the bridge and starts commissioning. The initial PASE handshake succeeds, and the exchange proceeds through regulatory configuration, attestation, CSR generation and operational credential installation.

The relevant log sequence is:

  1. SC/PbkdfParamRequest received from the Echo Hub over IPv6.

  2. PASE session established successfully.

  3. Initial GeneralCommissioning.armFailSafe succeeds.

  4. SetRegulatoryConfig with country code IT succeeds.

  5. CertificateChainRequest is answered.

  6. AttestationRequest succeeds.

  7. CSRRequest succeeds.

  8. AddTrustedRootCertificate succeeds.

  9. AddNOC succeeds and an operational certificate is installed (fabric index 7).

  10. Approximately 20 seconds later, the Echo Hub sends GeneralCommissioning.armFailSafe with expiryLengthSeconds: 0.

  11. openHAB resets the fabric builder, revokes fabric index 7 and closes the session.

The key log lines are:

certificateChainRequest
...
node-matter Dev PAI
...
Matter Test PAA
...
attestationRequest
...
csrRequest
...
addTrustedRootCertificate
...
addNoc
...
expiryLengthSeconds: 0 breadcrumb: 1
FailsafeContext: Failsafe timer expired; resetting fabric builder
FailsafeContext: Revoking fabric index 7

There is no successful CommissioningComplete, and commissioning never reaches a stable operational CASE session.

I also see this earlier in the exchange:

generalCommissioning.0x6
UnsupportedCommand(129)

The Echo Hub continues commissioning after this response, so I don’t know whether it is related to the eventual abort.

What I have already checked

  • Restarted the Matter binding and reproduced the same failure.

  • Confirmed that the bridge is online and the Node.js process is listening on UDP port 5540.

  • Captured network traffic: IPv6 communication between the Echo Hub and openHAB is occurring, and the initial commissioning exchange completes.

  • Tested a temporary ULA IPv6 configuration on the router; the failure remained.

  • The Echo Hub’s commissioning request reaches openHAB, so this does not appear to be a simple discovery or initial-connectivity failure.

Questions

  1. Is the node-matter Dev PAI / Matter Test PAA certificate chain expected for the openHAB 5.2.3 Matter Bridge?

  2. Can Amazon Echo Hub commission a bridge using these development/test attestation certificates, or would that explain why the commissioner aborts after AddNOC?

  3. Is there a known compatibility issue between openHAB 5.2.3 / its bundled Matter.js version and Amazon Echo Hub?

  4. Is UnsupportedCommand(129) for GeneralCommissioning command 0x06 expected, and could it cause the commissioner to cancel commissioning later?

  5. Are there additional Matter.js debug logs or configuration details I should collect to identify why the Echo Hub sends ArmFailSafe with expiryLengthSeconds: 0?

I have not manually reset the bridge or deleted any fabric data. I wanted to identify the cause before making further changes.

Attached the full TRACE log.

Thanks in advance for any suggestions.

log-trace.txt (44.7 KB)

ArmFailSafe with expiryLengthSeconds 0 is the commissioner cancelling the commissioning window, not a device-side error. Together with ‘Failsafe timer expired; resetting fabric builder’ it means the hub never sent CommissioningComplete, so the fabric was rolled back. Some commissioners verify the new fabric with a CASE session before committing, so the interesting gap in your trace is between addNoc and the abort: if no CASE attempt appears there, the hub could not reach the bridge on the operational channel, and the test attestation certs are a red herring since AttestationRequest already succeeded. Fabric index 7 also shows earlier attempts left fabrics installed in the binding storage; clearing them before a clean retry removes one variable. Between addNoc and the failsafe expiry, does your trace show any CASE session attempt or an operational _matter._tcp lookup from the hub?

Hi,

Thanks for the analysis. I checked the TRACE log around addNoc.

The bridge publishes the operational service immediately after installing the fabric:

20:15:19.817 MdnsAdvertisement: Publishing kind: operational

service: mdns:AA5368F7ED5D051A-079F8907E6CE07C0._matter._tcp.local

It continues broadcasting the operational service at 20:15:21, 20:15:23, 20:15:27 and 20:15:36.

However, between addNoc at 20:15:19.799 and the commissioner’s ArmFailSafe(expiryLengthSeconds: 0) at 20:15:39.887, I cannot find any explicit CASE session attempt or incoming operational Matter traffic in the TRACE log.

So the operational service is being advertised, but I cannot tell whether the Echo Hub receives the advertisement, resolves it, or attempts to connect to the operational endpoint.

Could it be a problem of network?

Both halves of what you posted point at discovery rather than the Matter stack. The 20 second gap between addNoc and ArmFailSafe(expiryLengthSeconds: 0) is about the size of a commissioner resolve window, so a hub that never resolves the operational node aborts exactly this way. The operational instance name is fabric scoped (AA5368F7ED5D051A-079F8907E6CE07C0._matter._tcp), so browsing _matter._tcp on the Pi proves the bridge is announcing, not that the hub can resolve that particular name. And mDNS is link local: it does not cross a subnet or a wired-to-wireless boundary unless something reflects the multicast between them. The decisive test is from a laptop on the hub’s own Wi-Fi segment - browse _matter._tcp there and see whether that instance name appears and which addresses and port it lists. Is the Echo Hub on the same subnet as the Pi’s eth0 interface, or is it behind the router’s wireless side?

The Raspberry Pi is connected via Ethernet (eth0), while the Echo Hub is connected via Wi-Fi. Both connect to the same router, but I haven’t yet verified whether mDNS traffic is properly forwarded between the wired and wireless interfaces.

Would you recommend checking whether the Echo Hub can discover the specific _matter._tcp instance from the Wi-Fi network first?

Yes, with the comparison made explicit so the result is unambiguous. Run avahi-browse -rt _matter._tcp twice - once on the Pi, once on a machine joined to the hub’s Wi-Fi - and diff three fields per instance: service instance name, port, address family. Operational Matter sessions connect on TCP 20002, so a Wi-Fi-side entry showing the fabric-scoped instance with the Pi’s eth0 address and port 20002 means discovery is healthy and the failure sits in the CASE handshake itself. An entry missing on the Wi-Fi side points at the router boundary (mDNS reflector disabled or client isolation between wired and wireless ports), and an entry that lists only IPv6 while the hub attempts IPv4 explains a browse that succeeds but never completes. Which of those three shapes does the Wi-Fi-side browse return?