This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscripts.yaml
executable file
·73 lines (72 loc) · 2.02 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
---
apple_tv_on:
sequence:
- service: remote.send_command
data:
entity_id: remote.apple_tv
command: "wakeup"
- service: remote.turn_on
entity_id: remote.apple_tv
apple_tv_off:
sequence:
- service: remote.send_command
data:
entity_id: remote.apple_tv
command: "home_hold"
- delay:
seconds: 2
- service: remote.send_command
data:
entity_id: remote.apple_tv
command: "select"
- service: remote.turn_off
entity_id: remote.apple_tv
litter_box_done:
sequence:
- service: input_datetime.set_datetime
data:
entity_id: input_datetime.last_litter_box
timestamp: "{{ now().timestamp() }}"
spotify_contemporary_blend:
icon: mdi:playlist-music
sequence:
- alias: "set_spotify_source"
service: media_player.select_source
target:
entity_id: media_player.spotify_nathan
data:
source: "Marantz SR5012"
- alias: "start_playlist"
service: media_player.play_media
target:
entity_id: media_player.spotify_nathan
data:
media_content_id: "https://open.spotify.com/playlist/37i9dQZF1DWViBxWcYEI1b?si=c627eabd5d9e41a3"
media_content_type: playlist
- delay: "00:00:10"
- alias: "set_marantz_volume"
service: media_player.volume_set
target:
entity_id: media_player.marantz_sr5012
data:
volume_level: 0.37
toggle_octopi:
sequence:
- choose:
- alias: octopi_on # yamllint disable-line rule:indentation
conditions:
condition: state
entity_id: switch.octopi
state: 'on'
sequence:
# TODO: Add script to shutdown octoprint and pi before turning POE switch off
- service: switch.turn_off
entity_id: switch.octopi
- alias: octopi_off
conditions:
condition: state
entity_id: switch.octopi
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.octopi