Timer for 30 mins only giving me around 10 minutes (controlling garden hose controller SONOFF SWV-ZFE Hydro ONE))

(see solution at end) I have the following

alias: Water Lawn Evening
description: ""
triggers:
  - trigger: time
    at: "18:05:00"
conditions: []
actions:
  - action: switch.turn_on
    target:
      entity_id: switch.garden_hoze
  - delay:
      hours: 0
      minutes: 30
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    target:
      entity_id: switch.garden_hoze
mode: single

But it only turns on the hose for around 10 minutes. Its controlling a
SONOFF SWV-ZFE Hydro ONE Zigbee Smart Sprinkler Timer.

SOLUTION:

alias: Water Lawn Evening
triggers:
  - at: "18:55:00"
    trigger: time
conditions: []
actions:
  - repeat:
      count: 4
      sequence:
        - target:
            entity_id: switch.garden_hoze
          action: switch.turn_on
        - delay: "00:05:00"
        - target:
            entity_id: switch.garden_hoze
          action: switch.turn_off
        - delay:
            hours: 0
            minutes: 2
            seconds: 0
            milliseconds: 0
mode: single

This seems to work. I have a loop turning on for 5 mins and off for 2 (to allow water to soak in). This is because when you turn valve on it automatically turns off after 10 minutes so I bounce the valve (turn off and on again) between each loop so this does not happen.

You could try structure the automation so that you don’t use a timer, but rather trigger based on the switch being on for 30 minutes.

I think the problem is the switch automatically turns itself off after 10 mins. I tried

alias: Water Lawn Evening
description: ""
triggers:
  - at: "18:35:00"
    trigger: time
conditions: []
actions:
  - target:
      entity_id: switch.garden_hoze
    data:
      duration: "00:20:00"
    action: switch.turn_on
mode: single

And it triggered but did not turn valve on.

If you want something to run for a long time (more than a couple of minutes) do as @fleskefjes suggested or generate a timer helper and trigger off of that.

Delays can be interrupted and will not come back messing up what you expect. The longer the delay runs, the more likely it will be messed up.
Opposite to that timers can be set-up to survive that. Triggers will happen when the event happens so also good.

Try this version. If the switch turns off at 18:15 then it’s not this automation that’s doing it.

alias: Water Lawn Evening
description: ""
triggers:
  - id: 'on'
    trigger: time
    at: "18:05:00"
  - id: 'off'
    trigger: time
    at: "18:35:00"
conditions: []
actions:
  - action: switch.turn_{{ trigger.id}}
    target:
      entity_id: switch.garden_hoze
mode: single

Thanks for that, ime trying something and if it does not work will give this a go. I thing on and off works but will only stay on for 10 minutes so ime going to do a loop of 5 minutes (4=20 mins) to see if that works. Will turn off for a few seconds at the ned of each loop. fingers crossed.

Have a search around these forums for that model. There’s a couple of threads mentioning a 10 minute hardcoded timer for protection.

IIRC they fixed it with a firmware update, but I could be wrong

Think it that after it turns on it will automatically turns off in 10 minutes so I am planning on bouncing it every 5 min, i may of misunderstood but not sure if a times will help for this.

alias: Water Lawn Evening
description: ""
triggers:
  - id: 'on'
    trigger: time
    at:
      - "18:05:00"
      - "18:15:00"
      - "18:25:00"
  - id: 'off'
    trigger: time
    at: "18:35:00"
conditions: []
actions:
  - action: switch.turn_{{ trigger.id}}
    target:
      entity_id: switch.garden_hoze
mode: single

May you try to change the “Manual default settings” of the SWV directly via z2mqtt. There is the default value for “Irrigation total duration” set to 10min. May this causes your issues?

I tested it. If you change this value eg to 15min it irrigates 15min. So it should work.