-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
201 lines (201 loc) · 5.19 KB
/
automations.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
190
191
192
193
194
195
196
197
198
199
200
201
- id: '1609768093786'
alias: create all light group on ha start
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: script.create_all_light_group
data: {}
mode: single
- id: 9e2bec4e9fb046bdbafade7e165c1bfe
alias: Set dishwasher active when power detected
trigger:
- platform: numeric_state
entity_id: sensor.switch_dishwasher_watts
above: '10'
below: '10000'
condition:
- condition: or
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Dirty
- condition: state
entity_id: input_select.dishwasher_status
state: Clean
- condition: state
entity_id: input_select.dishwasher_status
state: Drying
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Running
mode: single
- alias: Set dishwasher drying when power drops
trigger:
- platform: numeric_state
entity_id: sensor.switch_dishwasher_watts
below: 10
condition:
condition: and
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Running
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Drying
id: b63f1495a991448a927f182dedb7bad0
- alias: Set dishwasher clean
trigger:
- platform: state
entity_id: input_select.dishwasher_status
to: Drying
for:
minutes: 15
condition:
condition: and
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Drying
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Clean
id: 0fc21db223dd445ab141708edbad7008
- alias: Set Dishwasher dirty when power off
trigger:
- platform: numeric_state
entity_id: sensor.switch_dishwasher_watts
below: 1
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.switch_dishwasher_watts
below: 1
- condition: or
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Clean
- condition: state
entity_id: input_select.dishwasher_status
state: Drying
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Dirty
id: d3114e0bc9c14567a60856e2dc5e5d43
- id: washing_machine_switchedoff
alias: Washing Machine - Change State Switched Off
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_watts
below: 0.4
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washing_machine
option: Switched Off
- id: washing_machine_powereddown
alias: Washing Machine - Change State Powered Down
trigger:
- platform: state
entity_id: sensor.washing_machine_watts
to: 'on'
- platform: numeric_state
entity_id: sensor.washing_machine_watts
below: '1'
for: 00:01:00
condition:
- condition: state
entity_id: sensor.washing_machine_watts
state: 'on'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washing_machine
option: Powered Down
mode: single
- id: washing_machine_idle
alias: Washing machine - change state idle
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_watts
above: 0.2
below: 1
for: 00:01:00
condition:
- condition: state
entity_id: sensor.washing_machine_watts
state: 'on'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washing_machine
option: Idle
- id: washing_machine_rinsespin
alias: Washing Machine - Change State Rinse Spin
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_watts
above: 10
below: 550
for: 00:01:00
condition:
- condition: state
entity_id: sensor.washing_machine_watts
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_select.state_washing_machine
state: Powered Down
- condition: state
entity_id: input_select.state_washing_machine
state: Idle
- condition: state
entity_id: input_select.state_washing_machine
state: Wash
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washing_machine
option: Rinse / Spin
- id: washing_machine_washing
alias: Washing machine - change state wash
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_watts
above: '300'
for: 00:01:00
condition:
- condition: state
entity_id: sensor.washing_machine_watts
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_select.state_washing_machine
state: Powered Down
- condition: state
entity_id: input_select.state_washing_machine
state: Idle
- condition: state
entity_id: input_select.state_washing_machine
state: Rinse / Spin
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washing_machine
option: Wash
mode: single