From ff10db44166a0f92f0f792a4eb03761876c3ab78 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Tue, 24 Aug 2021 21:13:42 +0100
Subject: [PATCH 01/70] 5.1.0
---
CHANGELOG.md | 11 +++++++++++
package.json | 2 +-
zwave-js/zwave-js.html | 13 ++++++++++++-
zwave-js/zwave-js.js | 29 ++++++++++++++++++++++++-----
4 files changed, 48 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 56187c3d..3c9a7efb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
# node-red-contrib-zwave-js Change Log
+ - 5.1.0
+ **New Features**
+ - Added a new **event-filter** node, allowing node events to be filter with ease.
+ - Added the ability to pipe log messages to a 2nd output pin of the Controller Node
+
+ **Fixes**
+ - Fix phantom parentheses in node location.
+
+ **Changes**
+ - Improvements to S2 paring wizard.
+
- 5.0.0
**Breaking Changes**
diff --git a/package.json b/package.json
index 8ab628c4..b4d384e5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-zwave-js",
- "version": "5.0.0",
+ "version": "5.1.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": {
diff --git a/zwave-js/zwave-js.html b/zwave-js/zwave-js.html
index 96d032dd..579f4e28 100644
--- a/zwave-js/zwave-js.html
+++ b/zwave-js/zwave-js.html
@@ -359,6 +359,7 @@
ackTimeout: { value: undefined },
controllerTimeout: { value: undefined },
sendResponseTimeout: { value: undefined },
+ logLevelPin: { value: "none" },
logLevel: { value: "none" },
logFile: { value: undefined },
logNodeFilter: { value: undefined },
@@ -501,7 +502,17 @@
Z-Wave JS Logging
-
+
+
+
+
+
diff --git a/zwave-js/zwave-js.js b/zwave-js/zwave-js.js
index 205e4ca5..86739b1d 100644
--- a/zwave-js/zwave-js.js
+++ b/zwave-js/zwave-js.js
@@ -447,7 +447,7 @@ module.exports = function (RED) {
const Label = KeyRequirementsLable[strategy];
throw new Error(
'The chosen inclusion strategy require the following keys to be present: ' +
- Label
+ Label
);
}
});
@@ -667,7 +667,7 @@ module.exports = function (RED) {
NodeCheck(Params[0], true);
const Stage =
ZWaveJS.InterviewStage[
- Driver.controller.nodes.get(Params[0]).interviewStage
+ Driver.controller.nodes.get(Params[0]).interviewStage
];
if (Stage !== 'Complete') {
const ErrorMSG =
@@ -1288,20 +1288,20 @@ module.exports = function (RED) {
undefined,
undefined,
'Will retry in ' +
+ RetryTime +
+ 'ms. Attempted: ' +
+ DriverAttempts +
+ ', Max: ' +
+ MaxDriverAttempts
+ );
+ node.error(
+ new Error(
+ 'Driver Failed: Will retry in ' +
RetryTime +
'ms. Attempted: ' +
DriverAttempts +
', Max: ' +
MaxDriverAttempts
- );
- node.error(
- new Error(
- 'Driver Failed: Will retry in ' +
- RetryTime +
- 'ms. Attempted: ' +
- DriverAttempts +
- ', Max: ' +
- MaxDriverAttempts
)
);
InitDriver();
@@ -1474,12 +1474,12 @@ module.exports = function (RED) {
UI.status(
'Healing network ' +
- Math.round(Completed) +
- '%, Skipped:[' +
- Heal_Skipped +
- '], Failed:[' +
- Heal_Failed +
- ']'
+ Math.round(Completed) +
+ '%, Skipped:[' +
+ Heal_Skipped +
+ '], Failed:[' +
+ Heal_Failed +
+ ']'
);
});
@@ -1583,20 +1583,20 @@ module.exports = function (RED) {
undefined,
undefined,
'Will retry in ' +
+ RetryTime +
+ 'ms. Attempted: ' +
+ DriverAttempts +
+ ', Max: ' +
+ MaxDriverAttempts
+ );
+ node.error(
+ new Error(
+ 'Driver failed: Will retry in ' +
RetryTime +
'ms. Attempted: ' +
DriverAttempts +
', Max: ' +
MaxDriverAttempts
- );
- node.error(
- new Error(
- 'Driver failed: Will retry in ' +
- RetryTime +
- 'ms. Attempted: ' +
- DriverAttempts +
- ', Max: ' +
- MaxDriverAttempts
)
);
InitDriver();
From b2e421bfca930cfa9d3b9b220f32b655db7fa971 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sat, 28 Aug 2021 13:54:29 +0100
Subject: [PATCH 26/70] Update event-filter.html
---
zwave-js/event-filter.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/zwave-js/event-filter.html b/zwave-js/event-filter.html
index 5ac27594..dd16a17e 100644
--- a/zwave-js/event-filter.html
+++ b/zwave-js/event-filter.html
@@ -234,5 +234,19 @@
\ No newline at end of file
From 4fd8fa07634f69128522f0d1b3cb445bce057067 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sat, 28 Aug 2021 14:12:52 +0100
Subject: [PATCH 27/70] Update zwave-js.js
---
zwave-js/zwave-js.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/zwave-js/zwave-js.js b/zwave-js/zwave-js.js
index 86739b1d..c4fcf4a6 100644
--- a/zwave-js/zwave-js.js
+++ b/zwave-js/zwave-js.js
@@ -358,7 +358,6 @@ module.exports = function (RED) {
RED.events.off('zwjs:node:command', processMessageEvent);
if (Logger !== undefined) {
Logger.clear();
- Logger = undefined;
}
if (Pin2Transport !== undefined) {
Pin2Transport.destroy();
From 0bb568578bb42c648edcdfaa68ddf0635987bff0 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sat, 28 Aug 2021 14:21:16 +0100
Subject: [PATCH 28/70] Update zwave-js.js
---
zwave-js/zwave-js.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/zwave-js/zwave-js.js b/zwave-js/zwave-js.js
index c4fcf4a6..a21cec3e 100644
--- a/zwave-js/zwave-js.js
+++ b/zwave-js/zwave-js.js
@@ -358,9 +358,14 @@ module.exports = function (RED) {
RED.events.off('zwjs:node:command', processMessageEvent);
if (Logger !== undefined) {
Logger.clear();
+ Logger = undefined;
}
if (Pin2Transport !== undefined) {
Pin2Transport.destroy();
+ Pin2Transport = undefined;
+ }
+ if (FileTransport !== undefined) {
+ FileTransport = undefined;
}
if (done) {
done();
From f4601985aa71f888dda22939e1232f6be3ec0675 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sat, 28 Aug 2021 15:23:41 +0100
Subject: [PATCH 29/70] 5.1.0
---
resources/{FilterNode.PNG => DeviceNode.PNG} | Bin
resources/FillterNode.PNG | Bin 0 -> 9211 bytes
2 files changed, 0 insertions(+), 0 deletions(-)
rename resources/{FilterNode.PNG => DeviceNode.PNG} (100%)
create mode 100644 resources/FillterNode.PNG
diff --git a/resources/FilterNode.PNG b/resources/DeviceNode.PNG
similarity index 100%
rename from resources/FilterNode.PNG
rename to resources/DeviceNode.PNG
diff --git a/resources/FillterNode.PNG b/resources/FillterNode.PNG
new file mode 100644
index 0000000000000000000000000000000000000000..d20ff42775ed133f384b609e7a1ede9b2d48d9e3
GIT binary patch
literal 9211
zcmd71WmFx_(l)%YKycl-yKdZFf?FWCY#>;0cXxNUAR!6CEjYm;NN{%z?!JL{bD#4(
z=dADh`~G-mt?sGruB)!8rl$4shloW-Uvx9}TtvLW77nPQQsF^YZ9N2rDB&H2Ql6%`uodT
z7>X?=sfI;d+Z1dgAp_6cLRGYWfIO&&i2?+6t?~^PeHO(>;niHl_Y7U}+iUk&6|v;(
zbm4Lt{08M?2!
zdFBmFy+rddFAsQm?j%YZ$Z&!QoWvYkA8Kkw`boVdpiMQ32yjC>&tV(MU}#1(VP$+z
z(cQ_c%icwvmdi0_b#a${H!mJa2v{E?iPr=G7SPYRkegs>&~+C=iZki4sSQG_LE3{G
zl)l&|t;@>@3S`pr$hshyz~EeTumyy%bRBfgrFkwu5)@7UK*Z;pC`UK6!SXDYup6Ln
zAMeWKrpWI+K}?;RWIxIZKSvVwxGGL500$9
zNcQ1>y0tg-t6}|N5LyL-I)o&Q+m@x6;6lBbcO1_zYM%8;zxN&ukPI07TJA;#ubS292+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~C0jAGTQE
z&&*S5r*aRs$v2!tOt1~EA)tGlmdK}+td^%a6M{&w-+m1T6|O-mdK3v*XZTVKd@G!t
z89I`gFyz31en)A~RG`FtvqTHJl@eO!3=(As-}OJtu?xsl`2bq+5p^42hKdxVv~A
z1C-Oa{PbP4QP#atd+7O&z#7O>l`j*OmWuqM39Ttocpz!!xMu-vk_GU-njbU~>3aKF
zAsj7#=lz>Tt&0|}y?=Dniwx4bIa**|@;FY?pg-5}&(m=i8GipBn=rysSEIrRtBD;e
zGVO!hXkUZ#PWe8kpP;{^Z4(eX9xyhD#13m%j|}wRAm};=G
zNOBeLpd(}qXc@BmkZVQHQfd~p?5QZiLrRtBS8FUbd1l5WRoc{D$3_XLw
zS=vN3;$EXf1=XU4egEU1LjWy4Ri8a5@n}KA{{JjV&
Date: Sat, 28 Aug 2021 15:26:49 +0100
Subject: [PATCH 30/70] 5.1.0
---
zwave-js/ui/client.js | 14 ++++++------
zwave-js/zwave-js.js | 52 +++++++++++++++++++++----------------------
2 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/zwave-js/ui/client.js b/zwave-js/ui/client.js
index a37eb7f9..2045be45 100644
--- a/zwave-js/ui/client.js
+++ b/zwave-js/ui/client.js
@@ -15,7 +15,7 @@ let DriverReady = false;
const ZwaveJsUI = (function () {
function modalAlert(message, title) {
const Buts = {
- Ok: function () { }
+ Ok: function () {}
};
modalPrompt(message, title, Buts);
}
@@ -1752,12 +1752,12 @@ const ZwaveJsUI = (function () {
valueId.propertyKeyName ??
valueId.propertyName ??
valueId.property +
- (valueId.propertyKey !== undefined
- ? `[0x${valueId.propertyKey
- .toString(16)
- .toUpperCase()
- .padStart(2, '0')}]`
- : '');
+ (valueId.propertyKey !== undefined
+ ? `[0x${valueId.propertyKey
+ .toString(16)
+ .toUpperCase()
+ .padStart(2, '0')}]`
+ : '');
$('')
.addClass('zwave-js-node-property-name')
.text(label)
diff --git a/zwave-js/zwave-js.js b/zwave-js/zwave-js.js
index a21cec3e..d375c519 100644
--- a/zwave-js/zwave-js.js
+++ b/zwave-js/zwave-js.js
@@ -451,7 +451,7 @@ module.exports = function (RED) {
const Label = KeyRequirementsLable[strategy];
throw new Error(
'The chosen inclusion strategy require the following keys to be present: ' +
- Label
+ Label
);
}
});
@@ -671,7 +671,7 @@ module.exports = function (RED) {
NodeCheck(Params[0], true);
const Stage =
ZWaveJS.InterviewStage[
- Driver.controller.nodes.get(Params[0]).interviewStage
+ Driver.controller.nodes.get(Params[0]).interviewStage
];
if (Stage !== 'Complete') {
const ErrorMSG =
@@ -1292,20 +1292,20 @@ module.exports = function (RED) {
undefined,
undefined,
'Will retry in ' +
- RetryTime +
- 'ms. Attempted: ' +
- DriverAttempts +
- ', Max: ' +
- MaxDriverAttempts
- );
- node.error(
- new Error(
- 'Driver Failed: Will retry in ' +
RetryTime +
'ms. Attempted: ' +
DriverAttempts +
', Max: ' +
MaxDriverAttempts
+ );
+ node.error(
+ new Error(
+ 'Driver Failed: Will retry in ' +
+ RetryTime +
+ 'ms. Attempted: ' +
+ DriverAttempts +
+ ', Max: ' +
+ MaxDriverAttempts
)
);
InitDriver();
@@ -1478,12 +1478,12 @@ module.exports = function (RED) {
UI.status(
'Healing network ' +
- Math.round(Completed) +
- '%, Skipped:[' +
- Heal_Skipped +
- '], Failed:[' +
- Heal_Failed +
- ']'
+ Math.round(Completed) +
+ '%, Skipped:[' +
+ Heal_Skipped +
+ '], Failed:[' +
+ Heal_Failed +
+ ']'
);
});
@@ -1587,20 +1587,20 @@ module.exports = function (RED) {
undefined,
undefined,
'Will retry in ' +
- RetryTime +
- 'ms. Attempted: ' +
- DriverAttempts +
- ', Max: ' +
- MaxDriverAttempts
- );
- node.error(
- new Error(
- 'Driver failed: Will retry in ' +
RetryTime +
'ms. Attempted: ' +
DriverAttempts +
', Max: ' +
MaxDriverAttempts
+ );
+ node.error(
+ new Error(
+ 'Driver failed: Will retry in ' +
+ RetryTime +
+ 'ms. Attempted: ' +
+ DriverAttempts +
+ ', Max: ' +
+ MaxDriverAttempts
)
);
InitDriver();
From 889d40cea549d29f79bf47a68d45c4ddc5f08238 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 29 Aug 2021 17:38:35 +0100
Subject: [PATCH 31/70] Update event-filter.js
---
zwave-js/event-filter.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/zwave-js/event-filter.js b/zwave-js/event-filter.js
index 8353746a..495888f0 100644
--- a/zwave-js/event-filter.js
+++ b/zwave-js/event-filter.js
@@ -21,7 +21,7 @@ module.exports = function (RED) {
if (Filter.events.includes(msg.payload.event)) {
if (Filter.valueIds.length > 0) {
for (const ValueID of Filter.valueIds) {
- if (IsValueIDMatch(ValueID, msg)) {
+ if (IsValueIDMatch(ValueID, msg, msg.payload.event === 'GET_VALUE_RESPONSE')) {
msg.filter = Filter;
SendingArray[ArrayIndex] = msg;
send(SendingArray);
@@ -48,12 +48,12 @@ module.exports = function (RED) {
}
}
- function IsValueIDMatch(ValueID, MSG) {
+ function IsValueIDMatch(ValueID, MSG, Response) {
let Root = MSG.payload.object;
- if (Root.hasOwnProperty('valueId') && Root.hasOwnProperty('response')) {
+ if(Response){
Root = MSG.payload.object.valueId;
}
-
+
let ValueIDKeys = Object.keys(ValueID);
const MSGKeys = Object.keys(Root);
From f78dc1657c6ae9d9dfc428607cb1bfb8d3ff24d4 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 29 Aug 2021 21:07:18 +0100
Subject: [PATCH 32/70] 5.1.0
---
resources/{FillterNode.PNG => FilterNode.PNG} | Bin
1 file changed, 0 insertions(+), 0 deletions(-)
rename resources/{FillterNode.PNG => FilterNode.PNG} (100%)
diff --git a/resources/FillterNode.PNG b/resources/FilterNode.PNG
similarity index 100%
rename from resources/FillterNode.PNG
rename to resources/FilterNode.PNG
From c9884d4f5cb39e5f1362a7a8d81e99c54a2281e3 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Mon, 30 Aug 2021 13:43:50 +0100
Subject: [PATCH 33/70] 5.1.0
---
zwave-js/event-filter.html | 22 ++++++++++++++++------
zwave-js/event-filter.js | 28 ++++++++++++++++++++++++++++
zwave-js/ui/client.js | 8 ++++++--
3 files changed, 50 insertions(+), 8 deletions(-)
diff --git a/zwave-js/event-filter.html b/zwave-js/event-filter.html
index dd16a17e..2dbb69ed 100644
--- a/zwave-js/event-filter.html
+++ b/zwave-js/event-filter.html
@@ -23,6 +23,7 @@
oneditsave: DoSave,
oneditcancel: function(){
Changed = false;
+ ActiveFilter = undefined;
},
outputLabels: function(index) {
return this.filters[index].name
@@ -182,19 +183,28 @@
ItemData.strict = El.find(".data-event-Endpoint").prop('checked');
this.filters.push(ItemData);
}
+
+ ActiveFilter = undefined;
}
function AddValueIDToFilter(ValueID){
- const VIDs = ActiveFilter.data('filter').valueIds;
+ if(ActiveFilter !== undefined){
+ const VIDs = ActiveFilter.data('filter').valueIds;
- VIDs.push(ValueID);
- const Count = VIDs.length
+ VIDs.push(ValueID);
+ const Count = VIDs.length
- ActiveFilter.find(".data-vid-count").html(Count);
- ActiveFilter.find('.data-valueid-editor').typedInput('value',JSON.stringify(VIDs));
+ ActiveFilter.find(".data-vid-count").html(Count);
+ ActiveFilter.find('.data-valueid-editor').typedInput('value',JSON.stringify(VIDs));
- Changed = true;
+ Changed = true;
+ return true;
+ }else{
+ return false;
+ }
+
+
}
diff --git a/zwave-js/event-filter.js b/zwave-js/event-filter.js
index 495888f0..0cb9246d 100644
--- a/zwave-js/event-filter.js
+++ b/zwave-js/event-filter.js
@@ -24,6 +24,11 @@ module.exports = function (RED) {
if (IsValueIDMatch(ValueID, msg, msg.payload.event === 'GET_VALUE_RESPONSE')) {
msg.filter = Filter;
SendingArray[ArrayIndex] = msg;
+ node.status({
+ fill: 'green',
+ shape: 'dot',
+ text: 'Last match: '+Filter.name
+ });
send(SendingArray);
Matched = true;
break;
@@ -35,13 +40,36 @@ module.exports = function (RED) {
} else {
msg.filter = Filter;
SendingArray[ArrayIndex] = msg;
+ node.status({
+ fill: 'green',
+ shape: 'dot',
+ text: 'Last match: '+Filter.name
+ });
+ Matched = true;
send(SendingArray);
break;
}
}
}
}
+
+ if(!Matched){
+ node.status({
+ fill: 'yellow',
+ shape: 'dot',
+ text: 'No match'
+ });
+ }
}
+ else{
+ node.status({
+ fill: 'red',
+ shape: 'dot',
+ text: 'Not a ZWave message'
+ });
+ }
+
+
if (done) {
done();
diff --git a/zwave-js/ui/client.js b/zwave-js/ui/client.js
index 2045be45..843ea6cd 100644
--- a/zwave-js/ui/client.js
+++ b/zwave-js/ui/client.js
@@ -1779,8 +1779,12 @@ const ZwaveJsUI = (function () {
minHeight: 75,
buttons: {
'Add To Filter Set': function () {
- AddValueIDToFilter(data.valueId);
- $(this).dialog('destroy');
+ if(AddValueIDToFilter(data.valueId)){
+ $(this).dialog('destroy');
+ }else{
+ modalAlert('Please activate the target filter set.','No Active Filter Set')
+ }
+
},
Close: function () {
$(this).dialog('destroy');
From 4903cf70dafbee6b570157c85bbc5c4a78662a76 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Mon, 30 Aug 2021 19:21:44 +0100
Subject: [PATCH 34/70] Update event-filter.html
---
zwave-js/event-filter.html | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/zwave-js/event-filter.html b/zwave-js/event-filter.html
index 2dbb69ed..afda81ee 100644
--- a/zwave-js/event-filter.html
+++ b/zwave-js/event-filter.html
@@ -1,6 +1,7 @@
+
-
+
+
\ No newline at end of file
+
+
diff --git a/zwave-js/zwave-device.html b/zwave-js/zwave-device.html
index 649841cb..f5dbb413 100644
--- a/zwave-js/zwave-device.html
+++ b/zwave-js/zwave-device.html
@@ -1,342 +1,320 @@
\ No newline at end of file
+ A Z-Wave device node.
+
+
+ Input:
+ A payload object containing a command to send.
+ params will be dependant on the type of command you are sending.
+
+ {
+ mode: "CCAPI",
+ cc: "Configuration",
+ method: "set",
+ params: [0x18,0x03,1]
+ }
+
+
+
+
+ Output:
+ A payload containing an event that has occured within the zwave network.
+ The contents of object is dependant on the event.
+
+ {
+ event: "VALUE_UPDATED",
+ timestamp: "23-12-2020T12:23:23+000",
+ object: ...
+ }
+
+
+
diff --git a/zwave-js/zwave-js.html b/zwave-js/zwave-js.html
index 247075c0..03d212a5 100644
--- a/zwave-js/zwave-js.html
+++ b/zwave-js/zwave-js.html
@@ -2,689 +2,792 @@
-
-
-
-
+
+
\ No newline at end of file
+ A Z-Wave Controller for node red.
+
+
+ Input:
+ A payload object containing a command.
+ params will be dependant on the type of command you are sending.
+
+ {
+ node: 2,
+ mode: "CCAPI",
+ cc: "Configuration",
+ method: "set",
+ params: [0x18,0x03,1]
+ }
+
+
+
+
+ Output:
+ A payload containing an event that has occured within the zwave network.
+ The contents of object is dependant on the event.
+
+ {
+ node: 2,
+ event: "VALUE_UPDATED",
+ timestamp: "23-12-2020T12:23:23+000",
+ object: ...
+ }
+
+
+
From b0b0a6a75498901fbe90ff57f365dbfb71ee8891 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Fri, 3 Sep 2021 11:14:58 +0100
Subject: [PATCH 45/70] Update event-filter.html
---
zwave-js/event-filter.html | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/zwave-js/event-filter.html b/zwave-js/event-filter.html
index 00d68c8e..f10adcb4 100644
--- a/zwave-js/event-filter.html
+++ b/zwave-js/event-filter.html
@@ -106,9 +106,8 @@
}
$(container).data('data', data);
$(container).click(SetActiveFilter);
- $(container)
- .parent()
- .css({ height: '45px', overflow: 'hidden', minWidth: '400px' });
+ $(container).css({ minWidth: '400px' });
+ $(container).parent().css({ height: '45px', overflow: 'hidden' });
const HTML = `
From e0098a931815570a42204f47702ea3178602e50e Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 12:48:35 +0100
Subject: [PATCH 46/70] Update README.md
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index df208fca..e8a799cd 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,9 @@
![Image](./resources/ReadMe.png)
# node-red-contrib-zwave-js
+
+
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
If you want a fully featured Z-Wave runtime in your node-red instance, look no further.
From b59cee6124ce2df11e7d5fc9d01b226486bbaf6e Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 12:50:02 +0100
Subject: [PATCH 47/70] Update README.md
---
README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e8a799cd..2c935d0e 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
![Image](./resources/ReadMe.png)
# node-red-contrib-zwave-js
-
-
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 5497fbaa0d2c149fad7276f22067e275f6320134 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 12:54:56 +0100
Subject: [PATCH 48/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 2c935d0e..c87efec9 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
![Image](./resources/ReadMe.png)
# node-red-contrib-zwave-js
-
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 346927c67b5c0aae4377b33e0ab769b0ba479deb Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 12:57:09 +0100
Subject: [PATCH 49/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c87efec9..c7fea334 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
![Image](./resources/ReadMe.png)
# node-red-contrib-zwave-js
-
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 7c30fbaed64468d2efd9d651f45f41cd28a07049 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:00:39 +0100
Subject: [PATCH 50/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c7fea334..d37f9f85 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
![Image](./resources/ReadMe.png)
# node-red-contrib-zwave-js
-
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 03df2a8e23adedda28fefc862e7957c894a4a3b8 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:04:59 +0100
Subject: [PATCH 51/70] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index d37f9f85..9cd3880e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
![Image](./resources/ReadMe.png)
+
# node-red-contrib-zwave-js
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 8dced20aceb4baaaf97fb3d67879d8ccc2b2d06d Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:05:50 +0100
Subject: [PATCH 52/70] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 9cd3880e..25c165da 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
![Image](./resources/ReadMe.png)
-# node-red-contrib-zwave-js
+
node-red-contrib-zwave-js
+
From 9e930d0c55b261a637c56d7cf9234519efb289c9 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:06:56 +0100
Subject: [PATCH 53/70] Update README.md
---
README.md | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 25c165da..e8fdb7f9 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,9 @@
![Image](./resources/ReadMe.png)
-
-
node-red-contrib-zwave-js
-
+# node-red-contrib-wave-js
+
-
+
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 17a66b5f0fabe8005233f73169e5515cce89e5ee Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:09:38 +0100
Subject: [PATCH 54/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e8fdb7f9..354029ae 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# node-red-contrib-wave-js
-
+
From 4107886479b41792103d1dfd1fe6457fe6567d66 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:25:02 +0100
Subject: [PATCH 55/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 354029ae..f86240e6 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# node-red-contrib-wave-js
-
+
From 6cd06a62845ccdf5c2d3fcc37b8c5b8b948e09a8 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 13:54:16 +0100
Subject: [PATCH 56/70] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f86240e6..df489d44 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,8 @@
# node-red-contrib-wave-js
-
+
+[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
From ea41133142a25a13b9cdfd1ed172df34b233fe93 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 14:02:38 +0100
Subject: [PATCH 57/70] Update README.md
---
README.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index df489d44..fea07ceb 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,11 @@
# node-red-contrib-wave-js
-
-[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
-
+[![License](https://img.shields.io/npm/l/node-red-contrib-zwave-js)](https://github.com/zwave-js/node-red-contrib-zwave-js/blob/main/LICENSE)
+[![Version](https://img.shields.io/npm/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Node Version](https://img.shields.io/node/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
+[![Maintenance](https://img.shields.io/david/marcus-j-davies/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From be76e28ee94c54d63ca34f63f070377d22fd48c8 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 14:05:03 +0100
Subject: [PATCH 58/70] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fea07ceb..a3ad5fb3 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,8 @@
[![Version](https://img.shields.io/npm/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Node Version](https://img.shields.io/node/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
-[![Maintenance](https://img.shields.io/david/marcus-j-davies/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Maintenance (https://img.shields.io/npms-io/maintenance-score/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Dependencies](https://img.shields.io/david/marcus-j-davies/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
THE most powerful Z-Wave node for node-red based on Z-Wave JS.
From 72e414dff12317acff201b89f4cbff2c55ba4883 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 14:05:54 +0100
Subject: [PATCH 59/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a3ad5fb3..a8fe4e0d 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[![Version](https://img.shields.io/npm/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Node Version](https://img.shields.io/node/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
-[![Maintenance (https://img.shields.io/npms-io/maintenance-score/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Maintenance] (https://img.shields.io/npms-io/maintenance-score/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Dependencies](https://img.shields.io/david/marcus-j-davies/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
From f9c3e5ed0a2051603c460594ee4cb7a329bc4846 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 14:06:19 +0100
Subject: [PATCH 60/70] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a8fe4e0d..c03e38c4 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[![Version](https://img.shields.io/npm/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Node Version](https://img.shields.io/node/v/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/zwave-js/node-red-contrib-zwave-js.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zwave-js/node-red-contrib-zwave-js/context:javascript)
-[![Maintenance] (https://img.shields.io/npms-io/maintenance-score/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
+[![Maintenance](https://img.shields.io/npms-io/maintenance-score/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
[![Dependencies](https://img.shields.io/david/marcus-j-davies/node-red-contrib-zwave-js)](https://www.npmjs.com/package/node-red-contrib-zwave-js)
From 747f820a93611ec8bd1e20c38c9a541ab4086330 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 14:13:32 +0100
Subject: [PATCH 61/70] Update zwave-device.html
---
zwave-js/zwave-device.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zwave-js/zwave-device.html b/zwave-js/zwave-device.html
index f5dbb413..57386c09 100644
--- a/zwave-js/zwave-device.html
+++ b/zwave-js/zwave-device.html
@@ -79,7 +79,7 @@
if (this.filteredNodeId !== undefined) {
// Single
- if (parseInt(this.filteredNodeId) !== NaN) {
+ if (!isNaN(parseInt(this.filteredNodeId))) {
Filter.css('height', '');
Filter.attr('multiple', null);
Filter.val(this.filteredNodeId);
From 5dafb905c60ff5dc5949e5c813e3843dc36d8ef7 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 15:45:52 +0100
Subject: [PATCH 62/70] 5.1.0
---
zwave-js/ui/client.js | 2 +-
zwave-js/zwave-js.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/zwave-js/ui/client.js b/zwave-js/ui/client.js
index b66ab99a..3461f3d2 100644
--- a/zwave-js/ui/client.js
+++ b/zwave-js/ui/client.js
@@ -365,7 +365,7 @@ const ZwaveJsUI = (function () {
_Nodes.push(ND);
});
- if (Neigbhors === undefined) {
+ if (typeof Neigbhors === 'undefined') {
Nodes.forEach((N) => {
if (N.isControllerNode) {
return;
diff --git a/zwave-js/zwave-js.js b/zwave-js/zwave-js.js
index 8ce09002..6e0ee946 100644
--- a/zwave-js/zwave-js.js
+++ b/zwave-js/zwave-js.js
@@ -1190,7 +1190,7 @@ module.exports = function (RED) {
const Lines = [];
Lines.push('[Node: ' + NID + ']');
- if (Value !== undefined) {
+ if (typeof Value !== 'undefined') {
Lines.push('└─[ValueID]');
const OBKeys = Object.keys(Value);
From a8e3393846fbff18e64d3147598a38bc38f7e6f1 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 15:55:01 +0100
Subject: [PATCH 63/70] Update package.json
---
package.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
index fff5cdb7..e04e5b64 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"license": "MIT",
"description": "An extremely powerful, easy to use, zero dependency and feature rich Z-Wave node for Node Red, based on Z-Wave JS.",
"dependencies": {
- "@serialport/bindings": "9.2.0",
- "serialport": "9.2.0",
+ "@serialport/bindings": "9.2.1",
+ "serialport": "9.2.1",
"express": "4.17.1",
"lodash": "4.17.21",
"winston": "3.3.3",
@@ -21,7 +21,7 @@
"npm": ">=6.14.13"
},
"scripts": {
- "preinstall": "npm install @serialport/bindings@9.2.0 --build-from-source && npm install serialport@9.2.0 --build-from-source"
+ "preinstall": "npm install @serialport/bindings@9.2.1 --build-from-source && npm install serialport@9.2.1 --build-from-source"
},
"keywords": [
"node-red",
From 6145d8f220c4d808ffee2082240388c1256afcc2 Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 17:08:31 +0100
Subject: [PATCH 64/70] Update package.json
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index e04e5b64..861eb198 100644
--- a/package.json
+++ b/package.json
@@ -5,9 +5,9 @@
"description": "An extremely powerful, easy to use, zero dependency and feature rich Z-Wave node for Node Red, based on Z-Wave JS.",
"dependencies": {
"@serialport/bindings": "9.2.1",
- "serialport": "9.2.1",
"express": "4.17.1",
"lodash": "4.17.21",
+ "serialport": "9.2.1",
"winston": "3.3.3",
"winston-transport": "4.4.0",
"zwave-js": "8.2.2"
From 8394337f3944dad1c28e144d54b026ac264bd4fa Mon Sep 17 00:00:00 2001
From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com>
Date: Sun, 5 Sep 2021 20:09:05 +0100
Subject: [PATCH 65/70] Update event-filter.html
---
zwave-js/event-filter.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zwave-js/event-filter.html b/zwave-js/event-filter.html
index f10adcb4..15e06303 100644
--- a/zwave-js/event-filter.html
+++ b/zwave-js/event-filter.html
@@ -136,7 +136,7 @@
`;
$(container).html(HTML);
- const Refresh = $('