From ef812d31851809731d72db0d711df1fc4b8061b4 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Mon, 29 Aug 2016 19:53:48 -0400 Subject: [PATCH 1/2] Added example for Flux Led to use effect:random --- 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 32ab0808cff5..4f3afbd565ca 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 randomically 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 +``` From 0a07a7cbda5a22e51bfccd9a8780fb94c9d76076 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Tue, 30 Aug 2016 01:31:16 -0400 Subject: [PATCH 2/2] Modified descriptive text --- source/_components/light.flux_led.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/light.flux_led.markdown b/source/_components/light.flux_led.markdown index 4f3afbd565ca..7fce612f3a5b 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 and create an automation rule to randomically set color each 45 seconds: +Will add two lights with given name and create an automation rule to randomly set color each 45 seconds: ```yaml light: