mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Added example for Flux Led to use effect:random (#868)
* Added example for Flux Led to use effect:random * Modified descriptive text
This commit is contained in:
parent
2617026e58
commit
a9ad754562
@ -54,7 +54,7 @@ light:
|
|||||||
automatic_add: True
|
automatic_add: True
|
||||||
```
|
```
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
light:
|
light:
|
||||||
@ -65,5 +65,15 @@ light:
|
|||||||
name: flux_lamppost
|
name: flux_lamppost
|
||||||
192.168.0.109:
|
192.168.0.109:
|
||||||
name: flux_living_room_lamp
|
name: flux_living_room_lamp
|
||||||
```
|
|
||||||
|
|
||||||
|
automation:
|
||||||
|
random_flux_living_room_lamp:
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
seconds: '/45'
|
||||||
|
action:
|
||||||
|
service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: light.flux_living_room_lamp
|
||||||
|
effect: random
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user