-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
46 lines (46 loc) · 1.37 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
play_radio:
alias: Play Radio
variables:
browserkey: '{{ browser_key }}'
sequence:
- service: media_player.play_media
data:
media_content_id: media-source://radio_browser/{{ browserkey }}
media_content_type: music
enqueue: replace
target:
entity_id: '{{ media_player }}'
mode: single
icon: mdi:radio
deurbel:
alias: Deurbel
icon: mdi:doorbell
mode: restart
sequence:
- service: camera.snapshot
metadata: {}
data:
filename: /media/snapshots/snapshot_driveway.jpg
target:
entity_id: camera.voortuin
- alias: Verstuur melding naar alle home assistant apps die thuis zijn
repeat:
for_each: "{{\n expand(state_attr('zone.home', 'persons'))\n | map(attribute='attributes.source')\n
\ | map('replace', 'device_tracker.', 'notify.mobile_app_')\n | list\n}}
\n"
sequence:
- alias: Send doorbell notification
service: '{{ repeat.item }}'
data:
title: Ding dong!
message: De deurbel gaat
data:
channel: deurbel
notification_icon: mdi:doorbell-video
priority: high
tag: deurbel
timeout: 60
ttl: 0
visibility: public
clickAction: /mobile-dashboard/deurbel
image: /media/local/snapshots/snapshot_driveway.jpg?ts={{now().timestamp()}}