Main

Diagnosing Intermittent Z-Wave Unresponsiveness: Logs First, Sniffer Second

Intermittent Z-Wave failures are frustrating because they rarely leave a clean error at the moment you notice them. A light doesn’t respond, a sensor misses a report, and by the time you open the interface the network looks fine. The temptation is to buy a sniffer and watch the airwaves. That is usually the wrong first move. The driver log is cheaper, faster, and tells you which of three very different problems you actually have: a node that stopped answering, a controller that stopped issuing commands, or a transport layer that never delivered the command at all.

This article lays out a log-first diagnostic ladder for an installed Home Assistant and Z-Wave JS system. The sniffer is treated as a second-stage instrument with real preconditions, not a magic wand. The goal is a repeatable procedure that produces evidence you can compare across occurrences.

Why classification comes before instrumentation

“Z-Wave is unresponsive” describes a symptom, not a fault. The same symptom can come from at least three layers:

  • Node-scoped: one device stops acknowledging commands while its neighbors still respond. The controller is working; the node or its route is not.
  • Controller-scoped: the controller stops issuing commands, reports a jammed state, or needs a reset. Every node looks unresponsive because nothing is being sent.
  • Transport-scoped: Home Assistant cannot reach the Z-Wave JS server, so commands never reach the driver. The radio may be perfectly healthy.

Each layer has a different fix and a different evidence trail. A sniffer only helps with the first two, and only after you know which one you are chasing. The driver log distinguishes all three, which is why it comes first.

Step 1: Capture the right log, not every log

Z-Wave JS UI separates driver logs from application logs. For device and network troubleshooting, the driver logs are the ones that matter: they show communication between the controller and the devices. Application logs are mainly for troubleshooting the Z-Wave JS UI interface itself, not the Z-Wave devices. Enabling both and drowning in UI chatter makes the relevant lines harder to find.

The documented workflow for Z-Wave JS UI is:

  1. Open Z-Wave JS UI, go to Settings, then the Z-Wave section.
  2. Set the log level to Debug.
  3. Turn Log enabled on and Log to file on.
  4. Save the settings.
  5. Restart the add-on.
  6. Wait one to two minutes for the network to stabilize so the log captures normal traffic, not just startup noise.
  7. Reproduce the problem.
  8. Wait about a minute for events to be written, then download the log from Settings, then Logs.

Two cautions. First, debug logs grow quickly; do not leave debug logging enabled for days. Set the level back to normal after you have the capture. Second, Home Assistant’s own troubleshooting guidance notes that debug logging stays on across one restart, so the log includes startup behavior, and is off after the next restart. That is useful for capturing initialization problems, but it also means you should not assume logging is still active after a second restart.

If you run the Z-Wave JS server directly rather than through the UI, the server exposes a start_listening_logs command that streams log events to a client, optionally filtered. The bundled client can also dump each message on a single line for later replay and filter output by node ID. That is the closest thing to a scripted capture: one line per event, one node at a time.

Step 2: Read the log for node-level failure

Once you have a capture, search for the phrases that mark a node-level failure. In Z-Wave JS driver logs, a node that fails to respond is logged as presumed dead, and a ping failure is logged as the node not acknowledging the command with code ZW0204. A representative excerpt from a public Home Assistant thread shows the pattern:

[Node 011] The node did not respond after 1 attempts, it is presumed dead
[Node 011] The node is dead.
[Node 011] ping failed: The node did not acknowledge the command (ZW0204)

What matters is not the exact wording but the structure: which node IDs appear, whether the failure is isolated to one node or spread across many, and whether other nodes in the same log are reported alive with successful pings. In that same thread, other nodes were reported alive and their pings succeeded while node 011 was presumed dead. That coexistence is the key signal: a working controller with one dead node is a node or route problem, not a controller problem.

Also watch for nodes reported as asleep. A battery-powered sensor that misses a command may simply have been asleep at the moment the command was sent. That is a scheduling problem, not a mesh problem, and the log will show the node as asleep rather than dead. Treating an asleep node as a dead node leads to unnecessary exclusion and re-inclusion.

