Skip to content

Commit

Permalink
feat: add garden valve switch
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed May 16, 2024
1 parent bca5085 commit 1553f7a
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 49 deletions.
17 changes: 17 additions & 0 deletions automation/garden_watering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,20 @@
- service: script.activate_water_rasen_klein
- service: script.activate_water_blumenbeet
- service: script.activate_water_hecke

- alias: "Garden Watering: Reset Auto off timer"
initial_state: "on"
trigger:
- platform: state
entity_id: switch.garden_water_valve
to: "off"
condition: []
action:
- service: zha.set_zigbee_cluster_attribute
data:
ieee: 00:3c:84:ff:fe:15:fc:9f
endpoint_id: 1
cluster_id: 61184
attribute: 61185
value: 3600
mode: single
114 changes: 65 additions & 49 deletions includes/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,58 +381,74 @@ toggle_speaker_and_light_childroom:
entity_id: light.child

activate_water_rasen:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen
# turn on watering
- delay:
minutes: 1
# turn of watering
- delay:
seconds: 20
sequence:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen
- service: switch.turn_on
entity_id: switch.garden_water_valve
- delay:
minutes: 1
- service: switch.turn_off
entity_id: switch.garden_water_valve
- delay:
seconds: 30

activate_water_rasen_klein:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen (klein)
# turn on watering
- delay:
minutes: 1
# turn of watering
- delay:
seconds: 20
sequence:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen (klein)
- service: switch.turn_on
data:
entity_id: switch.garden_water_valve
- delay:
minutes: 1
- service: switch.turn_off
data:
entity_id: switch.garden_water_valve
- delay:
seconds: 30

activate_water_blumenbeet:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Blumenbeet
# turn on watering
- delay:
minutes: 1
# turn of watering
- delay:
seconds: 20
sequence:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Blumenbeet
- service: switch.turn_on
data:
entity_id: switch.garden_water_valve
- delay:
minutes: 1
- service: switch.turn_off
data:
entity_id: switch.garden_water_valve
- delay:
seconds: 30

activate_water_hecke:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Hecke
# turn on watering
- delay:
minutes: 1
# turn of watering
- delay:
seconds: 20
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen
sequence:
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Hecke
- service: switch.turn_on
entity_id: switch.garden_water_valve
- delay:
minutes: 1
- service: switch.turn_off
entity_id: switch.garden_water_valve
- delay:
seconds: 30
- service: input_select.select_option
target:
entity_id: input_select.garden_water_zone
data:
option: Rasen

0 comments on commit 1553f7a

Please sign in to comment.