Networking and diagnostics54 — Wi-Fi Network Diagnostics

Matter Cluster 54 — Wi-Fi Network Diagnostics

Documentation for Matter Cluster 54 (0x0036) Wi-Fi Network Diagnostics: features, all 13 attributes, enums, commands, events, RSSI interpretation, and how SmartphoneKey shadows expose Wi-Fi data.

Matter Cluster 54 — Wi-Fi Network Diagnostics

Matter Cluster 54, also written as 0x0036, is the Wi-Fi Network Diagnostics Cluster. It is served by every Matter node that connects over Wi-Fi and reports the state of that link: access point BSSID, security type, Wi-Fi generation, channel, RSSI and traffic counters. It is diagnostics only: it does not configure Wi-Fi (that is cluster 49 Network Commissioning) and it does not represent device availability.

Cluster Identity

FieldValue
Cluster ID decimal54
Cluster ID hex0x0036
Cluster nameWi-Fi Network Diagnostics
Cluster revision (Matter 1.6.1)1 (unchanged since Matter 1.0)
Typical endpoint0 (root endpoint, one instance per node)
Spec sectionCore Specification, "Wi-Fi Network Diagnostics Cluster"

Wi-Fi Network Diagnostics is a node-level cluster on endpoint 0. Thread devices do not serve it; Wi-Fi devices (for example Wi-Fi locks, plugs, cameras, Wi-Fi bridges such as a Zigbee gateway) do. A node that has both radios may serve both cluster 53 and cluster 54.

Related clusters:

ClusterRole
49 Network CommissioningStores the SSID/credentials and connects the node to Wi-Fi (AddOrUpdateWiFiNetwork, ConnectNetwork); SupportedWiFiBands (attr 8) says which bands the radio supports.
51 General DiagnosticsLists the Wi-Fi interface in NetworkInterfaces with its MAC and IP addresses and InterfaceType = Wi-Fi.
1105 Wi-Fi Network ManagementServed by a Wi-Fi router/hub device, not by clients.

Shadow Path Format

endpoint / 54 / attribute

Example from a SmartphoneKey device shadow:

{
  "0/54/4": -58
}
PartMeaning
0Root endpoint
54Wi-Fi Network Diagnostics cluster
4RSSI attribute
-58Signal strength in dBm

