diff --git a/hardware/wemo/README.md b/hardware/wemo/README.md
index cbd7867a..7adf65ad 100644
--- a/hardware/wemo/README.md
+++ b/hardware/wemo/README.md
@@ -16,21 +16,19 @@ Run the following command in your Node-RED user directory - typically `~/.node-r
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.
-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,10 +38,12 @@ 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
-will only be set when an actual change occurs in on the device. This means the node will not
+will only be set when an actual change occurs in on the device. This means the node will not
send regular no-change messages.
The output varies depending on the type of device but examples for sockets look like this:
@@ -54,21 +54,21 @@ The output varies depending on the type of device but examples for sockets look
"state": "1",
"sid": "uuid:e2c4586c-1dd1-11b2-8f61-b535035ae35d",
"type": "socket",
- "name": "Bedroom Switch",
- "id": "221448K1100085"
+ "name": "Bedroom Switch",
+ "id": "221448K1100085"
}
```
-And a lightblub can look like this:
+And a lightbulb can look like this:
```
{
- "raw": "\n\n<?xml version="1.0" encoding="utf-8"?><StateEvent><DeviceID\navailable="YES">94103EA2B27803ED</DeviceID><CapabilityId>10006</CapabilityId><Value>1</Value></StateEvent>\n\n\n\n\n\r",
- "id": "94103EA2B27803ED",
- "capability": "10006",
- "value": "1",
- "sid": "uuid:e2e5739e-1dd1-11b2-943d-c238ce2bad17",
- "type": "light",
+ "raw": "\n\n<?xml version="1.0" encoding="utf-8"?><StateEvent><DeviceID\navailable="YES">94103EA2B27803ED</DeviceID><CapabilityId>10006</CapabilityId><Value>1</Value></StateEvent>\n\n\n\n\n\r",
+ "id": "94103EA2B27803ED",
+ "capability": "10006",
+ "value": "1",
+ "sid": "uuid:e2e5739e-1dd1-11b2-943d-c238ce2bad17",
+ "type": "light",
"name": "Bedroom"
}
```
@@ -77,12 +77,12 @@ Insight
```
{
- "raw": "\n\n8|1454271649|301|834|56717|1209600|8|1010|638602|12104165\n\n\n\n\r",
- "state": "8",
- "power": 1.01,
- "sid": "uuid:ea808ecc-1dd1-11b2-9579-8e5c117d479e",
- "type": "socket",
- "name": "WeMo Insight",
- "id": "221450K1200F5C"
+ "raw": "\n\n8|1454271649|301|834|56717|1209600|8|1010|638602|12104165\n\n\n\n\r",
+ "state": "8",
+ "power": 1.01,
+ "sid": "uuid:ea808ecc-1dd1-11b2-9579-8e5c117d479e",
+ "type": "socket",
+ "name": "WeMo Insight",
+ "id": "221450K1200F5C"
}
```
diff --git a/hardware/wemo/package.json b/hardware/wemo/package.json
index e2212ed9..50120c12 100644
--- a/hardware/wemo/package.json
+++ b/hardware/wemo/package.json
@@ -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",