-
Notifications
You must be signed in to change notification settings - Fork 2
/
scripts.yaml
52 lines (52 loc) · 1.78 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
script_start_melissas_car:
alias: Script - Start Melissa's Car
sequence:
- service: cover.open_cover
data:
entity_id: cover.main_garage_door
- timeout: 00:02:00
continue_on_timeout: 'false'
wait_template: '{{ is_state(''cover.main_garage_door'', ''open'') }}'
- service: switch.turn_on
data:
entity_id: switch.smartstart_90947
- delay: 00:00:05
- service: lock.lock
data:
entity_id: lock.smartstart_90947
script_start_chris_car:
alias: Script - Start Chris' Car
sequence:
- service: cover.open_cover
data:
entity_id: cover.main_garage_door
- timeout: 00:02:00
continue_on_timeout: 'false'
wait_template: '{{ is_state(''cover.main_garage_door'', ''open'') }}'
- service: switch.turn_on
data:
entity_id: switch.smartstart_706837
- delay: 00:00:05
- service: lock.lock
data:
entity_id: lock.smartstart_706837
audio_notify:
alias: Alexa Audio Notification
sequence:
- service: media_player.alexa_tts
data_template:
entity_id: "{% if (mplayer == \"all\") %}\n media_player.family_room_echo,media_player.living_room_echo,media_player.basement_echo,media_player.bedroom_echo\n\
{% elif (mplayer == \"all_inside\") %}\n media_player.family_room_echo,media_player.living_room_echo,media_player.bedroom_echo\n\
{% elif (mplayer == \"main_floor\") %}\n media_player.family_room_echo,media_player.living_room_echo\n\
{% else %}\n media_player.{{ mplayer }}\n{% endif %} \n"
message: '{{ message }}'
script_close_main_garage_door:
alias: Script - Close Main Garage Door
sequence:
- data:
entity_id: cover.main_garage_door
service: cover.close_cover
shutdown_basement_tv:
alias: Script - Shutdown Basement TV
sequence:
- service: python_script.shutdown_basement_tv