SONOFF SWV-ZFE: irrigation volume is reported in deciliters but exposed as liters (10x too high)
What happened?
The irrigation volume attributes of the SONOFF SWV-ZFE are exposed with unit: "L", but the reported values are 10x higher than the real volume. The device appears to report in deciliters (0.1 L steps) and the converter passes the raw value through without scaling.
Affected exposes:
real_time_irrigation_volumehour_irrigation_volume
What did you expect to happen?
Values in liters, matching the actual water delivered.
How to reproduce it (minimal and precise)
Measured on two valves on the same installation, both with a known number of 4 L/h drippers:
| Valve | Drippers × 4 L/h | Expected | Reported by hour_irrigation_volume |
|---|---|---|---|
| Front | 8 → 32 L/h | ~32 | 320 |
| Back | 14 → 57 L/h | ~57 | 570 |
A full ~1 h irrigation session reported 594 and 328 on the two valves; the physically plausible values are 59.4 L and 32.8 L. Dividing by 10 matches the emitter flow rate on both valves independently.
The manual_irrigation_amount_unit selector is set to liter on both devices (the alternative is US gallon, a 3.785 factor, so it cannot account for a factor of 10).
Notes
This looks like the same class of issue already fixed for another attribute on this device in #27980 — SONOFF SWV "on_time": is in 10s not 1s steps — where the firmware reports in tenths and the converter needed to scale.
In src/devices/sonoff.ts, real_time_irrigation_volume / hour_irrigation_volume are declared with unit: "L" and no scale/divisor, so the raw attribute value is exposed directly.
I have not captured the raw Zigbee frames, so I can't confirm the firmware-side unit — the evidence above is from measured flow rates. Happy to provide logs or run tests if useful.
Zigbee2MQTT version
2.12.1
Adapter firmware version
ZStack3x0, revision 20210708 (2.7.1)
Adapter
zstack (/dev/ttyUSB0)
Device
SONOFF SWV-ZFE — dateCode 20260317, swBuildId 1.0.7
zigbee-herdsman-converters 26.76.0
@cubez2mdeveloper could you check this?
Hi @TheQuietBofh,
Thank you for reporting this issue and providing the detailed measurements and analysis.
We have forwarded this information to our internal team and will arrange to investigate and reproduce the issue with the actual device.
We appreciate your patience while we look into this. We will provide further updates once we have more findings.
Thanks again for your contribution and support.
I can confirm this issue also affects the SWV-BSP model variant running firmware 1.0.4 (4100) on Zigbee2MQTT v2.13.0. The volume is reported with a 10x factor error (326 L instead of 32.6 L).
(Please let me know if a separate issue is needed for the SWV-BSP variant or if tracking it here is fine).
Same root cause, so tracking it here is fine — a second affected variant is more useful to SONOFF in one thread than split across two, since it shows the factor-10 bug isn't specific to the SWV-ZFE.
@CubeZ2mDeveloper — heads up: the same 10x volume error is now confirmed on the SWV-BSP (firmware 1.0.4 / 4100, Z2M v2.13.0), so it looks like a family-wide issue rather than a single model.
Hi @TheQuietBofh @axl5324 ,
Thank you for the additional information.
For the SWV-ZFE, we have tested firmware version 1.1.0 but were unable to reproduce the reported issue. Since the original report was made with firmware 1.0.7, we would kindly recommend updating the device to firmware 1.1.0 and testing again to see whether the issue persists.
Regarding the SWV-BSP, we would like to clarify that SWV-BSP and SWV-ZFE are different device models and use separate device definitions in Zigbee2MQTT. Therefore, the behavior observed on one model should not necessarily be considered a family-wide issue.
We are also going to test the volume reporting accuracy of the SWV-BSP running firmware 1.0.4 (4100) to verify whether the reported 10× discrepancy can be reproduced on our side.
We will provide an update once the testing is completed. Thank you for your patience and cooperation.
I can confirm this issue also affects the SWV-BSP model variant running firmware 1.0.4 (4100) on Zigbee2MQTT v2.13.0. The volume is reported with a 10x factor error (
326 Linstead of32.6 L).(Please let me know if a separate issue is needed for the SWV-BSP variant or if tracking it here is fine).
Hi @axl5324 ,
Thank you for the additional information.
We have tested the SWV-BSP locally using the same firmware version 1.0.4 (4100) and Zigbee2MQTT v2.13.0 as your setup. However, we were unable to reproduce the reported 10× volume reporting issue.
For reference, below are the relevant MQTT state reporting logs from our test:
[2026-08-27 16:05:49] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":10,"flow":0.4,"real_time_irrigation_volume":0,...}'
[2026-08-27 16:05:51] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":11,"flow":0.4,"real_time_irrigation_volume":0,...}'
[2026-08-27 16:05:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":11,"flow":0.4,"real_time_irrigation_volume":1,...}'
[2026-08-27 16:06:03] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":11,"flow":0.3,"real_time_irrigation_volume":2,...}'
[2026-08-27 16:06:03] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":12,"flow":0.3,"real_time_irrigation_volume":2,...}'
[2026-08-27 16:06:09] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xc4d8c8fffe0e14dc', payload '{"daily_irrigation_volume":13,"flow":0.3,"real_time_irrigation_volume":2,...}'
In our test, the reported values increased normally, and we did not observe the reported 10× discrepancy.
To help us further investigate this behavior, could you please provide the debug-level Zigbee2MQTT logs covering the period when the incorrect volume value is reported? In particular, the raw Zigbee reports from the device would be very helpful for determining whether the discrepancy originates from the device report itself or from the conversion process.
Also, since SWV-BSP and SWV-ZFE are different models and use separate device definitions, we recommend opening a separate issue for SWV-BSP so that we can track and investigate the behavior independently.
Thank you for your cooperation and for helping us investigate this further.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Updated one of the two valves (Riego Parcela Trasera) from 1.0.7 (date code 20260317) to 1.1.0 (20260724) via Z2M OTA, and re-tested today. The issue persists on 1.1.0.
Test: duration mode, 35 min, same drip line as in the original report (14 emitters × 4 L/h ≈ 32.7 L expected):
real_time_irrigation_volume: 0 → 48 → 95 → … → 336 (≈48 every 5 min)irrigation_schedule_status.actual_irrigation_amount: 337, unitliter- The same 35-min run on 24/10, still on 1.0.7, also reported 337, so 1.1.0 gives identical values.
The second valve, still on 1.0.7, reported 133 for a 20-min run the same morning (≈13 L real): same ×10 factor.
So the reported volume is still ~10× the real one (it looks like deciliters exposed as liters). Happy to run any other test you need.
Hi @TheQuietBofh,
Thank you for the additional testing and detailed measurements.
We haven't been able to reproduce this issue in our local testing. Could you please confirm which version of Zigbee2MQTT you are currently using and whether you have any external converters configured for this device?
This information will help us investigate the issue further.
Thank you for your help!
Zigbee2MQTT 2.14.2 (Docker image koenkk/zigbee2mqtt, zigbee-herdsman-converters 26.115.1, zigbee-herdsman 10.10.0). The same version was running for both test runs (24/10 and 27/10).
No external converters or extensions: there's no external_converters folder and nothing configured for this device in configuration.yaml, so it's using the built-in SWV-ZFE definition.
If it helps, I can capture a debug log of the raw attribute reports during a short irrigation run.
Side observation after the 1.1.0 OTA (not the volume issue, but probably worth a look, since the release notes mention battery reporting fixes):
- Both valves got new batteries on the same day. The one I updated to 1.1.0 (Riego Parcela Trasera) reported
battery: 100for months on 1.0.7. Right after the OTA (2026-10-27 08:49 UTC) it started dropping steadily: 92 → 0 in about 8 days (~12 %/day), reaching 0 on 2026-11-03 15:02 UTC. - At
battery: 0the valve still works: today it opened with the physical button and closed via Zigbee command (state: OFFconfirmed in ~2 s). - The other valve (Riego Parcela Delantera), still on 1.0.7 (4103), reports
battery: 100and also opens and closes normally. - It doesn't look like extra radio traffic draining it: on 1.0.7 both valves published ~310 messages/day to Z2M (~450-520 on irrigation days, Oct 9-12), and the 1.1.0 valve now publishes ~316/day (~600 on an irrigation day).
So it looks like 1.1.0 changed how the battery percentage is calculated or reported. Is this expected? Happy to provide logs.
Hi @TheQuietBofh,
Thanks for the additional information and testing.
Regarding the irrigation volume discrepancy, could you please provide the original Zigbee2MQTT debug logs captured during an irrigation session? We would like to analyze the device's raw reports to verify the reported values and their units.
Regarding the battery issue, we will forward your findings to the relevant firmware/product team for further investigation.
Thanks for your cooperation. We'll keep you updated when we have further information.