# Water valve Sonoff SWB-BSP

**URL:** <https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323>\
**Category:** Demande de fonctionnalités\
**Created:** [July 5, 2026, 9:59am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323 "2026-07-05T09:59:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 5, 2026, 9:59am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/1 "2026-07-05T09:59:55Z")

</div>

**Could the «&nbsp;water flow&nbsp;» feature be added?**

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 12:57pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/2 "2026-07-05T12:57:25Z")

</div>

What model is this?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/d/1d8063c38ac6c8d0a897f568fbbde7a167255470.png)

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 5, 2026, 1:42pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/3 "2026-07-05T13:42:47Z")

</div>

It’s the first one at the top left: SWV

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 2:07pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/4 "2026-07-05T14:07:37Z")

</div>

ok so you just want the flow (water flow rate)?

Can you take a screenshot of the Exposures and Status view of your valve? Just to check what I can add other useful exposures in Gladys

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/e/7ef6609f6bae43b4c57bbf75e8877475a1428cd2.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/d/ddc5eae42917050c90540364e352eb57e82029d1.png)

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [July 5, 2026, 2:31pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/5 "2026-07-05T14:31:14Z")

</div>

From what I’ve seen regarding the flow rate, each manufacturer has its own name for this feature, unlike switches or other «&nbsp;simple&nbsp;» functions, for example.

 ![listing from zigbee2mqtt](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/a/7adba4449b3b02f0dd27f3a01e40d3cd80eed670.png)

On the development side, I don’t know if it’s possible, but it would be great to have a «&nbsp;group&nbsp;» where you can put all the names that will be given (I hope I’m being clear…).

I have a [Sonoff SWV](https://www.zigbee2mqtt.io/devices/SWV.html) and here are all the states including the `flow`:

```auto
{
    "auto_close_when_water_shortage": "ENABLE",
    "battery": 48,
    "current_device_status": "normal_state",
    "daily_irrigation_volume": 12,
    "flow": 0,
    "irrigation_end_time": 1783243880,
    "irrigation_start_time": 1783243462,
    "last_seen": "2026-07-05T16:19:47+02:00",
    "linkquality": 132,
    "real_time_irrigation_duration": 600,
    "real_time_irrigation_volume": 535,
    "state": "OFF",
    "update": {
        "installed_version": 4100,
        "latest_release_notes": null,
        "latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Sonoff/zbswv_v1.0.4.ota",
        "latest_version": 4100,
        "state": "idle"
    }
}

```

On my side, I retrieve the `real_time_irrigation_duration` and `real_time_irrigation_volume` via a virtual MQTT device, but I wouldn’t say no to automatic retrieval either 😉

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 2:36pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/6 "2026-07-05T14:36:43Z")

</div>

Does this type of device work well? What is the purpose of the feature below?

> [@mutmut](#):
>
> real\_time\_irrigation\_volume

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [July 5, 2026, 2:56pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/7 "2026-07-05T14:56:15Z")

</div>

> [@Will\_71](#):
>
> Does this type of device work well?

Works great for me for automatic watering of the vegetable garden and plants, and if I have water in my tanks, I activate the pump to avoid using the urban network (with a manual bypass for the tank\<\>urban).

> [@mutmut](#):
>
> real\_time\_irrigation\_volume

This is the volume of water (in liters) that passes in real time: very practical for adding 300 liters to the pool and automatically stopping the valve 😉

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 5, 2026, 4:15pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/8 "2026-07-05T16:15:03Z")

</div>

![Screenshot 2026-07-05 181306](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/d/8dff98fd705556c285c34f9f44e9082dd6cfa9f3.png)

 ![Screenshot 2026-07-05 181358](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/1/512768cad531f123460f507c2b4bab1e67dda366.png)

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 5, 2026, 4:21pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/9 "2026-07-05T16:21:07Z")

</div>

> [@mutmut](#):
>
> ```auto
> "real_time_irrigation_duration"
> "real_time_irrigation_volume"
> "daily_irrigation_volume"
> 
> ```

It would indeed be great to also retrieve this data and have it feed into a graph

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 5:07pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/10 "2026-07-05T17:07:43Z")

</div>

I’ll take care of it as soon as possible

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 7:43pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/11 "2026-07-05T19:43:53Z")

