From 3a0a511e22fefea0971af1d729657d1e2efd6881 Mon Sep 17 00:00:00 2001 From: pakwan Date: Mon, 22 Jun 2020 14:59:06 +0200 Subject: [PATCH] Yeelight: Minimum brightness incorrect (#13216) The minimum brightness when using yeelight transitions is 1 and not 0. This can be seen in the python-yeelight docs (https://yeelight.readthedocs.io/en/stable/yeelight.html#flow-objects) on which this seems to be based. Entering 0 as brightness results in the following error on my machine: Unable to set scene: {'code': -5000, 'message': 'general error'} --- source/_integrations/yeelight.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_integrations/yeelight.markdown b/source/_integrations/yeelight.markdown index 105c300ae1e..91e93ffc265 100644 --- a/source/_integrations/yeelight.markdown +++ b/source/_integrations/yeelight.markdown @@ -266,9 +266,9 @@ Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransitio 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 (%). +- 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 1-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 1-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 1-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).