From ffd1482acf38126984fb9340755f5e26a9c26a48 Mon Sep 17 00:00:00 2001 From: sparkydave1981 Date: Fri, 8 Feb 2019 23:29:56 +0800 Subject: [PATCH] Update light.yeelight.markdown (#8446) Please see additional explanations on the usage of the custom_effects --- source/_components/light.yeelight.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/light.yeelight.markdown b/source/_components/light.yeelight.markdown index 81be8302ab8..9e6ca94dcae 100644 --- a/source/_components/light.yeelight.markdown +++ b/source/_components/light.yeelight.markdown @@ -200,6 +200,11 @@ This example shows how you can add your custom effects in your configuration. Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition`. + where the array values are as per the following: + - RGBTransition: [red, green, blue, duration, brightness] with red / green / blue being an integer between 0 and 255, duration being in milliseconds (minimum of 50) and final brightness to transition to 0-100 (%) + - HSVTransition: [hue, saturation, duration, brightness] with hue being an integer between 0 and 359, saturation 0 -100, duration in milliseconds (minimum 50) and final brightness 0-100 (%) + - TemperatureTransition: [temp, duration, brightness] with temp being the final color temperature between 1700 and 6500, duration in milliseconds (minimum 50) and final brightness to transition to 0-100 (%) + - SleepTransition: [duration] with duration being in integer for effect time in milliseconds (minimum 50) More info about transitions and their expected parameters can be found in [python-yeelight documentation](https://yeelight.readthedocs.io/en/stable/flow.html).