Skip to content

Commit

Permalink
feat: allow to customize water time for single zone
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed May 28, 2024
1 parent 6321fe7 commit 1f02f75
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
9 changes: 9 additions & 0 deletions includes/input_select.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 14 additions & 2 deletions includes/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}"

0 comments on commit 1f02f75

Please sign in to comment.