Skip to content

Commit

Permalink
Merge pull request #57 from zwave-js/dev
Browse files Browse the repository at this point in the history
3.6.0
  • Loading branch information
marcus-j-davies authored May 26, 2021
2 parents 3acf78a + 81eae6e commit b0a3f65
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# node-red-contrib-zwave-js Change Log

- 3.6.0
- Added ability to Keep Nodes Awake using a controller method of **KeepNodeAwake**
- Added Keep Awake Status in **NODE_LIST**
- Bumped Z-Wave JS to 7.6.0

- 3.5.0 **Possible Breaking Change**
- Added support for **User Code** CC to Managed mode
- Added support for **Alarm Sensor** CC to Managed mode
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Whatever your poison, the node will inject the following events, into your flow.
| ALL_ASSOCIATIONS_REMOVED | The source Node ID | | All Associations Were Removed |
| VALUE_DB | "N/A" | A Structured Value DB object | Response to GetValueDB |
| NODE_NEIGHBORS | The source Node ID | Array of Node IDs | Response to GetNodeNeighbors |
| NODE_KEEP_AWAKE | The source Node ID | Bool : Keep Awake Status | Response to KeepNodeAwake |
And such event(s) will look like this.
Expand Down Expand Up @@ -169,6 +170,7 @@ Some Association methods require an Object, these are detailed at the bottom.
| Controller | SetNodeName | [Node ID: Number, Node Name: String] |
| Controller | SetNodeLocation | [Node ID: Number, Node Location: String] |
| Controller | GetNodeNeighbors | [Node ID: Number] |
| Controller | KeepNodeAwake | [Node ID: Number, Bool] |
| Associations | GetAssociationGroups | [**AssociationAddress**: Object] |
| Associations | GetAllAssociationGroups | [Node ID: Number] |
| Associations | GetAssociations | [**AssociationAddress**: Object] |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "node-red-contrib-zwave-js",
"version": "3.5.0",
"version": "3.6.0",
"license": "MIT",
"description": "An extremely easy to use, zero dependency and feature rich Z-Wave node for Node Red, based on Z-Wave JS.",
"dependencies": {
"serialport": "9.0.8",
"zwave-js": "7.5.2",
"zwave-js": "7.6.0",
"winston": "3.3.3"
},
"keywords": [
Expand Down
10 changes: 9 additions & 1 deletion zwave-js/zwave-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,12 +714,20 @@ module.exports = function (RED) {
neighbors: N.neighbors,
deviceConfig: N.deviceConfig,
isControllerNode: N.isControllerNode(),
supportsBeaming: N.supportsBeaming
supportsBeaming: N.supportsBeaming,
keepAwake: N.keepAwake
})
});
Send(ReturnController, "NODE_LIST", Nodes, send);
break;

case "KeepNodeAwake":
NodeCheck(Params[0])
ReturnNode.id = Params[0]
Driver.controller.nodes.get(Params[0]).keepAwake = Params[1]
Send(ReturnNode, "NODE_KEEP_AWAKE", Params[1], send)
break;

case "GetNodeNeighbors":
NodeCheck(Params[0])
let NIDs = await Driver.controller.getNodeNeighbors(Params[0]);
Expand Down

0 comments on commit b0a3f65

Please sign in to comment.