Skip to content

Commit a9ad754

Browse files
tchellomellofabaff
authored andcommitted
Added example for Flux Led to use effect:random (home-assistant#868)
* Added example for Flux Led to use effect:random * Modified descriptive text
1 parent 2617026 commit a9ad754

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

source/_components/light.flux_led.markdown

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ light:
5454
automatic_add: True
5555
```
5656
57-
Will add two lights with given name:
57+
Will add two lights with given name and create an automation rule to randomly set color each 45 seconds:
5858
5959
```yaml
6060
light:
@@ -65,5 +65,15 @@ light:
6565
name: flux_lamppost
6666
192.168.0.109:
6767
name: flux_living_room_lamp
68-
```
6968

69+
automation:
70+
random_flux_living_room_lamp:
71+
trigger:
72+
platform: time
73+
seconds: '/45'
74+
action:
75+
service: light.turn_on
76+
data:
77+
entity_id: light.flux_living_room_lamp
78+
effect: random
79+
```

0 commit comments

Comments
 (0)