mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
bump wemo node
slight tidy of readme
This commit is contained in:
parent
d9ea55d3b2
commit
1ea7885b58
@ -19,18 +19,16 @@ The output node switches a socket, a light or group of lights on or off
|
|||||||
This should be backward compatible with the pervious version of this node but will benefit
|
This should be backward compatible with the pervious version of this node but will benefit
|
||||||
from opening the config dialog and selecting the node you want.
|
from opening the config dialog and selecting the node you want.
|
||||||
|
|
||||||
The node accepts the following `msg.payload` inputs
|
The node accepts the following `msg.payload` as input
|
||||||
|
|
||||||
* A single value
|
* A single value
|
||||||
* Accepted values:
|
* String : `on`/`off`
|
||||||
* Strings `on`/`off`
|
* Integer : `1`/`0`
|
||||||
* Integers `1`/`0`
|
* Boolean : `true`/`false`
|
||||||
* Boolean `true`/`false`
|
|
||||||
* Example:
|
|
||||||
```
|
* A JSON Object as below (lights only and color control is still work in the progress)
|
||||||
off
|
|
||||||
```
|
|
||||||
* A JSON Object like this (lights only & color control is still work in the progress)
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
state: 1,
|
state: 1,
|
||||||
@ -40,6 +38,8 @@ off
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note**: Currently any invalid value is treated as an `off` command.
|
||||||
|
|
||||||
## Input Node
|
## Input Node
|
||||||
|
|
||||||
The new input node is now based on uPnP notifications instead of polling. This means messages
|
The new input node is now based on uPnP notifications instead of polling. This means messages
|
||||||
@ -59,7 +59,7 @@ The output varies depending on the type of device but examples for sockets look
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
And a lightblub can look like this:
|
And a lightbulb can look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-node-wemo",
|
"name": "node-red-node-wemo",
|
||||||
"version": "0.1.14",
|
"version": "0.1.15",
|
||||||
"description": "Input and Output nodes for Belkin WeMo devices",
|
"description": "Input and Output nodes for Belkin WeMo devices",
|
||||||
"repository": "https://github.com/node-red/node-red-nodes/tree/master/hardware",
|
"repository": "https://github.com/node-red/node-red-nodes/tree/master/hardware",
|
||||||
"main": "WeMoNG.js",
|
"main": "WeMoNG.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user