Skip to content

Commit

Permalink
feat: simplify garden watering scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed May 22, 2024
1 parent 82ab03b commit 71e783f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions includes/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,38 @@ activate_water_hecke:
entity_id: input_select.garden_water_zone
data:
option: Rasen


watering_blumenbeet:
sequence:
- service: script.water_zone
data:
water_period: "{{ rasen_seconds }}"
- service: script.water_zone
data:
water_period: "{{ hecke_seconds }}"
- service: script.water_zone
data:
water_period: "{{ blumenbeet_seconds }}"
- service: script.water_zone
data:
water_period: "{{ rasen_klein_seconds }}"

water_zone:
sequence:
- service: notify.devices_user_1
data:
title: "Garden"
message: "Watering {{ states('input_select.garden_water_zone') }} for {{ water_period | default(10) }}s"
# - service: switch.turn_on
# entity_id: switch.garden_water_valve
- delay: "{{ water_period | default(10) }}"
# - service: switch.turn_off
# entity_id: switch.garden_water_valve
- delay:
seconds: 5
- service: input_select.select_next
data:
cycle: true
target:
entity_id: input_select.garden_water_zone

0 comments on commit 71e783f

Please sign in to comment.