I created a helper that can be presented as a slider in lovelace running from 0 to 60:
input_number:
irrigation_popup:
name: "irrigation popup"
min: 0
max: 60
step: 5
icon: mdi:sprinkler
mode: slider
unit_of_measurement: Minutes
and an automation that if this helper goes above 0 it will repetitively decrease with 1 and wait 1 minute until 0 after which it switches of a tasmota device:
- id: '1654877730085'
alias: irrigatie popup
description: irrigatie via popup
trigger:
- platform: numeric_state
entity_id: input_number.irrigation_popup
above: '0'
condition: []
- repeat:
until:
- condition: numeric_state
entity_id: input_number.irrigation_popup
below: '1'
sequence:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: input_number.set_value
data:
value: '{{ (states("input_number.irrigation_popup") |int ) - 1 }}'
target:
entity_id: input_number.irrigation_popup
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.tasmota99_4
mode: single