You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
[Node-RED](http://nodered.org) nodes to control [MiHome/Xiaomi Yeelights](https://www.yeelight.com/) from your smart home, somewhat [API compatible with node-red-contrib-node-hue nodes](https://github.com/jdomeij/node-red-contrib-node-hue#input-node).
12
12
13
+
13
14
## Install
14
15
15
16
Run the following command in your Node-RED user directory – typically `~/.node-red`:
@@ -24,6 +25,7 @@ Provides two palette nodes – one to send control commands to a Yeelight, and o
@@ -34,6 +36,7 @@ Sets the state of the selected Yeelight device.
34
36
| :---| :---|
35
37
|`on`| Sets the `on` state where the value is `true` or `false`|
36
38
|`bri`| Sets the brightness value from `0` to `255`|
39
+
|`ct`| Sets the color temperature value in Kelvin from `1700` to `6500`|
37
40
|`hue`| Sets the hue value from `0` to `65535`|
38
41
|`sat`| Sets the saturation value from `0` to `255`|
39
42
|`hex`| Sets the rgb value from `#00000` to `#FFFFFF`|
@@ -57,13 +60,18 @@ Sets the state of the selected Yeelight device.
57
60
"hex": "#AA00CC",
58
61
}
59
62
```
60
-
The node supports sending [hex values](http://htmlcolorcodes.com/) and [HSV values](https://alloyui.com/examples/color-picker/hsv).
63
+
```JSON
64
+
{
65
+
"ct": 2200,
66
+
}
67
+
```
68
+
The node supports sending [color temperature values](http://www.erco.com/service/rgbw/), [hex values](http://htmlcolorcodes.com/) and [HSV values](https://alloyui.com/examples/color-picker/hsv).
61
69
The brightness value will always have to be provided separately and will not be deducted from e.g. a hex value's brightness component.
62
70
63
-
64
71
##### References
65
72
This node's input payload structure is based on [node-red-contrib-node-hue](https://github.com/jdomeij/node-red-contrib-node-hue#input-node), which is based on [Node Hue API](https://github.com/peter-murray/node-hue-api#lightstate-options).
66
73
74
+
67
75
### Input node
68
76
69
77
Returns the current state of the selected Yeelight device.
@@ -106,6 +114,7 @@ Additionally, a fresh state can be requested from the connected Yeelight by send
106
114
The `raw` property of `msg.payload` contains the raw state information retrieved from the Yeelight for advanced usage.
107
115
Note that value scales are not compatible with _node-red-contrib-node-hue_, and that `hue` value and `rgb` value will not match since only the correct color per `color_mode` is returned by the lamp.
108
116
117
+
109
118
### Configuration node
110
119
111
120
Configures a Yeelight connection to one light in the local network.
0 commit comments