-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscripts.yaml
104 lines (104 loc) · 2.64 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
sleep_master_bedroom_apple_tv:
alias: Sleep Master Bedroom Apple TV
sequence:
- service: remote.send_command
target:
entity_id: remote.master_bedroom_apple_tv
data:
delay_secs: 1
command: home_hold,select
- service: media_player.turn_off
target:
entity_id: media_player.master_bedroom_apple_tv
data: {}
mode: single
sonos_say:
alias: Sonos TTS script
sequence:
- service: sonos.snapshot
data_template:
entity_id: '{{ sonos_entity }}'
- service: media_player.volume_set
data_template:
entity_id: '{{ sonos_entity }}'
volume_level: '{{ volume }}'
- service: tts.google_say
data_template:
entity_id: '{{ sonos_entity }}'
message: '{{ message }}'
- delay: '{{ delay }}'
- service: sonos.restore
data_template:
entity_id: '{{ sonos_entity }}'
mode: single
close_master_windows:
alias: Close Master Windows
sequence:
- service: script.turn_off
data: {}
target:
entity_id: script.open_master_windows
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_open
domain: switch
- type: turn_on
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_close
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 35
milliseconds: 0
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_close
domain: switch
mode: single
icon: mdi:window-closed
open_master_windows:
alias: Open Master Windows
sequence:
- service: script.turn_off
data: {}
target:
entity_id: script.close_master_windows
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_close
domain: switch
- type: turn_on
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_open
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 35
milliseconds: 0
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_open
domain: switch
mode: single
icon: mdi:window-open
stop_master_windows:
alias: Stop Master Windows
sequence:
- service: script.turn_off
data: {}
target:
entity_id:
- script.close_master_windows
- script.open_master_windows
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_open
domain: switch
- type: turn_off
device_id: ea4b74fece2d16c3d58080fa1565cb2b
entity_id: switch.master_window_close
domain: switch
mode: single
icon: mdi:window-open