-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
200 lines (199 loc) · 4.82 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
######## Automations ##########
- id: load_on
alias: "Turn on load"
trigger:
platform: state
entity_id: input_select.power_options
to: "Turn on load"
action:
service: script.turn_on
entity_id: script.load_on
- id: load_off
alias: "Turn off load"
trigger:
platform: state
entity_id: input_select.power_options
to: "Turn off load"
action:
service: script.turn_on
entity_id: script.load_off
- id: shutdown_stayoff
alias: "Shutdown remain off"
trigger:
platform: state
entity_id: input_select.power_options
to: "Shutdown remain off"
action:
service: script.turn_on
entity_id: script.shutdown_stayoff
- id: shutdown_stop
alias: "Stop shutdown"
trigger:
platform: state
entity_id: input_select.power_options
to: "Stop shutdown"
action:
service: script.turn_on
entity_id: script.shutdown_stop
- id: beeper_mute
alias: "Beeper mute"
trigger:
platform: state
entity_id: input_select.beeper_options
to: "Beeper mute"
action:
service: script.turn_on
entity_id: script.beeper_mute
- id: beeper_disable
alias: "Beeper disable"
trigger:
platform: state
entity_id: input_select.beeper_options
to: "Beeper disable"
action:
service: script.turn_on
entity_id: script.beeper_disable
- id: beeper_enable
alias: "Beeper enable"
trigger:
platform: state
entity_id: input_select.beeper_options
to: "Beeper enable"
action:
service: script.turn_on
entity_id: script.beeper_enable
- id: initiate_selftest_quick
alias: "Quick battery test"
trigger:
platform: state
entity_id: input_select.test_options
to: "Quick battery test"
action:
service: script.turn_on
entity_id: script.initiate_selftest_quick
- id: initiate_selftest_deep
alias: "Deep battery test"
trigger:
platform: state
entity_id: input_select.test_options
to: "Deep battery test"
action:
service: script.turn_on
entity_id: script.initiate_selftest_deep
- id: initiate_selftest_stop
alias: "Stop battery test"
trigger:
platform: state
entity_id: input_select.test_options
to: "Stop battery test"
action:
service: script.turn_on
entity_id: script.initiate_selftest_stop
- id: initiate_paneltest_start
alias: "Start panel test"
trigger:
platform: state
entity_id: input_select.test_options
to: "Start panel test"
action:
service: script.turn_on
entity_id: script.initiate_paneltest_start
- id: initiate_paneltest_stop
alias: "Stop panel test"
trigger:
platform: state
entity_id: input_select.test_options
to: "Stop panel test"
action:
service: script.turn_on
entity_id: script.initiate_paneltest_stop
#####################################
- id: vis_info1
alias: Information1
trigger:
- platform: state
entity_id: input_select.info1
- platform: homeassistant
event: start
action:
service: script.group_visinfo1
data:
entity_id: group.information1
cond: input_select.info1
visible_state: "Visible"
- id: vis_det1
alias: Details1
trigger:
- platform: state
entity_id: input_select.details1
- platform: homeassistant
event: start
action:
service: script.group_visdet1
data:
entity_id: group.details1
cond: input_select.details1
visible_state: "Visible"
- id: vis_det2
alias: Details2
trigger:
- platform: state
entity_id: input_select.details2
- platform: homeassistant
event: start
action:
service: script.group_visdet2
data:
entity_id: group.details2
cond: input_select.details2
visible_state: 'Visible'
- id: vis_info2
alias: Information2
trigger:
- platform: state
entity_id: input_select.info2
- platform: homeassistant
event: start
action:
service: script.group_visinfo2
data:
entity_id: group.information2
cond: input_select.info2
visible_state: 'Visible'
- id: vis_opt2
alias: Options2
trigger:
- platform: state
entity_id: input_select.options2
- platform: homeassistant
event: start
action:
service: script.group_visopt2
data:
entity_id: group.options2
cond: input_select.options2
visible_state: 'Visible'
######################################
- id: vis_detcharge1
alias: DetailsCharge1
trigger:
platform: state
entity_id: sensor.UPS1_battery_charge
from: "100"
action:
service: input_select.select_option
data:
entity_id: input_select.details1
option: "Visible"
- id: vis_detcharge2
alias: DetailsCharge2
trigger:
platform: state
entity_id: sensor.UPS2_battery_charge
from: "100"
action:
service: input_select.select_option
data:
entity_id: input_select.details2
option: "Visible"
#####################################