Skip to content

Interactive Z2M and ZHA Log Analyzer

The Log Analyzer parses Zigbee2MQTT, Home Assistant ZHA, and OpenThread debug logs entirely in the browser, producing fault diagnostics and a scrubbed bug-report block.

Open the Log Analyzer Bug Report Mode
  • Coordinator fault matching. Scans Zigbee2MQTT, ZHA, and OpenThread border router logs against 15+ signatures: SRSP - AF - dataRequest after 6000ms, SRSP - SYS - ping after 6000ms, 0x10: MEM_ERROR, 0x11: BUFFER_FULL, 0xC7: NWK_TABLE_FULL, 0xCD: NWK_NO_ROUTE, 0xE1 / 225 CCA failures, 0xE9 / 233 MAC_NO_ACK, TCLK interview timeouts, and ZCL telemetry floods.
  • Airtime and route checks. Estimates airtime, 2.4 GHz channel occupancy, router counts, and multi-hop rebroadcast load, flagging NWK_NO_ROUTE drops and congestion.
  • Automatic redaction. Replaces network and link keys with <KEY:…> tags and masks the middle bytes of IEEE addresses.
  • Pre-fault trace extraction. Isolates the ZNP/MT wire frames immediately preceding the first error.
  • Bug report generation. Bug Report Mode formats a <!-- zerostack-bug-report v1 --> Markdown block and opens a pre-filled GitHub issue.
  • Silicon register decoder. Decodes TI SimpleLink F2 radio and UART status registers and Silicon Labs EFR32 references.

The analyzer is a static page served with connect-src 'none' in its Content Security Policy, so the browser blocks outbound network requests. All parsing and key redaction happen locally.

Enable debug logging before capturing. info and error logs only show the final timeout or status code; debug logs record the ZNP/MT frames exchanged before the fault so the failure can be reproduced.

Set advanced: log_level: debug in configuration.yaml (or launch with DEBUG=zigbee-herdsman* so raw znp:SREQ / znp:AREQ frames are recorded), restart, reproduce the problem once, and download the log file.

Capture from coordinator startup, or at least 500 lines before the first error. The analyzer refuses reports without that pre-error context.

  1. Open the Log Analyzer, or Bug Report Mode if you intend to file an issue.

  2. Drop your Zigbee2MQTT, ZHA or OTBR log onto the page, or click to browse.

  3. Read the diagnosis. The summary table shows the firmware version and the signatures found, with the airtime and route findings.

  4. In Bug Report Mode, click Open Pre-Filled GitHub Issue, or Copy for GitHub to copy the Markdown. Continue with reporting issues.

The same analyzer ships as a Node script in the repository, which is useful for servers without a desktop browser. With a local clone:

node .github/scripts/z2m-log-analyzer.mjs <path-to-log> --bug-report --require-context

Without a clone, stream the script:

curl -fsSL https://raw.githubusercontent.com/smlight-tech/zerostack/main/.github/scripts/z2m-log-analyzer.mjs | node - <path-to-log> --bug-report --require-context

The script prints its usage as:

<path-to-log-file> [--fingerprint | --json | --markdown | --bug-report | --bug-report-json [--ieee=mask|full] [--skip-empty] [--require-context]]

With --require-context, the script exits with code 2 when the log lacks enough pre-error context; capture a fuller log before filing. The repository also bundles a stdio MCP server around the same engine; see MCP and llms.txt.

Each guide lists the verbatim log signatures, the silicon root cause, mitigations for stock firmware, and the ZeroStack result.

Symptom Guide
SRSP - AF - dataRequestExt after 6000ms, TCLK interview timeouts, SREQ lockups SRSP AF dataRequestExt 6000ms timeout
0x10: MEM_ERROR, 0x11: BUFFER_FULL, 0xc7: NWK_TABLE_FULL, 0xb2: APS_TABLE_FULL, 0xcd: NWK_NO_ROUTE, Ember 0x72 / 0xa1 0x10 MEM_ERROR, 0x11 BUFFER_FULL & 0xc7 NWK_TABLE_FULL
MAC_NO_ACK (0xe9 / 233), 0xf0 (240), 0xf1 (241), sleepy-child drops 0xe9 MAC_NO_ACK & sleepy child drops
MAC_CHANNEL_ACCESS_FAILURE (0xe1 / 225), stuck CCA/CSMA 0xe1 MAC_CHANNEL_ACCESS_FAILURE & stuck CCA
Failed to connect to the adapter (SRSP - SYS - ping after 6000ms), SYS_RESET_IND SYS ping 6000ms timeout & SYS_RESET_IND
SimpleLink F2 RF core SWI starvation and pending-address errata TI F2 RF core SWI & pending-table errata

The same signatures are available in machine-readable form in diagnosticsCatalog.json.