Skip to content

Commit

Permalink
[yeelight] Fix typo in readme and add example for switch on color cha… (
Browse files Browse the repository at this point in the history
openhab#4887)

* Fix typo in readme and add example for switch on color channel 
* Add duration parameter information

Signed-off-by: Claudius Ellsel <[email protected]> (github: claell)
Signed-off-by: Pshatsillo <[email protected]>
  • Loading branch information
claell authored and Pshatsillo committed Jun 19, 2019
1 parent 5eff49b commit fe13ddb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions addons/binding/org.openhab.binding.yeelight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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" }
```

0 comments on commit fe13ddb

Please sign in to comment.