From a9ad7545625a3cbce93c57f412e68c6582b96c51 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Tue, 30 Aug 2016 05:51:56 -0400 Subject: [PATCH] Added example for Flux Led to use effect:random (#868) * Added example for Flux Led to use effect:random * Modified descriptive text --- source/_components/light.flux_led.markdown | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/_components/light.flux_led.markdown b/source/_components/light.flux_led.markdown index 32ab0808cff..7fce612f3a5 100644 --- a/source/_components/light.flux_led.markdown +++ b/source/_components/light.flux_led.markdown @@ -54,7 +54,7 @@ light: 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 light: @@ -65,5 +65,15 @@ light: name: flux_lamppost 192.168.0.109: 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 +```