SWV-ZFE: Device freezes after a few hours – stops responding to ZCL commands while still showing as available
What happened?
After successfully pairing and operating normally for a few hours, the SWV-ZFE stops responding to any commands — neither via the Z2M frontend UI nor via Home Assistant automations. The device continues to show as „available" in Z2M, reports battery at 100% and an LQI of 116, but all publish attempts fail with a delivery error. A manual power cycle (battery removal and reinsertion) restores normal operation temporarily, after which the same freeze occurs again after a few hours. An OTA update check was performed immediately after a power cycle (while the device was still responsive) and returned „No OTA update available", confirming the latest firmware is installed.
What did you expect to happen?
The device should remain responsive to ZCL commands indefinitely without requiring a power cycle. Actual behavior The device freezes internally after a few hours. It continues to send heartbeats (hence showing as „available") but no longer acknowledges incoming ZCL commands, resulting in consistent delivery failures.
How to reproduce it (minimal and precise)
Pair SWV-ZFE — device interviews successfully and is identified correctly Send state: ON or state: OFF commands — works normally Wait a few hours without interaction Attempt to send any command — fails with the error below Power cycle the device → works again temporarily
Zigbee2MQTT version
2.10.0
Adapter firmware version
3.3.1
Adapter
SMLIGHT SLZB-06M (Ethernet-based Zigbee coordinator) using ember
Setup
Device
Model: SONOFF SWV-ZFE (Zigbee smart water valve)
Environment
Zigbee2MQTT: 2.10.0 zigbee-herdsman-converters: 26.42.0 Frontend: zigbee2mqtt-windfront 2.11.2 Coordinator: SMLIGHT SLZB-06M (Ethernet-based Zigbee coordinator)
Device database.db entry
IEEE Address: 0xa4c138146831ffff
Debug log
z2m: Publish 'set' 'state' to 'DEVICE_NAME' failed: 'Error: ZCL command 0xa4c138146831ffff/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false, "disableDefaultResponse":false,"direction":0,"reservedBits":0, "writeUndiv":false}) failed (Delivery failed for '23184'.)' After power cycle — OTA check immediately attempted: zh:controller: Successfully interviewed '0xa4c138146831ffff' z2m: Successfully interviewed 'DEVICE_NAME', device has successfully been paired z2m: Device 'DEVICE_NAME' is supported, identified as: SONOFF Zigbee smart water valve (SWV-ZFE) z2m: Checking if OTA update available for 'DEVICE_NAME' z2m: No OTA update available for 'DEVICE_NAME'
Notes
Possible cause This appears to be a firmware-level freeze in the SWV-ZFE. The device enters a state where it stops processing incoming ZCL commands but continues to maintain Zigbee network presence. Since no OTA fix is currently available, a firmware update from Sonoff seems necessary.
Likely a fight between not draining the battery and responding to commands. Common enough problem with end devices that shouldn't be end devices. Does it start responding again if you just wake it up? (I assume it has a button somewhere to do so.)
Hi! No it doesn't. It seems kind of stuck.
Have you tried to pair it to a different parent? (You can permit join on a specific device instead of "all" when joining it.) Do a clean re-pair while you're at it:
- remove device (use
forceonly if you have to) - restart Z2M
- permit join
- pair
Even worse. Connecting to a plug it showed up, fell to LQI 60 and is not reachable atm. For explanation: The valve is some 15m away from the coordinator, seperated through one external wall (bricks) The plug (Router) is some 20m away under the roof, separated by the roof (wood, roof tiles)
@Postruznik on my side it looks like it is when I connect via Bluetooth, like if the device couldn't be both managed via bluetooth and Zigbee. If at any time you use bluetooth, zigbee stop working. At least it is what looks to happened to me
I used BT only for inital setup, but honestly didn't even took a look if BT is off after connecting it to HA. Will do and report here.
I didn't find any "BT enable/disable" switch (or similar), so I guess the device is in full zigbee mode.
same issue on my side ... @Postruznik did you find any solution so far?
Same here, valve is stuck after several hours
I put another Zigbee Plug much closer to the valve now, approx. 6m, through one glass door and it seems to work. At least it doesn't get stuck. But that seems more to be a workaround then a solution.
Similar issues here. It is usually stable for some days and then doesn't respond anymore. The SONOFF Zigbee bridge is only one meter away (wall and glass door in between) and another plug is less then a meter away. A power cycle fixes it, but as it controls the water for the plants during holidays, I cannot do it remotely, which is a major disaster.
Device
definition: SWV - SONOFF (v0.0.0)
software_build_id: 1.0.4
date_code: 20240820
endpoints:
{"1":{"bindings":[{"cluster":"genPollCtrl","target":{"endpoint":1,"ieee_address":"0x00124b002c3b7cXX","type":"endpoint"}},{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00124b002c3b7cXX","type":"endpoint"}},{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x00124b002c3b7cXX","type":"endpoint"}},{"cluster":"msFlowMeasurement","target":{"endpoint":1,"ieee_address":"0x00124b002c3b7cXX","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","genOnOff","genPollCtrl","msFlowMeasurement","haDiagnostic","manuSpecificAmazonWWAH","customClusterEwelink"],"output":["genTime","genOta"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":65000,"minimum_report_interval":3600,"reportable_change":10},{"attribute":"onOff","cluster":"genOnOff","maximum_report_interval":65000,"minimum_report_interval":0,"reportable_change":1}],"scenes":[]}}
Health
time: Sun Jul 19 2026 23:16:36 GMT+0200 (Mitteleuropäische Sommerzeit)
os.load_average: 1.73, 1.27, 1
os.memory_percent: 78.7427
process.memory_percent: 2.1496
process.uptime_sec: 197437
{"leave_count":0,"messages":1547,"messages_per_sec":0.0078,"network_address_changes":0}
Hi! Following this thread because I have the exact same problem. Lastest firmware on z2m and on the water valve itself.
Same issue here... have you guys tried a rollback to previous version of the firmware ? firmware : 1.0.8 - 20260512
Same issue here... have you guys tried a rollback to previous version of the firmware ? firmware : 1.0.8 - 20260512
Had same issues there on previous 1.0.7
Has anyone found a way to use this valve properly ? or a workarround ? since I'm going on vacation next week, I'm not confortable with this setup at all.... Only setup the schedules via BLE ?
Has anyone found a way to use this valve properly ? or a workarround ? since I'm going on vacation next week, I'm not confortable with this setup at all.... Only setup the schedules via BLE ?
I ended up in BLE schedules, couldn't make it otherwise..
Just now testning a kind of "ping" automation to my 3 devices just to keep them in alive. Lets see how it behaves.
alias: Bevattningssystem - Bibehåll kontakten triggers:
- trigger: time_pattern hours: /1 conditions: [] actions:
- action: mqtt.publish data: topic: zigbee2mqtt/Bevattning 1/get payload: "{"battery": ""}"
- action: mqtt.publish data: topic: zigbee2mqtt/Bevattning 2/get payload: "{"battery": ""}"
- action: mqtt.publish data: topic: zigbee2mqtt/Bevattning 4/get payload: "{"battery": ""}" mode: single
Hi everyone, I have the same problem. For now, I’ve set the manual mode to 719 minutes, which is a little under 12 hours. I water the lawn every day anyway, so we’ll see if those remaining 12 hours are enough to keep the valve working. I control the section irrigation valves from a separate controller. I’ll let you know how it goes and whether the communication stays stable. I’ve noticed a pattern: the valve wouldn’t open when using HA automation. It would only open when I controlled it using the Z2MQQTT. I’ve only been testing this for 3 days and am still struggling with the AI, but so far I haven’t found a specific solution. Perhaps Sonoff will release an OTA update.
SWV-ZF2 (Hydro DUO) goes deaf with an ember coordinator ÔÇö but the cause is serial-over-TCP, not ember
TL;DR: I could reproduce this freeze reliably, and then make it disappear by changing only the cable. The same EFR32 coordinator, same NCP firmware, same network and same device works perfectly over direct USB and fails over serial-over-TCP. Every documented case of this bug uses an ember coordinator, but a large share of ember coordinators in the wild are network-attached ÔÇö the correlation with ember looks real but spurious. What those setups actually share is the transport.
If you are in this thread because your valve goes deaf: check how your coordinator is connected before you blame the valve. Some of the reports here may not be the same device bug at all. in my case all other devices work great... but this valves showed there was somthign wrong
Before you blame the valve ÔÇö check your coordinator's transport
This thread has collected several reports of SWV-ZF2 / SWV-ZFE devices going deaf, and they have been treated as one device firmware bug. They may not all be the same problem. In my case the device turned out to be fine and the coordinator's connection was at fault, so it is worth ruling that out before adding another data point to the wrong pile.
Ask yourself: is your coordinator connected by USB, or over the network?
Network-attached coordinators include the SONOFF ZBDongle-MAX (Ethernet or WiFi mode), SMLIGHT SLZB-06 and similar, anything behind ser2net or an ESP-based serial bridge, and any configuration.yaml whose serial.port looks like:
serial:
port: tcp://192.168.x.x:6638 # <- network transport
adapter: ember
If that is your setup, please try the same device over direct USB before concluding the valve is broken. In my test that single change took the device from "cannot even complete an interview, 0 of 6 attempts" to "paired in 6 seconds, first try". No firmware change, no re-pairing tricks, no channel change.
And if you do run that test, please post the result here either way ÔÇö including if the freeze persists over USB. That would mean there are genuinely two different bugs being discussed in this thread, which is worth knowing. What would help most:
- Coordinator model, chip, adapter type, and transport (USB or network)
- Whether it reproduces over USB with the same device
- If you have an SLZB-06 or a
ser2netsetup: that would tell us whether this is specific to the ZBDongle-MAX's bridge firmware or a general problem with ASH over TCP. I only have the one dongle, so I cannot separate those.
The symptom
Device: SONOFF SWV-ZF2 (Hydro DUO, dual channel), firmware 1.0.9 (build 4105, dateCode 20260724), Telink TLSR8258.
After a power cycle the valve accepts commands for 1 to 5 minutes. Then every downstream ZCL command times out:
Publish 'set' 'state' failed: 'Error: ZCL command 0xa4c13803a640dc97/1 genOnOff.on({}, ...) timed out after 10000ms'
While deaf, the device:
- keeps publishing its full state every 1 to 2 seconds (
last_seenfresh, LQI 130 to 220, battery 100%) - responds to its physical buttons: the motor actuates and the state change is reported back to Z2M correctly
- responds perfectly over BLE (eWeLink app), both channels, no delay
Since the TLSR8258 shares a single radio between BLE and Zigbee, the MCU, the radio and the motor are all demonstrably healthy. Only the inbound Zigbee path is dead. Only a power cycle restores it, and the cycle repeats.
Environments
| Production | Lab | |
|---|---|---|
| Zigbee2MQTT | 2.13.0 | 2.13.0 (fcbb7ff4) |
| zigbee-herdsman | 10.8.0 | 10.8.0 |
| converters | 26.90.0 | 26.90.0 |
| Host | LXC on Proxmox | Ubuntu 24.04 |
| Network | channel 11, ~13 devices | channel 25, pan_id 0x2345, 1 device |
Coordinators used:
- SONOFF ZBDongle-P ÔÇö CC2652P,
ZStack3x0rev 20250321, adapterzstack, direct USB. - SONOFF ZBDongle-MAX ÔÇö EFR32MG24, EmberZNet 7.4.5 [GA], EZSP v13, adapter
ember. This dongle has an integrated network bridge (ESP32-D0WDR2-V3, firmware V1.0.10) and can run either over Ethernet (serial over TCP) or over USB-C. That dual capability is what made the decisive test possible. Production runs it over Ethernet attcp://192.168.1.9:6638.
Both firmwares on the MAX are already at the latest published version, so "update the coordinator firmware" is not an available workaround.
Method: three rounds, removing one variable at a time
| Round | Stack | Transport | Channel | Network |
|---|---|---|---|---|
| 1 | zstack (CC2652P) | USB | 25 | virgin, 1 device |
| 2 | ember (ZBDongle-MAX) | TCP | 25 | virgin, 1 device |
| 3 | ember (ZBDongle-MAX) | USB | 25 | same network as round 2 |
Round 1 vs 3 isolates the stack. Round 2 vs 3 isolates the transport.
Throughout, one channel per time window, nobody touching the device in between, no BLE or eWeLink active, and every open verified physically by an operator (actuator sound plus actual valve state).
Round 1 ÔÇö Z-Stack over USB: clean for 92 minutes
Interview completed on the first attempt, in 11 seconds:
[17:14:25] info: zh:controller: Succesfully interviewed '0xa4c13803a640dc97'
[17:14:25] info: z2m: Successfully interviewed '0xa4c13803a640dc97', device has successfully been paired
Then 19 genOnOff commands over 92 minutes:
| # | T+ (min) | Command | Result | LQI |
|---|---|---|---|---|
| 1 | +2 | state_1 ON |
OK | 229 |
| 2 | +3 | state_1 OFF |
OK | 233 |
| 3 | +4 | state_1 ON |
OK | 218 |
| 4 | +6 | state_2 ON |
OK | 214 |
| 5 | +7 | state_2 OFF |
OK | 153 |
| 6 | +10 | state_1 ON |
OK | 204 |
| 7 | +12 | state_1 OFF |
OK | 196 |
| 8 | +20 | state_2 ON |
OK | 196 |
| 9 | +22 | state_2 OFF |
OK | 222 |
| 10 | +30 | state_1 ON |
OK | 200 |
| 11 | +32 | state_1 OFF |
OK | 185 |
| 12 | +45 | state_2 ON |
OK | 204 |
| 13 | +47 | state_2 OFF |
OK | 244 |
| 14 | +60 | state_1 ON |
OK | 185 |
| 15 | +62 | state_1 OFF |
OK | 204 |
| 16 | +75 | state_2 ON |
OK | 218 |
| 17 | +77 | state_2 OFF |
OK | 156 |
| 18 | +90 | state_1 ON |
OK | 171 |
| 19 | +92 | state_1 OFF |
OK | 102 |
19 commands, 19 accepted, 0 timeouts. Response times 0.9 to 15 s, availability: online throughout, 294+ messages received from the device, 8 physical cross-checks all matching MQTT. The command at T+90 was accepted, at a point where on the ember setup the device would have been deaf for roughly 85 minutes.
This ruled out an unconditional firmware hang in the Telink stack ÔÇö but it did not isolate ember, because seven variables differed:
| Variable | Production (fails) | Round 1 lab (works) |
|---|---|---|
| Stack | ember (EFR32MG24) | zstack (CC2652P) |
| Transport | serial over TCP | direct USB |
| Channel | 11 | 25 |
| Devices on network | ~13 | 1 |
| Topology | possible intermediate routers | direct link |
| Network load | real traffic | near zero |
| Z2M version | 2.13.0 | 2.13.0 |
Rounds 2 and 3 existed to close those.
Round 2 ÔÇö ember over TCP, in the same benign conditions
Channel 25, virgin network, one device, no traffic, valve within ~2 m of the dongle. The network formed cleanly and the ASH link over TCP came up with no errors:
[19:55:35] zh:ember:uart:ash: ======== ASH connected ========
[19:55:35] zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.5 [GA]",...}
[19:55:37] zh:ember: [INIT FORM] Forming new network with: {"panId":9029,...,"radioChannel":25,...}
[19:55:37] zh:ember: [INIT FORM] New network formed!
The device never completed an interview, across six attempts:
[19:58:21] zh:controller:device: Interview - node descriptor request failed for '0xa4c13803a640dc97', attempt 1
[19:58:37] ... attempt 2
[19:58:52] ... attempt 3
[19:59:08] ... attempt 4
[19:59:23] ... attempt 5
[19:59:38] ... attempt 6
[20:05:53] error: z2m: Failed to interview '0xa4c13803a640dc97', device has not successfully been paired
Final state: interview: FAILED.
Meanwhile the device was transmitting constantly ÔÇö nine Device ... joined in twenty-one seconds, repeated device_announce, and the log flooded with Skipping message, still interviewing. Uplink perfect, downlink not getting through. The host side reported the ZDO request as successfully sent:
[20:05:57] zh:ember: ~~~> [SENT ZDO UNICAST messageTag=22 apsSequence=74 status=OK]
I first ran this with the valve far from the coordinator, which would have been a fair objection, so I repeated it with the valve right next to the dongle. Identical result.
Round 3 ÔÇö same dongle, same network, USB instead of TCP
I unplugged the Ethernet cable from the ZBDongle-MAX, connected it by USB-C, and pointed Z2M at /dev/ttyUSB0 with adapter: ember. I deliberately reused the round 2 data directory, so the coordinator kept the network it had just formed ÔÇö no re-forming, no new keys:
[20:24:04] zh:ember: [INIT TC] Adapter network matches config.
[20:24:04] z2m: zigbee-herdsman started (resumed)
Same coordinator, same EmberZNet 7.4.5, same channel 25, same pan_id 0x2345, same device, same distance. The only change was the cable.
Pairing:
[20:29:01] device_joined
[20:29:07] zh:controller: Succesfully interviewed '0xa4c13803a640dc97'
[20:29:07] z2m: Successfully interviewed '0xa4c13803a640dc97', device has successfully been paired
Six seconds, first attempt.
Commands, past the 1-to-5-minute window in which the device goes deaf over TCP:
| # | T+ (min) | Command | Result | Response | LQI |
|---|---|---|---|---|---|
| 1 | +2 | state_1 ON |
OK | 14 s | 255 |
| 2 | +4 | state_1 OFF |
OK | 1.8 s | 255 |
| 3 | +5 | state_2 ON |
OK | 10 s | 236 |
| 4 | +7 | state_2 OFF |
OK | 1.5 s | 255 |
| 5 | +10 | state_1 ON |
OK | 14 s | 255 |
5 / 5 accepted, 0 timeouts, 0 delivery failures. LQI pinned at 255.
Summary of all four situations
| Situation | Stack | Transport | Interviews OK | Commands |
|---|---|---|---|---|
| Production | ember | TCP | 1 / 10 | 98 sent, Delivery failed |
| Round 2 | ember | TCP | 0 / 6 | never paired |
| Round 1 | zstack | USB | 1 / 1 in 11 s | 19 / 19 over 92 min |
| Round 3 | ember | USB | 1 / 1 in 6 s | 5 / 5 |
The split is clean and it falls by transport, not by stack.
Production history, from the logs
Counting occurrences for this device across the production Z2M logs:
| Metric | Count |
|---|---|
| Interviews successful | 1 |
| Interviews failed | 9 |
node descriptor request failed |
18 |
genOnOff commands sent |
98 |
Over TCP the device paired once in ten attempts. Round 2 got zero of six ÔÇö same lottery, different luck. The failure signature in production:
[14:22:20] Interview - active endpoints request failed ... "zdoResponseClusterId":32773} timed out after 15000ms
[14:22:40] Interview failed ... "zdoResponseClusterId":32772} timed out after 15000ms
[14:25:40] Interview - active endpoints request failed ... (Error: Delivery failed for '6752'.)
[14:26:04] Interview - active endpoints request failed ... (Error: Delivery failed for '6752'.)
Why this happens, and why it looked like an ember bug
ember talks to the NCP over ASH, an acknowledged sliding-window link protocol with tight timeouts, designed to run over a wire. Put a TCP bridge in the middle and any jitter, retransmission or micro-drop becomes ASH retries and resynchronisation.
A sleepy end device is the worst case for that: delivery depends on the coordinator holding a queued message and handing it over in the narrow window when the device polls. If that handoff misses, the device looks deaf while its uplink keeps flowing ÔÇö exactly the symptom.
It also explains the "works for 1 to 5 minutes" part without needing a firmware hang. A freshly joined end device polls aggressively, so downlink gets through. Once it settles into its normal sleep cycle, the fragile path stops working. The device never went deaf; it just stopped asking often enough to paper over a broken delivery path.
Every documented case of this freeze uses an EFR32 coordinator, which made ember the obvious suspect. But many EFR32 coordinators in the wild are network-attached (ZBDongle-MAX, SLZB-06 and similar). The common factor is the transport.
What this does and does not establish
Established:
- Not an unconditional Telink firmware hang ÔÇö 92 minutes clean on Z-Stack, same unit, same firmware 1.0.9.
- Not the ember stack or EmberZNet 7.4.5 as such ÔÇö round 3 works with the same firmware over USB.
Not established:
- Whether the fault is in the ESP32 bridge firmware of the ZBDongle-MAX specifically, or in serial-over-TCP with ember generally. I only have this one network-attached dongle. Someone with an SLZB-06 or a
ser2netsetup could separate those. - Round 3 only ran to T+10 with 5 commands, not the 92 minutes of round 1. It clears the 1-to-5-minute window by a factor of two, but it is not a long-soak result.
- No sniffer capture. The MAC-data-request theory is inference from Z2M logs, not observed on air.
- n=1 device, n=1 dongle of each type.
Workaround
Do not run this dongle over the network. Connect the ZBDongle-MAX by USB to the Zigbee2MQTT host, or use a plain USB coordinator. As noted, both MAX firmwares are already current, so there is no firmware update to apply.
Side notes on the hardware, unrelated to the bug
Single actuator. The Hydro DUO uses one actuator that moves between both channels, so only one can be open at a time. Opening channel 2 while channel 1 is open makes the device close channel 1 by itself:
15:20:11Z s1=ON s2=ON <- transient
15:20:11Z s1=OFF s2=ON <- device closes channel 1 on its own
Z2M only sent genOnOff.on to endpoint 2. The actuator sound occurs only when opening, never when closing. Worth knowing when designing tests: commanding both channels in the same time window is not meaningful.
Generated definition. In my production install the device registered with an automatically generated definition ("source":"generated", supported: false, a single switch exposed), while in the lab with converters 26.90.0 it comes up as SWV-ZF2, supported: true, with both channels and the full irrigation controls. Unrelated to the transport issue, but it means a re-pair may be needed to get the complete device.
Benign log noise. Two things appear in the logs that are not failures: Interview - failed to read attribute 'stackVersion' (an optional attribute this firmware does not expose; the interview still completes), and a periodic Data confirm error every ~15 minutes on Z-Stack, which is the availability ping against a sleeping end device. Neither ever coincided with a command.
I can confirm almost the same behavior with a SONOFF Hydro DUO SWV-ZF2E.
After a battery power cycle, Zigbee control works temporarily. After some time, the device remains visible and continues to expose battery/LQI and status data, but ON/OFF commands fail with:
genOnOff.on() failed Timeout after 10000ms Delivery failed
The physical buttons still work. BLE control through the eWeLink app also continues to work while Zigbee commands fail.
Firmware: installed_version: 4105 latest_version: 4105
I also tested periodic state reads every two hours, but they did not prevent the failure.