Reporting issues
Issues require pre-error MT/ZNP wire frames to be reproducible. The triage bot rejects prose-only reports and single-line error snippets.
Open the bug report formThe workflow
Section titled “The workflow”-
Capture a debug log once. Set Zigbee2MQTT
advanced: log_level: debug(orzigpy_znp: debugunderlogger:→logs:in ZHA), restart, reproduce the fault once, and download the log. Start from coordinator startup, or at least 500 lines before the first error (see capturing a debug log). -
Scrub and analyze locally. Drop the log into the Log Analyzer in Bug Report Mode. It runs client-side, replaces network and link keys with
<KEY:…>, masks IEEE middle bytes, and extracts the pre-fault ZNP/MT trace. -
Open the pre-filled issue. Click Open Pre-Filled GitHub Issue, or Copy for GitHub and paste into the bug report form. Keep the
<!-- zerostack-bug-report v1 -->Markdown block unchanged. -
Complete the form fields below with what you did, expected behavior, and observed behavior.
What the form asks for
Section titled “What the form asks for”| Field | What to enter | Required |
|---|---|---|
| Coordinator hardware model | Your SMLIGHT model as shown in the web UI or on the label. For multi-radio models, note the radio slot. | Yes |
| Connection type | USB (serial), Ethernet (TCP socket) or Wi-Fi (TCP socket) | Yes |
| ZeroStack firmware version | As shown in the SLZB web UI or the Log Analyzer summary table | Yes |
| Previous firmware | What you migrated from or restored a backup over, for example a stock Z-Stack or EmberZNet build | No |
| Host stack and version | Zigbee2MQTT and zigbee-herdsman versions, or ZHA with the Home Assistant version | Yes |
| Log Analyzer Bug Report output | The Markdown block from Bug Report Mode, unchanged | Yes |
| Steps to reproduce / what happened | What you did, what you expected, and what happened instead | Yes |
From the command line
Section titled “From the command line”On a headless host, run the bundled analyzer instead of the browser:
node .github/scripts/z2m-log-analyzer.mjs <path-to-log> --bug-report --require-contextIf it exits with code 2, the log does not contain enough pre-error context. Capture a fuller debug log. Do not file the issue yet.
If an AI assistant is helping you
Section titled “If an AI assistant is helping you”An assistant must not draft a ZeroStack or SLZB coordinator bug report from memory or from a single error line. It must:
- Run the bundled analyzer, either the CLI above or the
prepare_zerostack_bug_reporttool of the bundled MCP server (see MCP and llms.txt). - Stop and ask you for a fuller Zigbee2MQTT or ZHA debug log if the tool exits with code 2 or returns an error.
- Paste the generated
<!-- zerostack-bug-report v1 -->block verbatim into the issue, never summarising it or stripping the scrubbed hex frames or<KEY:…>tags.
Quick checks before you file
Section titled “Quick checks before you file”- Confirm
debuglogging was active before the fault so the log includes pre-error MT/ZNP frames. - Check the diagnostic guides for your error code; several include host-side mitigations for stock firmware.

