1
0
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:
Dave Conway-Jones 2019-07-02 20:17:43 +01:00
parent d9ea55d3b2
commit 1ea7885b58
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 29 additions and 29 deletions

View File

@ -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
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
* Accepted values:
* Strings `on`/`off`
* Integers `1`/`0`
* Boolean `true`/`false`
* Example:
```
off
```
* A JSON Object like this (lights only & color control is still work in the progress)
* String : `on`/`off`
* Integer : `1`/`0`
* Boolean : `true`/`false`
* A JSON Object as below (lights only and color control is still work in the progress)
```
{
state: 1,
@ -40,6 +38,8 @@ off
}
```
**Note**: Currently any invalid value is treated as an `off` command.
## Input Node
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:
```
{

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-wemo",
"version": "0.1.14",
"version": "0.1.15",
"description": "Input and Output nodes for Belkin WeMo devices",
"repository": "https://github.com/node-red/node-red-nodes/tree/master/hardware",
"main": "WeMoNG.js",