SmartphoneKey bridge behaviour. Unlike Thread diagnostics (cluster 53), cluster 54 is written to the device state shadow. Expect 0/54/* keys on Wi-Fi devices only. On Thread-only devices the keys are absent; older shadow exports showed nan or null for 0/54/4 on such devices, which means "not a Wi-Fi device", not "no signal".


Features (FeatureMap, attribute 65532)

BitCodeFeatureAttributes it unlocks
0PKTCNTPacketCounts6–10 beacon and packet counters
1ERRCNTErrorCounts5 BeaconLostCount, 12 OverrunCount, command ResetCounts

A FeatureMap of 0 means only attributes 0–4 (and optionally 11) are available. This is common on consumer devices.


Attributes

All attributes are read-only and all are nullable: a node returns null when it is not associated with an access point. Conformance from the 1.6.1 data model: M mandatory, O optional, or the feature that makes it mandatory.

IDAttributeTypeConf.Meaning
0BSSIDoctstr (6 bytes)MMAC address of the access point the node is associated with. Changes when the device roams between APs or mesh nodes.
1SecurityTypeSecurityTypeEnumMSecurity of the current association (WPA2, WPA3, ...).
2WiFiVersionWiFiVersionEnumMHighest 802.11 PHY generation negotiated with the AP.
3ChannelNumberuint16MWi-Fi channel in use. 1–14 = 2.4 GHz, 36–177 = 5 GHz, higher = 6 GHz.
4RSSIint8MReceived signal strength of the AP in dBm, typically -30 … -90.
5BeaconLostCountuint32ERRCNTBeacons expected but not received. A rising value means the AP is intermittently unreachable.
6BeaconRxCountuint32PKTCNTBeacons received.
7PacketMulticastRxCountuint32PKTCNTMulticast packets received.
8PacketMulticastTxCountuint32PKTCNTMulticast packets transmitted.
9PacketUnicastRxCountuint32PKTCNTUnicast packets received.
10PacketUnicastTxCountuint32PKTCNTUnicast packets transmitted.
11CurrentMaxRateuint64OCurrent maximum PHY rate in bits per second (for example 72200000 = 72.2 Mbit/s).
12OverrunCountuint64ERRCNTPackets dropped because of buffer overrun since boot or last ResetCounts.

Counters (5–10, 12) reset on reboot and on ResetCounts; compare deltas, not absolute values.

Global attributes

IDAttribute
65528GeneratedCommandList (always empty)
65529AcceptedCommandList ([0] when ERRCNT is supported)
65531AttributeList
65532FeatureMap
65533ClusterRevision (1)

Data Types

SecurityTypeEnum (attribute 1)

ValueNameMeaning
0UnspecifiedUnknown.
1NoneOpen network, no encryption.
2WEPLegacy WEP (insecure).
3WPAWPA (TKIP).
4WPA2WPA2-PSK, the common case.
5WPA3WPA3-SAE.

WiFiVersionEnum (attribute 2)

ValueNameStandard
0a802.11a (5 GHz, legacy)
1b802.11b
2g802.11g
3n802.11n, Wi-Fi 4
4ac802.11ac, Wi-Fi 5
5ax802.11ax, Wi-Fi 6 / 6E
6ah802.11ah, Wi-Fi HaLow (sub-GHz)

Most Matter IoT devices use 2.4 GHz-only radios and report 3 (n).

AssociationFailureCauseEnum (event 1)

ValueNameMeaning
0UnknownUnspecified.
1AssociationFailedAP rejected the association.
2AuthenticationFailedWrong passphrase or incompatible security.
3SsidNotFoundSSID not seen in scan (wrong band, AP down, out of range).

ConnectionStatusEnum (event 2)

ValueName
0Connected
1NotConnected

Commands

IDCommandDirectionConformanceEffect
0ResetCountsclient → servermandatory if ERRCNTResets BeaconLostCount, OverrunCount and (if present) the packet counters to 0. Status-only response.

Events

IDEventPriorityFieldsWhen
0DisconnectioninfoReasonCode (uint16)The node lost its association. ReasonCode is the IEEE 802.11 reason code (for example 1 unspecified, 3 station leaving, 4 inactivity, 15 4-way handshake timeout).
1AssociationFailureinfoAssociationFailureCause (enum), Status (uint16, 802.11 status code)An attempt to associate failed.
2ConnectionStatusinfoConnectionStatus (enum)Association state changed.

All three events are optional. Because a disconnected Wi-Fi node cannot deliver events, Disconnection is usually only seen after the device reconnects and flushes its event log.


Interpreting RSSI

RSSI (dBm)QualityExpectation
-30 … -50ExcellentDevice next to the AP.
-50 … -65GoodNormal operation.
-65 … -75FairWorks, occasional retries; mesh/extender roaming likely.
-75 … -85WeakDelayed commands, missed reports, reconnects.
below -85UnusableExpect the device to drop off.

RSSI is a single sample at read time and fluctuates by ±5 dBm. Average several reads before deciding a device has a placement problem. A good RSSI with a rising BeaconLostCount points at the AP (overloaded, band-steering, DFS channel change) rather than at distance.

Typical health checks

SymptomAttribute(s) to look at
Device drops offline periodicallyRSSI below -75, BeaconLostCount rising, Disconnection events with reason 4 (inactivity).
Device fails to join after Wi-Fi changeAssociationFailure with AuthenticationFailed (wrong passphrase) or SsidNotFound (5 GHz-only SSID, hidden SSID). Fix via cluster 49, not here.
Slow responses but good RSSICurrentMaxRate very low, ChannelNumber on a crowded channel, OverrunCount rising.
Device switched APBSSID changed; confirm the new AP's RSSI.

Example

Raw read of a Wi-Fi device (Zigbee gateway bridge) as seen by the bridge, and the resulting shadow keys:

{
  "0/54/0": "a4:91:b1:3c:7e:10",
  "0/54/1": 4,
  "0/54/2": 3,
  "0/54/3": 6,
  "0/54/4": -58,
  "0/54/5": 12,
  "0/54/6": 48213,
  "0/54/9": 15331,
  "0/54/10": 9870,
  "0/54/11": 72200000,
  "0/54/12": 0,
  "0/54/65532": 3,
  "0/54/65533": 1
}

Reading: associated with AP a4:91:b1:3c:7e:10 using WPA2 on 802.11n, channel 6 (2.4 GHz), -58 dBm (good), 12 beacons lost out of ~48k (healthy), PHY rate 72.2 Mbit/s, both counter features present.

The bridge may render BSSID as a hex/base64 string depending on firmware; treat it as an opaque identifier and compare for equality only.


SmartphoneKey Notes

  • Present in shadows for Wi-Fi devices as 0/54/*. The most useful key for support is 0/54/4 (RSSI); the others are rarely needed outside troubleshooting.
  • Not an availability signal. A device that goes offline simply stops updating; RSSI in the shadow then goes stale. Use the presence pipeline for online/offline.
  • Wi-Fi-connected Matter devices on SmartphoneKey hubs (for example Yale Linus L2 Wi-Fi, Tuya/Zigbee gateways) are reached over the LAN, so their Wi-Fi quality affects every Matter interaction. RSSI below -75 on such a device explains flapping better than anything in the hub's Thread diagnostics.
  • Hub Wi-Fi vs device Wi-Fi. This cluster describes the device's link to its AP. The hub's own uplink is not a Matter node and is monitored separately (hub telemetry, nmcli on the hub).
  • Thread-only devices never expose cluster 54. A missing 0/54/4 is expected; do not interpret it as a fault.