-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
51 lines (48 loc) · 1.47 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
sonos_say:
alias: "Sonos TTS"
sequence:
- service: media_player.sonos_snapshot
data_template:
entity_id: "{{ sonos_entity }}"
- service: media_player.sonos_unjoin
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: media_player.sonos_restore
data_template:
entity_id: "{{ sonos_entity }}"
sonos_play_radio:
alias: "Sonos Radio"
sequence:
- service: media_player.play_media
data:
media_content_id: x-rincon-mp3radio://fm03-icecast.mtg-r.net/fm03_mp3
media_content_type: music
sonos_prepare_sleep:
alias: "Sonos Prepare Sleep"
sequence:
- service: media_player.select_source
data_template:
entity_id: media_player.schlafzimmer
source: Relaxing Sleep Music
- service: media_player.volume_set
data_template:
entity_id: media_player.schlafzimmer
volume_level: 0.02
- service: media_player.sonos_set_sleep_timer
data:
entity_id: media_player.schlafzimmer
sleep_time: 1800
#Play a file
# data:
# entity_id: media_player.lounge
# media_content_id: http://192.168.1.41:8123/local/doorbell.mp3
# media_content_type: audio/mp3