-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathirrigation.yaml
More file actions
69 lines (58 loc) · 1.44 KB
/
irrigation.yaml
File metadata and controls
69 lines (58 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
blueprint:
name: Smart Irrigation V2
description: Smart irrigation for a zone
domain: automation
input:
irrigation_switch:
name: Irrigation Switch
description: Switch, tap or valve to turn on and off
selector:
entity:
filter:
- domain: switch
- domain: input_boolean
- domain: valve
pause_switch:
name: Pause Switch
description: Switch, if off don't run automation
selector:
entity:
filter:
- domain: input_boolean
irrigation_zone:
name: Irrigation Zone
description: Zone to irrigate
selector:
entity:
filter:
- device_class: duration
variables:
duration: !input irrigation_zone
alias: Standard Irrigation
description: "Standard irrigation for a Zone"
triggers:
trigger: event
event_type: smart_irrigation_start_irrigation_all_zones
conditions:
- condition: numeric_state
entity_id: !input irrigation_zone
above: 0
- condition: state
entity_id: !input pause_switch
state: "on"
actions:
- action: homeassistant.turn_on
data: {}
target:
entity_id: !input irrigation_switch
- delay: "{{ states(duration) }}"
- action: homeassistant.turn_off
data: {}
target:
entity_id:
- !input irrigation_switch
- action: smart_irrigation.reset_bucket
data: {}
target:
entity_id: !input irrigation_zone
mode: single