Step 3: Separate node failure from controller failure

If the log shows one node presumed dead while its neighbors respond, the controller is issuing commands and the mesh is carrying them. The failure is scoped to that node or its route. If the log shows the controller itself stopping, or Home Assistant reporting the controller as jammed, the problem is controller-scoped.

Public reports illustrate both patterns. In one GitHub issue, a user migrating roughly 50 devices reported that messages were slow to execute and that Home Assistant regularly reported the controller was jammed; diagnostics on many nodes showed the controller could ping a node but return pings failed. That is a controller or routing-layer signature, not a single bad device. In the same issue thread, a maintainer pointed to other tracked issues for the jammed/unresponsive behavior and noted that firmware 7.21 was in a bad state, with 7.22.x limited to 800 series controllers. That is a hedged statement about a range of versions, not a recommendation to flash a specific firmware, and it should be read that way.

The practical distinction: a single dead node with healthy neighbors points at the node or its route. A controller that stops issuing commands, or a jammed state reported by Home Assistant, points at the controller or the server layer. Do not replace a device because the controller is jammed, and do not reset the controller because one battery sensor missed a wake-up window.

Step 4: Check the transport layer before blaming the radio

A connection failure between Home Assistant and the Z-Wave JS server can look exactly like device unresponsiveness. The integration shows entities as unavailable, commands appear to do nothing, and the radio may be fine. Home Assistant logs can show the Z-Wave integration failing to connect to the server host and port and retrying in the background. A representative line from a public thread:

Config entry 'Z-Wave JS' for zwave_js integration not ready yet: Failed to connect: Cannot connect to host core-zwave-js:3000 ssl:default [Connect call failed ('172.30.33.1', 3000)]; Retrying in background

The Z-Wave JS server also closes client connections with code 1013 (Try Again Later) while the driver is not ready, and the client is expected to retry. If you see repeated connection failures or 1013 closures, fix the transport before you touch the mesh. A sniffer would show a healthy radio while the actual problem is a container network or a stopped server.

Step 5: Only then introduce the sniffer

The Silicon Labs Zniffer is described in its user guide as a development tool for detecting RF communication in a Z-Wave network, used during software application development for debugging. It is a legitimate instrument, but it has preconditions that a log-first approach respects.

Firmware and hardware compatibility. A Zniffer dongle must run Zniffer firmware, and not every dongle or firmware combination works. In a public community thread, one user reported that flashing an Aeotec Gen5+ with Zniffer firmware 2.55 worked while their SiLabs UZB with firmware 2.43 did not. That is a single user’s attempt, not a compatibility matrix; treat it as a warning that you should verify your specific dongle and firmware before relying on a capture.

Exclusive port access. The same thread documents a capture attempt failing with a “Cannot lock port” error, with the suggested next step being to raise log verbosity because the API might not be compatible at all. If another process holds the serial port, the sniffer cannot open it. Confirm the port is free before you plan a capture session.

The nonce-exchange limit for S2 traffic. With a supported Zniffer dongle you see all RF traffic on the selected frequency, and recognized transmissions show start and end node, bandwidth, and command class. But S2-encrypted messages can only be decrypted if the Zniffer has seen the nonce exchange between the node and controller. If you start the sniffer after the nonce exchange, you will see encrypted frames you cannot decode. That is not a failure of the sniffer; it is a limit of what a passive capture can prove.

Given those constraints, the sniffer is best used to answer a narrow question the log cannot: did the command reach the node over the air, and did the node answer? If the log says the node did not acknowledge, and the sniffer shows the frame arriving at the node with no response, you have corroboration at the RF layer. If the sniffer shows the frame never leaving the controller, the problem is upstream of the mesh.

Step 6: A repeatable procedure

