Sonoff SWV - cyclic_timed_irrigation Not Working on Some Devices #28093
mathmaniac43
started this conversation in
Devices
Replies: 1 comment
-
PS - Here is my HA script, which I call from an automation. sequence:
- action: mqtt.publish
metadata: {}
data:
payload: |-
{
"cyclic_timed_irrigation": {
"current_count": 0,
"total_number": 1,
"irrigation_duration": {{ valve_on_time_seconds }},
"irrigation_interval": 0
}
}
topic: zigbee2mqtt/{{ valve_mqtt_friendly_name }}/set
qos: "1"
fields:
valve_mqtt_friendly_name:
selector:
text: null
name: Valve MQTT Friendly Name
description: e.g. "Garden - Hose Valve - A"
required: true
valve_on_time_seconds:
selector:
number: null
name: Valve On Time Seconds
required: true
alias: Open Garden Valve For Duration
description: |
https://www.zigbee2mqtt.io/devices/SWV.html#sonoff-swv
https://github.com/Koenkk/zigbee2mqtt/issues/27465 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I have six Sonoff SWV devices. I have had some intermittent connectivity issues, one of which caused a few extra hours of irrigation, so when I found out that the cyclic_timed_irrigation capability had the ability to automatically shut off the valve after a period of time, I adjusted my Home Assistant automation to use that. (for now I can detect when the valve fails to open and notify myself; that is not as bad as flooding!)
Here's the weird part; I can see that my Home Assistant script triggers and modifies the state of each device in MQTT as expected, but only two of my six valves actually open and close for the configured period of time! The others appear to immediately increment the
cyclic_timed_irrigation:current_count
value from 0 to 1 without opening the valve and waiting for the configured period of time. I can manually open and close all of the valves through HA/Z2M, just trying to trigger viacyclic_timed_irrigation
does not work for some of the valves.I am wondering if anybody has any ideas for what I could do to diagnose or attempt to fix. I have popped out the batteries from them for a few seconds, and think my next step would be to try and re-pair to Z2M (which would be annoying but is fine). I am down to factory reset each device or anything I need to if they start behaving consistently. All devices are on the latest firmware (version 4100).
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions