diff --git a/includes/input_select.yaml b/includes/input_select.yaml index 2995e76..e463fd3 100644 --- a/includes/input_select.yaml +++ b/includes/input_select.yaml @@ -6,6 +6,15 @@ garden_water_zone: - Blumenbeet - Rasen (klein) +garden_water_time: + name: Dauer Bewässerung + initial: '00:30:00' + options: + - '00:15:00' + - '00:30:00' + - '00:45:00' + - '01:00:00' + sonos_source: name: Sonos Source options: diff --git a/includes/scripts.yaml b/includes/scripts.yaml index 660be21..bd5ad9f 100644 --- a/includes/scripts.yaml +++ b/includes/scripts.yaml @@ -425,10 +425,22 @@ watering_blumenbeet: sequence: - service: script.watering_garden data: - blumenbeet_period: '00:30:00' + blumenbeet_period: "{{ states('input_select.garden_water_time') }}" + +watering_hecke: + sequence: + - service: script.watering_garden + data: + hecke_period: "{{ states('input_select.garden_water_time') }}" + +watering_rasen: + sequence: + - service: script.watering_garden + data: + rasen_period: "{{ states('input_select.garden_water_time') }}" watering_zone: sequence: - service: script.water_zone data: - water_period: '00:40:00' + water_period: "{{ states('input_select.garden_water_time') }}"