Skip to content

Commit 767f05c

Browse files
committed
update flasher_player config player reference with examples
1 parent c9a1d93 commit 767f05c

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

docs/config_players/flasher_player.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ title: Flasher player
55
# Flasher player
66

77

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.
119

1210
## Usage in config files
1311

@@ -23,3 +21,35 @@ step.
2321

2422
See [flasher_player:](../config/flasher_player.md) for config
2523
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+
```

0 commit comments

Comments
 (0)