-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
executable file
·179 lines (167 loc) · 5.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
reboot_pi:
sequence:
- service: shell_command.reboot_pi
open_garage:
sequence:
- service: cover.open_cover
entity_id: cover.garage
sleep_tmr:
alias: "Sleep 60"
sequence:
- delay: '00:60:00'
- service: media_player.turn_off
data:
entity_id: media_player.alexs_bedroom
- service: shell_command.bedroom_power_toggle
chromecast_off_tmr:
alias: "Run Sleep Script"
sequence:
- delay: '00:{{ states.input_number.off_tmr_slider.state | int }}:00'
- service: media_player.turn_off
data_template:
entity_id: >
{% if is_state("input_select.select_cast_off", "Living Room CC") %}
media_player.alexs_living_room
{%-elif is_state("input_select.select_cast_off", "Bedroom CC") %}
media_player.alexs_bedroom
{%-elif is_state("input_select.select_cast_off", "Den CC Ultra") %}
media_player.den_cc_ultra
{%-elif is_state("input_select.select_cast_off", "Google Home") %}
media_player.alexs_google_home
{%-elif is_state("input_select.select_cast_off", "Garage Audio") %}
media_player.garage_audio
{%-elif is_state("input_select.select_cast_off", "Den Audio") %}
media_player.den_audio
{%-elif is_state("input_select.select_cast_off", "All Speakers") %}
media_player.all_speakers
{% else %}
"None"
{% endif %}
- service: script.turn_off
data:
entity_id: script.chromecast_off_tmr
play_playstation4:
alias: "Play PS4"
sequence:
- service: switch.turn_on
data:
entity_id: switch.playstation4
- service: switch.turn_on
data:
entity_id: switch.den_subwoofer
- service: shell_command.receiver_power_toggle
- delay:
seconds: 1
- service: shell_command.projector_power_on
- delay:
seconds: 8
- service: shell_command.receiver_input_bd
- service: input_boolean.turn_on
data:
entity_id: input_boolean.game_equipment
play_turn_off:
alias: "Turn Off Game Equipment"
sequence:
- service: switch.turn_off
data:
entity_id: switch.playstation4
- service: switch.turn_off
data:
entity_id: switch.den_subwoofer
- service: shell_command.receiver_power_toggle
- delay:
seconds: 1
- service: shell_command.projector_power_off
- service: shell_command.projector_power_off
- service: shell_command.projector_power_off
- service: shell_command.projector_power_off
- service: shell_command.projector_power_off
- service: input_boolean.turn_off
data:
entity_id: input_boolean.game_equipment
music_in_den:
alias: "Listen to Music in the Den"
sequence:
- service: shell_command.receiver_power_toggle
- delay:
seconds: 8
- service: shell_command.receiver_input_dvd
- service: switch.turn_on
data:
entity_id: switch.den_subwoofer
- service: input_boolean.turn_on
data:
entity_id: input_boolean.game_equipment
#living_room_tv_on:
# alias: "Living Room TV"
# sequence:
# - service: shell_command.google_tv_power_on
# - service: shell_command.soundbar_power_toggle
# - service: shell_command.google_tv_power_on
# - service: shell_command.google_tv_power_on
# - service: shell_command.google_tv_power_on
#living_room_tv_off:
# alias: "Living Room Shutdown"
# sequence:
# - service: shell_command.google_tv_power_off
# - service: shell_command.soundbar_power_toggle
# - delay:
# seconds: 3
# - service: shell_command.google_tv_power_off
# - service: shell_command.google_tv_power_off
# - service: shell_command.google_tv_power_off
bedroom_tv_on:
alias: "Bedroom TV"
sequence:
- service: shell_command.bedroom_power_toggle
depart_work:
alias: "Leaving for Work"
sequence:
#- service: script.turn_on
# data:
# entity_id: script.living_room_tv_off
- service: switch.turn_off
data:
entity_id: switch.dining_room_light
- service: switch.turn_off
data:
entity_id: switch.bottle_lamp
- service: cover.open_cover
data:
entity_id: cover.garage
motion_sensing:
alias: "Motion Sensing"
sequence:
- service: automation.toggle
data:
entity_id: automation.den_lamp_on
- service: automation.toggle
data:
entity_id: automation.den_lamp_off
#vacation:
# alias: "Vacation"
# sequence:
# - service: automation.toggle
# data:
# entity_id: automation.bottle_lamp_vacation
# - service: automation.toggle
# data:
# entity_id: automation.bottle_lamp_off_vacation
# - service: automation.toggle
# data:
# entity_id: automation.den_light_vacation
# - service: automation.toggle
# data:
# entity_id: automation.den_light_off_vacation
# - service: automation.toggle
# data:
# entity_id: automation.dining_light_vacation
# - service: automation.toggle
# data:
# entity_id: automation.dining_light_off_vacation
# - service: automation.toggle
# data:
# entity_id: automation.neon_lights_vacation
# - service: automation.toggle
# data:
# entity_id: automation.neon_lights_off_vacation