-
Notifications
You must be signed in to change notification settings - Fork 5
/
scripts.yaml
61 lines (58 loc) · 1.74 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
sonos_say:
alias: "Sonos TTS script"
sequence:
- service: sonos.snapshot
data_template:
entity_id: "{{ sonos_entity }}"
- service: 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: sonos.restore
data_template:
entity_id: "{{ sonos_entity }}"
sonos_play:
alias: "Sonos MP3 script"
sequence:
- service: sonos.snapshot
data_template:
entity_id: "{{ sonos_entity }}"
- service: sonos.unjoin
data_template:
entity_id: "{{ sonos_entity }}"
- service: media_player.volume_set
data_template:
entity_id: "{{ sonos_entity }}"
volume_level: "{{ volume }}"
- service: media_player.play_media
data_template:
entity_id: "{{ sonos_entity }}"
media_content_id: "{{ media_content }}"
media_content_type: 'music'
- delay: "{{ delay }}"
- service: sonos.restore
data_template:
entity_id: "{{ sonos_entity }}"
camera_snapshot:
alias: "Camera - Take snapshot"
sequence:
- service: camera.snapshot
data_template:
entity_id: "{{ camera_entity }}"
filename: "/config/www/images/snapshots/{{ camera_entity }}.jpg"
- service: notify.ios_notifier
data_template:
message: "Camera om {{ now().strftime('%d-%m-%Y %H:%M:%S') }}"
data:
attachment:
url: !secret http_camera_snapshot
content-type: jpeg
hide-thumbnail: false