-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
62 lines (62 loc) · 1.36 KB
/
automations.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
- alias: Xbox on routine
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: switch.xbox
to: 'on'
action:
- service: wake_on_lan.send_magic_packet
data:
mac: !secret tv_mac
- service: media_player.select_source
entity_id: media_player.tv
data:
source: HDMI2
- alias: playstation off when everything off
initial_state: true
trigger:
platform: state
entity_id: group.everything
to: 'off'
action:
- service: media_player.turn_off
entity_id: media_player.playstation_4
- alias: Speakers on routine
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: switch.speakers
to: 'on'
action:
- delay:
seconds: 2
- &volume_up
service: homeassistant.turn_on
entity_id: switch.volume
- &ir_interval
delay:
milliseconds: 100
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval
- <<: *volume_up
- <<: *ir_interval