File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ title: Flasher player
5
5
# Flasher player
6
6
7
7
8
- The * flasher player* is a
9
- [ config player] ( index.md )
10
- that's used to flash lights.
8
+ The * flasher player* is a [ config player] ( index.md ) that's used to flash lights.
11
9
12
10
## Usage in config files
13
11
23
21
24
22
See [ flasher_player:] ( ../config/flasher_player.md ) for config
25
23
details.
24
+
25
+ ## Examples
26
+
27
+ Simple flasher behavior on a [ switch_active] ( ../events/switch_active.md ) event with default length and color:
28
+
29
+ ``` yaml
30
+ flasher_player :
31
+ my_switch_active : my_light
32
+ ` ` `
33
+
34
+ Flasher with customized color and timing:
35
+
36
+ ` ` ` yaml
37
+ flasher_player :
38
+ my_second_switch_active :
39
+ my_second_light :
40
+ color : red
41
+ ms : 300ms
42
+ ` ` `
43
+
44
+ Multiple flashers triggered by a single event:
45
+
46
+ ` ` ` yaml
47
+ flasher_player :
48
+ my_trigger_event :
49
+ my_double_flasher_light_1 :
50
+ color : blue
51
+ ms : 250ms
52
+ my_double_flasher_light_2 :
53
+ color : green
54
+ ms : 250ms
55
+ ` ` `
You can’t perform that action at this time.
0 commit comments