# 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:** 2

<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, 3:31pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/21 "2026-07-06T15:31:12Z")

</div>

Yes you configure your Zigbee2mqtt integration in external mode, with the information you displayed on screen! (You will need to change the broker URL to use the correct IP)

---

<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 6, 2026, 5:19pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/22 "2026-07-06T17:19:45Z")

</div>

Thanks @Will_71 for the image!  
And so first test at my place:

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

At first glance, apart from the switch, nothing else works for me ☹

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

However, on the source, I do have the info:

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

Interesting thing but I don’t know why.  
I launched MQTT Explorer to check after the first test and there: nothing in the valve topic (except the on state).

Then I sent an `on` to my production and all the info appeared in MQTT Explorer 🤨  
Of course I had the info in test Gladys:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/7/d7021ec22cc357b9fba64a8d5036f6f141a924b3.png)  
I set it to `on` in test and a few values changed: water flow rate, daily irrigation volume, and current irrigation volume. However, there was no change in the current irrigation duration.  
This being written, it also doesn’t change in Z2M (version 2.12.1) whereas it was working before (\<2.12.0). Well anyway, we get the correct values back so I’d say okay.

A few remarks if you can:

- water flow rate: no need for seconds or liters, it’s a volume/time  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/b/1b411649d5dfa3b04909428fc93cd555255f93ba.png)
- current irrigation program: not sure if it’s relevant as it seems to correspond to what can be set in Z2M. However, if we can retrieve everything, it can avoid creating scenes to set 10 minutes of watering for example.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/0/e03181746323910b151e9fc60cb6466fc93522b4.png)
- Water valve state: 3 states, I don’t know if you have them. I don’t know when they occur.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/f/9f0021ff1485e2df005d7392512474be4de6568e.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 6, 2026, 6:06pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/23 "2026-07-06T18:06:50Z")

</div>

It looks great! Plus, we can retrieve all the information. Thanks @Will_71

---

<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 6, 2026, 8:39pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/24 "2026-07-06T20:39:27Z")

</div>

Thanks for the tests.

> [@mutmut](#):
>
> Water valve status: 3 states, I don’t know if you have them. I don’t know when they occur.

For the valve status, I saw that it is well detected  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/7/07218c8af08b963c08a81b819d18b6c26cccb054.png)

Did you add it to your list?

No problem with the units, I’ll look into correcting them.

For the current irrigation program, I’ll see what I can do, but if it allows access in scenes, it could be useful

---

<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 6, 2026, 9:13pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/25 "2026-07-06T21:13:51Z")

</div>

> [@Will\_71](#):
>
> Did you add it to your list?

I didn’t express myself well 😕  
I do have the state in Gladys, no worries, I just wanted to say that there are 3 states in total and to know if the other 2 exist in Gladys to display them along with their translations.

---

<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 6, 2026, 9:15pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/26 "2026-07-06T21:15:52Z")

</div>

> [@Will\_71](#):
>
> For the ongoing irrigation program, I’ll see what I can do, but if it allows access within scenes, it could be useful

Actually, we manage:

- either the switch-ons, timing, water flowing in the scenes
- or we manage with these parameters but outside the scenes, a bit like we would manually control the air conditioning or shutters.

---

<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 6, 2026, 9:16pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/27 "2026-07-06T21:16:49Z")

</div>

I had understood perfectly

---

<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 6, 2026, 9:27pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/28 "2026-07-06T21:27:51Z")

</div>

For the state, yes, no problem, I have all the texts:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/a/dabf409bf6ff27a16ad41336c26248ecb4a6e3af.png)  
And the translations, of course.

---

<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 6, 2026, 10:58pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/29 "2026-07-06T22:58:23Z")

</div>

@mutmut, I made some changes if you can retest on the same image.

I created a new display for the setting because with large values, whether the slider or the numerical value, it wasn’t optimal for modifying the values.

Here’s what it looks like (ignore the values as it’s just a test).

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

Keep me posted!

---

<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 7, 2026, 7:17am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/30 "2026-07-07T07:17:17Z")

</div>

Thanks for the update!

On the MQTT Explorer side, I do see the reflection when I change a value, but nothing in Z2M or rather an error:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/3/f332dd81cca191c06cf6270664fbc940141ecf0a.png)