</div>

When I have an image available, @mutmut, could you test it? Because I don’t have any equipment to test with.

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [July 5, 2026, 7:59pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/12 "2026-07-05T19:59:58Z")

</div>

no problem!

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [July 5, 2026, 8:26pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/13 "2026-07-05T20:26:28Z")

</div>

Here is the test image: `docker pull willde71/gladys-test:zigbee-sonoff-swv` which will be available within 20 minutes.

This is a first draft, there are surely points to correct as I can’t test it.

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 6, 2026, 7:48am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/14 "2026-07-06T07:48:01Z")

</div>

I’d be happy to test since I have this valve! However, you need to explain how to do it properly, given that I haven’t used SSH commands much.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [July 6, 2026, 8:53am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/15 "2026-07-06T08:53:21Z")

</div>

Hi @Chris75 👋

These manipulations require good technical skills, and you should definitely not perform them on your production mini-PC, as they can result in data loss ⚠

If you still want to help, the best thing to do is to set up a test environment on a computer.

You can install Docker and then run a test container by following this tutorial:

> [@Tutoriel: Lancer une image Docker de test](https://community.gladysassistant.com/t/tutorial-launch-a-docker-test-image/8042):
>
> Parfois, un développeur veut proposer une image Docker «&nbsp;de test&nbsp;» sur le forum pour permettre à des utilisateurs de tester une nouvelle intégration avant qu’elle soit déployée en production. Contrairement à l’image Docker «&nbsp;officielle&nbsp;» qui est hébergée sur le compte du projet gladysassistant/gladys, une image de test sera hébergée sur le compte Docker du développeur proposant l’image. Exemple: jeanfrancois/gladys. Pour lancer une image Docker de test, c’est le même process que décrit sur la …

After that, in this specific case, I think the feature will arrive very quickly in Gladys in production, so maybe don’t bother 😉

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 6, 2026, 9:20am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/16 "2026-07-06T09:20:44Z")

</div>

Okay, I understand and I won’t take that risk!  
But can I install Docker on a Windows 11 PC?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [July 6, 2026, 9:28am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/17 "2026-07-06T09:28:48Z")

</div>

You can use Docker Desktop on Windows, but there are some limitations. In practice, Docker only works natively on Linux: Docker Desktop therefore launches a Linux virtual machine on your Windows PC.

As a result, Gladys will start up, but all features that require direct network access (device discovery, certain protocols, etc.) will not work properly.

On the other hand, to test the Zigbee2MQTT integration, it should work if you connect it to your existing external MQTT broker.

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 6, 2026, 1:39pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/18 "2026-07-06T13:39:14Z")

</div>

oops: it’s not very simple for me yet, but I’ll try it on a PC that’s not at risk!  
However, I didn’t quite understand how I could retrieve my Zigbee devices in this Gladys test instance?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [July 6, 2026, 2:13pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/19 "2026-07-06T14:13:40Z")

</div>

You can configure the Zigbee2MQTT integration of your test instance to connect to the MQTT broker of your production instance, the one to which your devices are already connected.

This way, you test the new behavior with exactly the same equipment as in your production environment, without having to re-pair them.

It’s risk-free for your production instance. 🙂

---

<div class="post-metadata">

**Author:** ![Chris75](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Chris75](https://community.gladysassistant.com/u/Chris75)\
**Post date:** [July 6, 2026, 2:44pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/20 "2026-07-06T14:44:54Z")

</div>

Thanks. So if I understand correctly: on the test instance, I configure ZigBee2mqtt as shown in the picture below, even if the test instance is running on a different PC than the production one?

 ![Screenshot 2026-07-06 164330](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/6/563f8eb614c0dd887192273e7079f94ce0577306.png)

[Next page](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323.md?page=2)
