-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscripts.yaml
More file actions
264 lines (242 loc) · 6.73 KB
/
scripts.yaml
File metadata and controls
264 lines (242 loc) · 6.73 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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
kodi_pause:
alias: "Pause Kodi"
sequence:
- service: media_player.media_pause
data:
entity_id: media_player.brix_pc
kodi_play:
alias: "Play Kodi"
sequence:
- service: media_player.media_play
data:
entity_id: media_player.brix_pc
kids_wifi_on:
alias: "Kids Wifi On"
sequence:
- service: shell_command.wifi_kids_enable
kids_wifi_off:
alias: "Kids Wifi Off"
sequence:
- service: shell_command.wifi_kids_disable
nick_wifi_on:
alias: "Nick Wifi On"
sequence:
- service: shell_command.wifi_nick_enable
- service: shell_command.wifi_nick_enable_tablet
- service: shell_command.wifi_nick_enable_roku
nick_wifi_off:
alias: "Nick Wifi Off"
sequence:
- service: shell_command.wifi_nick_disable
- service: shell_command.wifi_nick_disable_tablet
- service: shell_command.wifi_nick_disable_roku
nick_wifi_throttle:
alias: "Nick Wifi Throttle"
sequence:
- service: shell_command.wifi_nick_throttle
- service: shell_command.wifi_nick_throttle_tablet
nick_wifi_unthrottle:
alias: "Nick Wifi Unthrottle"
sequence:
- service: shell_command.wifi_nick_unthrottle
- service: shell_command.wifi_nick_unthrottle_tablet
shannon_wifi_on:
alias: "Shannon Wifi On"
sequence:
- service: shell_command.wifi_shannon_enable
- service: shell_command.wifi_shannon_enable_roku
shannon_wifi_off:
alias: "Shannon Wifi Off"
sequence:
- service: shell_command.wifi_shannon_disable
- service: shell_command.wifi_shannon_disable_roku
clean_recorder_db:
alias: "Clean the local DB"
sequence:
- service: recorder.purge
data:
keep_days: 2
dummy:
alias: "Dummy"
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: AlexaInsideTemp
message: User Called Script
entity_id: script.dummy
domain: script
anova_start:
alias: "Anova Start"
sequence:
- service: shell_command.anova_start
# data_template:
# temperature: "{{ states.input_number.anova_temp.state }}"
# duration: "{{ states.input_number.anova_duration.state }}"
anova_stop:
alias: "Anova Stop"
sequence:
- service: shell_command.anova_stop
anova_icebath:
alias: "Anova Ice Bath"
sequence:
- service: shell_command.anova_icebath
fan_circulate_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.enable_hvac_periodic_fan
fan_circulate_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.enable_hvac_periodic_fan
holiday_mode_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.holiday_mode
holiday_mode_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.holiday_mode
vacation_mode_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.vacation_mode
vacation_mode_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.vacation_mode
kids_override_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.kids_override
kids_override_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.kids_override
kids_mega_override_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.kids_mega_override
kids_mega_override_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.kids_mega_override
kids_summer_toggle_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.kids_summer_toggle
kids_summer_toggle_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.kids_summer_toggle
video_pop_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.enable_video_pop
video_pop_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.enable_video_pop
nick_grounded_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.nick_grounded
nick_grounded_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.nick_grounded
shannon_grounded_on:
sequence:
- service: homeassistant.turn_on
entity_id: input_boolean.shannon_grounded
shannon_grounded_off:
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.shannon_grounded
front_walk_camera_pop:
alias: "Front Walk Camera Pop"
sequence:
- service: shell_command.front_walk_camera
driveway_camera_pop:
alias: "Driveway Camera Pop"
sequence:
- service: shell_command.driveway_camera
patio_camera_pop:
alias: "Patio Camera Pop"
sequence:
- service: shell_command.patio_camera
backyard_camera_pop:
alias: "Backyard Camera Pop"
sequence:
- service: shell_command.backyard_camera
front_walk_trigger:
alias: "Front Walk Trigger Record"
sequence:
- service: shell_command.trigger_fw
update_tts_endpoints:
alias: "Update TTS Endpoint Options"
sequence:
- service: automation.trigger
entity_id: automation.set_tts_endpoint_options
set_bi_yard_work:
alias: "Yard Work Override"
sequence:
- service: shell_command.bi_yardwork
#### USED WHEN THE ALARM IS TRIGGERED ####
#### FLASHES ALL LIGHTS IN THE HOUSE ####
light_flash:
alias: Light flash on
sequence:
- service: light.turn_on
data:
entity_id: group.alarm_all_lights
- service: switch.turn_on
data:
entity_id: group.alarm_all_switches
- delay:
seconds: 1
- service: light.turn_off
data:
entity_id: group.alarm_all_lights
- service: switch.turn_off
data:
entity_id: group.alarm_all_switches
- service: script.turn_on
data:
entity_id: script.light_loop
light_loop:
alias: Light flash loop
sequence:
- delay:
# time for flash light off
seconds: 1
- service: script.turn_on
data:
entity_id: script.light_flash
# Filter change date update script
furnace_filter_date:
alias: Furnace filter change date
sequence:
- service: variable.set_variable
data:
variable: furnace_filter
value_template: '{{ now() }}'
- service: variable.set_variable
data:
variable: hvac_runtime
value_template: "{{ (0 - (states('sensor.cooling_before_last_filter_change') | float) - (states('sensor.heating_before_last_filter_change') | float)) | round(2) }}"
#Doorbell alert that's called from Node-RED
alert_on_doorbell:
alias: Doorbell Alert
sequence:
- service: notify.dantext
data_template:
message: 'Doorbell was pressed!'
data:
images:
- /tmp/frontwalk.jpg
- service: notify.shelleytext
data_template:
message: 'Doorbell was pressed!'
data:
images:
- /tmp/frontwalk.jpg