```auto
z2m: Publish 'set' 'cyclic_quantitative_irrigation' to 'robinet_arrosage' failed: 'Error: ZCL command 0x44e2f8fffe051863/1 customClusterEwelink.write({"20489":{"value":{"0":10,"1":0,"2":0,"3":0,"4":0,"5":0,"6":83,"7":0,"8":0,"9":0,"10":0},"type":66}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'INVALID_VALUE')'
z2m: Publish 'set' 'cyclic_quantitative_irrigation' to 'robinet_arrosage' failed: 'Error: ZCL command 0x44e2f8fffe051863/1 customClusterEwelink.write({"20489":{"value":{"0":10,"1":0,"2":0,"3":0,"4":0,"5":0,"6":226,"7":0,"8":0,"9":0,"10":0},"type":66}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'INVALID_VALUE')'
z2m: Publish 'set' 'cyclic_quantitative_irrigation' to 'robinet_arrosage' failed: 'Error: ZCL command 0x44e2f8fffe051863/1 customClusterEwelink.write({"20489":{"value":{"0":10,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"type":66}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'INVALID_VALUE')'

```

That said, I’ve never managed to change these values directly in Z2M and have them stay fixed (it always goes back to the default «&nbsp;neutral&nbsp;» value).

EDIT:  
and when I modify directly in Z2M, I get this:

```auto
z2m: Publish 'set' 'cyclic_timed_irrigation' to 'robinet_arrosage' failed: 'Error: ZCL command 0x44e2f8fffe051863/1 customClusterEwelink.write({"20488":{"value":{"0":10,"1":0,"2":10,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"type":66}}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'INVALID_VALUE')'

```

---

<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 7, 2026, 8:26am UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/31 "2026-07-07T08:26:48Z")

</div>

So, what actually works? Because if there are issues with MQTT Explorer and Z2M, there will be the same with Gladys. So is it worth adding them?

---

<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 7, 2026, 4:21pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/32 "2026-07-07T16:21:13Z")

</div>

> [@Will\_71](#):
>
> So is it worth adding them?

For me, it’s not worth adding all the `cyclic_xxxxx_irrigation`.

---

<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 7, 2026, 4:40pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/33 "2026-07-07T16:40:04Z")

</div>

OK, in that case, I’ll remove Cyclic timed irrigation (composite) and Cyclic quantitative irrigation (composite).  
I’ll create a new image 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 7, 2026, 8:54pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/34 "2026-07-07T20:54:03Z")

</div>

@mutmut, I deleted these slides. The image is available

---

<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 10, 2026, 6:02pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/35 "2026-07-10T18:02:06Z")

</div>

@mutmut, have you tested the latest image?

---

<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 10, 2026, 7:19pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/36 "2026-07-10T19:19:22Z")

</div>

Not yet and I won’t be home until Sunday, so it’s not possible before that, sorry.

---

<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 10, 2026, 7:52pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/37 "2026-07-10T19:52:44Z")

</div>

no problem have a good weekend

---

<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 14, 2026, 6:50pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/38 "2026-07-14T18:50:18Z")

</div>

@Will_71 I just tested your latest image, everything is fine with the units and we no longer have the «&nbsp;cyclic blabla&nbsp;» so it’s great. The `zigbee2mqtt:robinet_arrosage:water-valve:valve-work-state:valve_work_state` feature seems to be linked to the «&nbsp;cyclic&nbsp;» so in my opinion, it’s not necessary either:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/4/949f59976c71340195629bf9f50860f1173cc090.png) ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/a/8a8cb132eb0ba5105a0bc26a96c7f20aae6beed3.png)

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [July 14, 2026, 9:46pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/39 "2026-07-14T21:46:02Z")

</div>

Hi @Will_71,

I just bought one… But in Tuya, I’ll create a PR for that, but I’ll wait to align with yours (well, to merge it to get your new categories and types). 😉

I’ll follow to see when it’s integrable.

---

<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 14, 2026, 9:56pm UTC](https://community.gladysassistant.com/t/vanne-eau-sonoff-swb-bsp/10323/40 "2026-07-14T21:56:07Z")

</div>

> [@mutmut](#):
>
> The `zigbee2mqtt:robinet_arrosage:water-valve:valve-work-state:valve_work_state` feature seems to be linked to the « cyclic » so in my opinion it is not necessary either

After that, it’s just a binary value, it will be present if one day it works on the valve.

If it is really not used, I would remove it.

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

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