Stop a "repeat until" automation

Hey guys!
So… I created a loop to turn on/off the warming system of my pool…
I have some solar panels (not photovoltaic panels) where water passes trough heat up a water pump to circulate the water.
I seted up a loop of turning on for 10 minutes e off for 5 minutes until 6:00pm…

alias: Botão Piscina -  Loop Aquecimento
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: 52bf706d7c41dbf293a56099e7f5f693
    type: action
    subtype: long
    discovery_id: 0x00124b002242245e action_long
condition:
  - condition: time
    before: "17:00:00"
action:
  - repeat:
      until:
        - condition: time
          after: "18:00:00"
      sequence:
        - type: turn_on
          device_id: 74ca4199c4381310f99090ab40f26471
          entity_id: switch.aquecimento_piscina
          domain: switch
        - delay:
            hours: 0
            minutes: 10
            seconds: 0
            milliseconds: 0
        - type: turn_off
          device_id: 74ca4199c4381310f99090ab40f26471
          entity_id: switch.aquecimento_piscina
          domain: switch
        - delay:
            hours: 0
            minutes: 5
            seconds: 0
            milliseconds: 0
mode: single

So, my problem is… if I decide to stop this loop before 6:00pm, how can I do it?

Thanks!

Create a boolean (toggle helper) and add its status as a condition in your automation. Add the toggle to your dashboard and control its status there.

that seems to work… thks…