node-red-contrib-zwave-js 9.1.0 → 9.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +3 -3
- package/resources/UITab/client.js +13 -13
- package/zwave-js/zwave-js.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-zwave-js",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"lodash": "^4.17.21",
|
|
9
9
|
"winston": "^3.17.0",
|
|
10
10
|
"winston-transport": "^4.9.0",
|
|
11
|
-
"zwave-js": "^14.3.
|
|
11
|
+
"zwave-js": "^14.3.7"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"eslint": "^9.15.0",
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"url": "https://github.com/zwave-js/node-red-contrib-zwave-js/issues"
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://github.com/zwave-js/node-red-contrib-zwave-js#readme"
|
|
64
|
-
}
|
|
64
|
+
}
|
|
@@ -2732,7 +2732,7 @@ const ZwaveJsUI = (function () {
|
|
|
2732
2732
|
EnableCritical(true);
|
|
2733
2733
|
$('#NVMProgressLabel').html('Backing up NVM Completed');
|
|
2734
2734
|
|
|
2735
|
-
const Bytes = new Uint8Array(data.payload
|
|
2735
|
+
const Bytes = new Uint8Array(Object.values(data.payload));
|
|
2736
2736
|
const blob = new Blob([Bytes], {
|
|
2737
2737
|
type: 'application/octet-stream'
|
|
2738
2738
|
});
|
|
@@ -2981,12 +2981,12 @@ const ZwaveJsUI = (function () {
|
|
|
2981
2981
|
node.powerSource.level > 90
|
|
2982
2982
|
? (Class = 'fa fa-battery-full')
|
|
2983
2983
|
: node.powerSource.level > 65
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2984
|
+
? (Class = 'fa fa-battery-three-quarters')
|
|
2985
|
+
: node.powerSource.level > 35
|
|
2986
|
+
? (Class = 'fa fa-battery-half')
|
|
2987
|
+
: node.powerSource.level > 10
|
|
2988
|
+
? (Class = 'fa fa-battery-quarter')
|
|
2989
|
+
: (Class = 'fa fa-battery-empty');
|
|
2990
2990
|
|
|
2991
2991
|
if (node.powerSource.isLow) {
|
|
2992
2992
|
i.css({ color: 'red' });
|
|
@@ -3737,12 +3737,12 @@ const ZwaveJsUI = (function () {
|
|
|
3737
3737
|
data.payload.newValue > 90
|
|
3738
3738
|
? (Class = 'fa fa-battery-full')
|
|
3739
3739
|
: data.payload.newValue > 65
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3740
|
+
? (Class = 'fa fa-battery-three-quarters')
|
|
3741
|
+
: data.payload.newValue > 35
|
|
3742
|
+
? (Class = 'fa fa-battery-half')
|
|
3743
|
+
: data.payload.newValue > 10
|
|
3744
|
+
? (Class = 'fa fa-battery-quarter')
|
|
3745
|
+
: (Class = 'fa fa-battery-empty');
|
|
3746
3746
|
BatterySymbol.removeClass();
|
|
3747
3747
|
BatterySymbol.addClass(Class);
|
|
3748
3748
|
BatteryUIElements[data.node].setContent(
|
package/zwave-js/zwave-js.js
CHANGED