forked from petergridge/Irrigation-V5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testhelpers.yaml
189 lines (179 loc) · 3.4 KB
/
testhelpers.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# create helpers to support testing the irrigation custom control.
# supports creating 3 zones with all attributes configured
switch:
- platform: template
switches:
dummy_1:
friendly_name: Zone 1
value_template: "{{ is_state('input_boolean.dummy_switch_1', 'on') }}"
turn_on:
- delay: '00:00:01'
- service: input_boolean.turn_on
entity_id: input_boolean.dummy_switch_1
turn_off:
- delay: '00:00:01'
- service: input_boolean.turn_off
entity_id: input_boolean.dummy_switch_1
dummy_2:
friendly_name: Zone 2
value_template: "{{ is_state('input_boolean.dummy_switch_2', 'on') }}"
turn_on:
- delay: '00:00:01'
- service: input_boolean.turn_on
entity_id: input_boolean.dummy_switch_2
turn_off:
- delay: '00:00:01'
- service: input_boolean.turn_off
entity_id: input_boolean.dummy_switch_2
dummy_3:
friendly_name: Zone 3
value_template: "{{ is_state('input_boolean.dummy_switch_3', 'on') }}"
turn_on:
- service: input_boolean.turn_on
entity_id: input_boolean.dummy_switch_3
turn_off:
- service: input_boolean.turn_off
entity_id: input_boolean.dummy_switch_3
dummy_pump:
friendly_name: Pump
value_template: "{{ is_state('input_boolean.dummy_pump', 'on') }}"
turn_on:
- service: input_boolean.turn_on
entity_id: input_boolean.dummy_pump
turn_off:
- service: input_boolean.turn_off
entity_id: input_boolean.dummy_pump
input_boolean:
dummy_switch_1:
dummy_switch_2:
dummy_switch_3:
program_enabled:
zone_1_enabled:
zone_2_enabled:
zone_3_enabled:
program_rain:
zone_1_rain:
zone_1_ignore_rain:
dummy_pump:
show_config:
input_datetime:
program_1_start:
name: Start Time
has_time: true
input_number:
zone_1_run_time:
min: 1
max: 30
step: 1
zone_2_run_time:
min: 1
max: 30
step: 1
zone_3_run_time:
min: 1
max: 30
step: 1
zone_1_wait_time:
min: 1
max: 5
step: 1
zone_2_wait_time:
min: 1
max: 5
step: 1
zone_3_wait_time:
min: 1
max: 5
step: 1
zone_1_repeat:
min: 1
max: 5
step: 1
zone_2_repeat:
min: 1
max: 5
step: 1
zone_3_repeat:
min: 1
max: 5
step: 1
zone_1_adjust:
initial: 1
min: 0
max: 2
step: .1
zone_2_adjust:
initial: 1
min: 0
max: 2
step: .1
zone_3_adjust:
initial: 1
min: 0
max: 2
step: 0.1
flow_sensor:
min: 0
max: 20
step: 1
inter_zone_delay:
min: 0
max: 20
step: 1
input_select:
zone_1_freq:
options:
- 1
- 2
- 3
- Mon,Tue, Wed, Thu, Fri, Sat, Sun
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- Off
zone_2_freq:
options:
- 1
- 2
- 3
- Mon,Tue, Wed, Thu, Fri, Sat, Sun
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- Off
zone_3_freq:
options:
- 1
- 2
- 3
- Mon,Tue, Wed, Thu, Fri, Sat, Sun
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- Off
program_freq:
options:
- 1
- 2
- 3
- Mon,Tue, Wed, Thu, Fri, Sat, Sun
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
- Off