-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
95 lines (91 loc) · 2.28 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Flashing loop1, calls Flashing loop2
flash_light_loop1:
alias: Flash Light Loop 1
sequence:
- service: light.turn_off
data:
entity_id: light.breakfast_bar_1
- service: light.turn_off
data:
entity_id: light.breakfast_bar_2
- service: light.turn_off
data:
entity_id: light.breakfast_bar_3
- delay: 1
- service: light.turn_on
data:
entity_id: light.breakfast_bar_1
rgb_color: [255, 0, 0]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_2
rgb_color: [255, 0, 0]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_3
rgb_color: [255, 0, 0]
- delay: 1
- service: script.turn_on
entity_id: script.flash_light_loop2
# Flashing loop2, calls back to Flashing loop1
flash_light_loop2:
alias: Flash Light Loop 2
sequence:
- service: light.turn_off
data:
entity_id: light.breakfast_bar_1
- service: light.turn_off
data:
entity_id: light.breakfast_bar_2
- service: light.turn_off
data:
entity_id: light.breakfast_bar_3
- delay: 1
- service: light.turn_on
data:
entity_id: light.breakfast_bar_1
rgb_color: [0, 0, 255]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_2
rgb_color: [0, 0, 255]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_3
rgb_color: [0, 0, 255]
- delay: 1
- service: script.turn_on
entity_id: script.flash_light_loop1
# Turn the flashing on
flash_light_on:
alias: Flash Light Turn On
sequence:
- service: script.turn_on
entity_id: script.flash_light_loop1
# Turn the flashing off
flash_light_off:
alias: Flash Light Turn Off
sequence:
- service: script.turn_off
entity_id: script.flash_light_loop1
- service: script.turn_off
entity_id: script.flash_light_loop2
- service: light.turn_on
data:
entity_id: light.breakfast_bar_1
rgb_color: [255, 255, 255]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_2
rgb_color: [255, 255, 255]
- service: light.turn_on
data:
entity_id: light.breakfast_bar_3
rgb_color: [255, 255, 255]
tester:
alias: tester
sequence:
- service: light.turn_on
data:
entity_id: light.breakfast_bar_2
rgb_color: [0, 255, 0]