We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2617026 commit a9ad754Copy full SHA for a9ad754
source/_components/light.flux_led.markdown
@@ -54,7 +54,7 @@ light:
54
automatic_add: True
55
```
56
57
-Will add two lights with given name:
+Will add two lights with given name and create an automation rule to randomly set color each 45 seconds:
58
59
```yaml
60
light:
@@ -65,5 +65,15 @@ light:
65
name: flux_lamppost
66
192.168.0.109:
67
name: flux_living_room_lamp
68
-```
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