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 ModeWhat it does
Section titled “What it does”- 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/ 233MAC_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_ROUTEdrops 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.
Privacy: nothing leaves your browser
Section titled “Privacy: nothing leaves your browser”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.
Capture a debug log
Section titled “Capture a debug log”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.
Go to Settings → Devices & services → Zigbee Home Automation, click ⋮ → Enable debug logging, reproduce the problem (or click ⋮ → Reload if it happens on startup), then click Disable debug logging to download the log. Alternatively set zigpy_znp: debug under logger: → logs:.
Capture from coordinator startup, or at least 500 lines before the first error. The analyzer refuses reports without that pre-error context.
Use it in the browser
Section titled “Use it in the browser”-
Open the Log Analyzer, or Bug Report Mode if you intend to file an issue.
-
Drop your Zigbee2MQTT, ZHA or OTBR log onto the page, or click to browse.
-
Read the diagnosis. The summary table shows the firmware version and the signatures found, with the airtime and route findings.
-
In Bug Report Mode, click Open Pre-Filled GitHub Issue, or Copy for GitHub to copy the Markdown. Continue with reporting issues.
Use it from the command line
Section titled “Use it from the command line”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-contextWithout 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-contextThe 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.
Diagnostic guides by symptom
Section titled “Diagnostic guides by symptom”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.

