forked from geekofweek/homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
executable file
·122 lines (109 loc) · 3.52 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
#################################################################
## Scripts
#################################################################
##########################################################
## Sonos Text to Speech
##########################################################
say:
alias: Sonos TTS
sequence:
- service: sonos.snapshot
data_template:
with_group: yes
entity_id: "{{ where }}"
- delay: '00:00:03'
- service: sonos.unjoin
data_template:
entity_id: "{{ where }}"
- delay: '00:00:01'
- service: sonos.join
data_template:
master: "{{ master }}"
entity_id: "{{ where }}"
- delay: '00:00:01'
- service: media_player.volume_set
data_template:
entity_id: "{{ where }}"
volume_level: "{{ volume }}"
- delay: '00:00:02'
- service: tts.cloud_say
data_template:
entity_id: "{{ master }}"
message: "{{ what }}"
- delay: '00:00:25'
- service: sonos.restore
data_template:
with_group: yes
entity_id: "{{ where }}"
##########################################################
## Living Room Fan Light Dimmers
##########################################################
living_room_fan_light_dimmer:
alias: Living Room Fan Lights Dimmer Sequence
sequence:
- service: switch.turn_on
entity_id:
- switch.living_room_east_fan_dimmer
- delay: '00:00:05'
- service: switch.turn_off
entity_id:
- switch.living_room_east_fan_dimmer
- delay: '00:00:02'
- service: switch.turn_on
entity_id:
- switch.living_room_west_fan_dimmer
- delay: '00:00:07'
- service: switch.turn_off
entity_id:
- switch.living_room_west_fan_dimmer
#################################################################
## Apple TV App Launch Scripts
#################################################################
##########################################################
## Living Room Netflix
##########################################################
living_room_launch_netflix:
alias: Living Room Launch Netflix
icon: mdi:netflix
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_appletv
data:
source: "Netflix"
##########################################################
## Living Room Plex
##########################################################
living_room_launch_plex:
alias: Living Room Launch Plex
icon: mdi:plex
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_appletv
data:
source: "Plex"
##########################################################
## Living Room Disney+
##########################################################
living_room_launch_disney:
alias: "Living Room Launch Disney+"
icon: mdi:caREDACTEDe
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_appletv
data:
source: "Disney+"
##########################################################
## Living Room Hulu
##########################################################
living_room_launch_hulu:
alias: "Living Room Launch Hulu"
icon: mdi:hulu
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_appletv
data:
source: "Hulu"