The procedure below is designed to produce two artifacts: a timestamped driver-log excerpt, and, only if needed, a sniffer trace. The log excerpt is the primary evidence; the trace is corroboration.

  1. Record the symptom and time. Note which device failed, what command was sent, and the wall-clock time. This anchors the log search.
  2. Enable driver debug logging with log-to-file. Follow the Z-Wave JS UI steps above, or use the server’s log streaming if you run it directly.
  3. Restart and wait for stabilization. One to two minutes of normal traffic before you reproduce.
  4. Reproduce the failure. Send the command that fails, or wait for the scheduled event that misses.
  5. Wait, then export. About a minute after the failure, download the log.
  6. Classify. Search for presumed dead, ZW0204, asleep, jammed, and connection failures. Decide whether the failure is node-scoped, controller-scoped, or transport-scoped.
  7. Escalate to the sniffer only if the log is ambiguous. Confirm firmware, free the port, and start the capture before the nonce exchange if you need to decode S2 traffic.
  8. Document the signature. Write down the node IDs, the log phrases, and the time window. That record is what makes the next occurrence faster to diagnose.

Decision table

Log signature Likely layer Next action
One node presumed dead; neighbors alive and pinging Node or route Check power and wake-up schedule; test the node’s route; consider a repeater or a different location before replacing the device.
Many nodes dead; controller jammed or not issuing commands Controller Check controller firmware and power; review the Z-Wave JS issue tracker for known jam behavior; avoid changing device firmware on a hunch.
Integration cannot connect to the server host and port; 1013 closures Transport Fix the container network, server process, or host address before touching the mesh.
Node reported asleep at command time Scheduling Adjust wake-up intervals or command timing; this is not a mesh fault.
Log ambiguous; need RF-layer proof RF Use a Zniffer with verified firmware and a free port; capture before the nonce exchange for S2 traffic.

Graceful degradation: capture the next occurrence without you

Intermittent faults rarely happen while you are watching. The most useful maintenance step is to make the next occurrence self-documenting. Keep driver logging configured to write to a file at a level that captures failures without filling the disk, and set an alert on the events that matter: presumed dead, jammed, and server connection failures. The Z-Wave JS server’s log streaming and single-line dump options make it possible to feed those events into a local log pipeline without a manual reproduction session.

This is also where a plain switch or a mechanical timer deserves honest consideration. If a single device’s failure is rare and its consequence is minor, the cost of a sniffer, a spare dongle, and the time to learn the tooling may exceed the cost of a local fallback. Reliability engineering is about matching the instrument to the consequence, not about instrumenting everything.

What this procedure does not prove

Two limits are worth stating plainly. First, a driver log shows what the controller believes happened; it does not show what the node received. That is why the sniffer exists. Second, a sniffer capture is a sample of one time window. It can corroborate a failure but cannot prove a network is healthy in general. Treat both artifacts as evidence for a specific occurrence, not as a certification.

For a broader look at how these small systems quietly accumulate maintenance debt, see How to Audit the Small Systems That Quietly Run Your Week. The same discipline applies: classify the failure, capture the evidence, and only then change the hardware.

FAQ

Do I need a sniffer to diagnose intermittent Z-Wave unresponsiveness?

No. The driver log is the documented primary troubleshooting artifact and distinguishes node, controller, and transport failures. A sniffer is useful when the log is ambiguous and you need RF-layer corroboration.

Why can’t my sniffer decode some frames?

S2-encrypted messages can only be decrypted if the Zniffer has seen the nonce exchange between the node and controller. If you start the capture after that exchange, the frames remain encrypted.

What does ZW0204 mean?

In Z-Wave JS driver logs, it appears in a ping failure message indicating the node did not acknowledge the command. It is a node-level signal, not a controller-level one.

Should I leave debug logging on all the time?

No. Debug logs grow quickly. Enable them for a capture window, then set the level back to normal. Home Assistant’s guidance also notes that debug logging stays on across one restart and is off after the next.

Is a jammed controller always a firmware problem?

Not necessarily. A jammed state can come from controller firmware, routing behavior, or the server layer. The log and the transport check should come before any firmware change.

Sources