-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
executable file
·194 lines (191 loc) · 6.25 KB
/
scripts.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
####################################################
# DOOR ALARMS #
####################################################
garage_door_alarm:
alias: "Garage Door Alarm Notification"
sequence:
- delay:
minutes: 10
- service: notify.TEXT_DK
data:
message: 'The garage door is open!!!'
- service: notify.TEXT_NM
data:
message: 'The garage door is open!!!'
front_door_alarm:
alias: "Front Door Alarm Notification"
sequence:
- delay:
minutes: 10
- service: notify.TEXT_DK
data:
message: 'The front door is open!!!'
- service: notify.TEXT_NM
data:
message: 'The front door is open!!!'
lightwell_door_alarm:
alias: "Lightwell Door Alarm Notification"
sequence:
- delay:
minutes: 10
- service: notify.TEXT_DK
data:
message: 'The lightwell door is open!!!'
- service: notify.TEXT_NM
data:
message: 'The lightwell door is open!!!'
test_alarm:
alias: "Test Alarm Notification"
sequence:
- delay:
seconds: 3
- service: notify.TEXT_DK
data:
message: 'This is a test notification!!!'
- service: notify.TEXT_NM
data:
message: 'This is a test notification!!!'
####################################################
# CURTAIN CONTROL #
####################################################
curtains_open:
alias: "Open curtains"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_open
curtains_close:
alias: "Close curtains"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_close
curtains_stop:
alias: "Stop curtains"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_stop
curtains_open_quarter:
alias: "Open curtains 1/4 way"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_open
- delay:
seconds: 4
- service: switch.turn_on
entity_id: switch.curtains_stop
####################################################
# FAN CONTROL #
####################################################
fan_onoff:
alias: "Fan On/Off"
sequence:
- service: switch.turn_on
entity_id: switch.fan_onoff
fan_speed:
alias: "Fan Speed"
sequence:
- service: switch.turn_on
entity_id: switch.fan_speed
fan_rotation:
alias: "Fan Rotation"
sequence:
- service: switch.turn_on
entity_id: switch.fan_rotation
- delay:
seconds: .1
- service: switch.turn_on
entity_id: switch.curtains_stop
fan_timer:
alias: "Fan Timer"
sequence:
- service: switch.turn_on
entity_id: switch.fan_timer
fan_ion:
alias: "Fan Ion"
sequence:
- service: switch.turn_on
entity_id: switch.fan_ion
- delay:
seconds: .1
- service: switch.turn_on
entity_id: switch.curtains_stop
####################################################
# SCENES #
####################################################
bedroom_sleep:
alias: "Going to bed"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_close
- service: switch.turn_on
entity_id: switch.fan_onoff
- delay:
seconds: .1
- service: switch.turn_on
entity_id: switch.fan_rotation
bedroom_wake:
alias: "Waking up"
sequence:
- service: switch.turn_on
entity_id: switch.curtains_open
- service: switch.turn_on
entity_id: switch.fan_onoff
- delay:
seconds: .1
greeting:
alias: Greeting
sequence:
- service: tts.google_say
data:
entity_id: media_player.home_group
message: Hello from Home Assistant
# bedtime_ben: !include scripts/bedtime_ben.yaml
# bedtime_cailin: !include scripts/bedtime_cailin.yaml
# morning: !include scripts/morning.yaml
# morning_dark: !include scripts/morning_dark.yaml
# morning_dark_one: !include scripts/morning_dark_one.yaml
# sunrise: !include scripts/sunrise.yaml
# sunset: !include scripts/sunset.yaml
# alarm_clock_morning: !include scripts/alarm_clock_morning.yaml
# ####ALARM ####
# alarm_away: !include scripts/alarm_away.yaml
# alarm_home: !include scripts/alarm_home.yaml
# alarm_triggered: !include scripts/alarm_triggered.yaml
# alarm_red: !include scripts/alarm_red.yaml
# ####TEST SCRIPTS####
# test: !include scripts/test.yaml
# ####GLOBAL SCRIPTS####
# all_off: !include scripts/all_off.yaml
# all_on: !include scripts/all_on.yaml
# all_on_day: !include scripts/all_on_day.yaml
# ####TRIGGERED LIGHTS
# motion_light_lr: !include scripts/motion_light_lr.yaml
# timer_lr: !include scripts/timer_lr.yaml
# motion_bathroom: !include scripts/motion_bathroom.yaml
# motion_bathroom_timer: !include scripts/motion_bathroom_timer.yaml
# motion_light_br: !include scripts/motion_light_br.yaml
# motion_light_br_timer: !include scripts/motion_light_br_timer.yaml
# ####NOTIFICATIONS AND ALERTS####
# notify_update: !include scripts/notify_update.yaml
# lifx_alert: !include scripts/lifx_alert.yaml
# low_battery: !include scripts/low_battery.yaml
# restart_ha: !include scripts/restart_ha.yaml
# ####PARTY
# party_time: !include scripts/party_time.yaml
# party_over: !include scripts/party_over.yaml
# party_lights_1: !include scripts/party_lights_1.yaml
# party_lights_2: !include scripts/party_lights_2.yaml
# sexy_time: !include scripts/sexy_time.yaml
# refresh_devices: !include scripts/refresh_devices.yaml
# prayer_time: !include scripts/prayer_time.yaml
# ####MEDIA####
# media_playing_night: !include scripts/media_playing_night.yaml
# media_stopped_night: !include scripts/media_stopped_night.yaml
# ####Cars####
# car_finder_ben_notify: !include scripts/car_finder_ben_notify.yaml
# car_finder_cailin_notify: !include scripts/car_finder_cailin_notify.yaml
# driving_ben_start: !include scripts/driving_ben_start.yaml
# driving_ben_stop: !include scripts/driving_ben_stop.yaml
# ####Phones####
# br_finder: !include scripts/br_finder.yaml
# cr_finder: !include scripts/cr_finder.yaml
# ifttt: !include scripts/IFTTT.yaml