From fe13ddb7f4c6953210d812bb3a15879653180f2c Mon Sep 17 00:00:00 2001 From: Claudius Ellsel Date: Sat, 16 Feb 2019 09:02:51 +0100 Subject: [PATCH] =?UTF-8?q?[yeelight]=20Fix=20typo=20in=20readme=20and=20a?= =?UTF-8?q?dd=20example=20for=20switch=20on=20color=20cha=E2=80=A6=20(#488?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix typo in readme and add example for switch on color channel * Add duration parameter information Signed-off-by: Claudius Ellsel (github: claell) Signed-off-by: Pshatsillo --- .../binding/org.openhab.binding.yeelight/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/addons/binding/org.openhab.binding.yeelight/README.md b/addons/binding/org.openhab.binding.yeelight/README.md index 1b41978c1aa58..8277faf9db2d7 100644 --- a/addons/binding/org.openhab.binding.yeelight/README.md +++ b/addons/binding/org.openhab.binding.yeelight/README.md @@ -22,11 +22,12 @@ Yeelight smart LED devices announce themselves on the network through UPnP, so t ## Thing Configuration -All Yeelight things require the `deviceId` from the device as a configuration parameter: +All Yeelight things require the `deviceId` from the device as a configuration parameter. This table shows all available parameters: -| Parameter | Values | Mandatory | -|---------------------|-------------------------------------------|-----------| -| deviceId | ID of the Yeelight device | Yes | +| Parameter | Values | Mandatory | +|---------------------|------------------------------------------------|-----------| +| deviceId | ID of the Yeelight device | Yes | +| duration | Duration for changing between different states | No | ## Channels @@ -36,18 +37,19 @@ All devices support some of the following channels: |--------|------|------| |`brightness` | `Dimmer` | This channel supports adjusting the brightness value, it is available on `dolphin` and `ceiling`.| |`color` | `Color` | This channel supports color control, it is available on `wonder` and `stripe`.| -|`colorTemperature` | `Dimmer` | This channel supports adjusting the color temperature, it is available on `wonder` and `stripe` and `ceiling.| +|`colorTemperature` | `Dimmer` | This channel supports adjusting the color temperature, it is available on `wonder` and `stripe` and `ceiling`.| ## Full Example Things: ``` -Thing yeelight:stripe:1 [ deviceId="0x000000000321a1bc" ] +Thing yeelight:stripe:1 [ deviceId="0x000000000321a1bc", duration=1000 ] ``` Items: ``` Color YeelightLEDColor { channel="yeelight:stripe:1:color" } +Switch YeelightLEDSwitch { channel="yeelight:stripe:1:color" } ```