node-red-contrib-zwave-js 7.2.0-beta.3 → 7.2.0-beta.4

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # node-red-contrib-zwave-js Change Log
2
2
 
3
+ - 7.2.0
4
+
5
+ **New Features**
6
+ - Implemented a Firmware Update Service, that allows to install Firmware on devices that have known updates
7
+ - 2 new event types have been added : **ALIVE**, **DEAD** - these allow you to monitor if a device has been marked dead
8
+ or alive accordingly.
9
+
10
+ **Bug Fixes**
11
+ - Modal alerts are now rendering HTML content once again
12
+ - Missing `normalizedObject.label` for Thermostat devices
13
+
14
+ **Changes**
15
+ - Association Management has been updated, and changes are now applied in batch.
16
+ - For battery operated devices, certain UI actions now ask you to wake up said device before anything is comitted.
17
+ - Bump ZWave JS
18
+ - Bump Winston
19
+ - Bump ESlint
20
+
3
21
  - 7.1.2
4
22
 
5
23
  **Changes**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-zwave-js",
3
- "version": "7.2.0-beta.3",
3
+ "version": "7.2.0-beta.4",
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": {
@@ -484,6 +484,10 @@ class UIServer {
484
484
  }
485
485
 
486
486
  _WireNodeEvents(node) {
487
+ if (node.isControllerNode) {
488
+ return;
489
+ }
490
+
487
491
  // Status
488
492
  node.on('sleep', (node) => {
489
493
  this._SendNodeStatus(node, 'ASLEEP');
@@ -45,6 +45,8 @@ module.exports = function (RED) {
45
45
  const event_ValueAdded = new SanitizedEventName('value added');
46
46
  const event_Wake = new SanitizedEventName('wake up');
47
47
  const event_Sleep = new SanitizedEventName('sleep');
48
+ const event_Dead = new SanitizedEventName('dead');
49
+ const event_Alive = new SanitizedEventName('alive');
48
50
  const event_InterviewStarted = new SanitizedEventName('interview started');
49
51
  const event_InterviewFailed = new SanitizedEventName('interview failed');
50
52
  const event_InterviewCompleted = new SanitizedEventName(
@@ -1674,7 +1676,9 @@ module.exports = function (RED) {
1674
1676
  } else {
1675
1677
  let Name;
1676
1678
  switch (VID.commandClass) {
1677
- case 67: // Thermo Setpoint;
1679
+ // Thermostat Setpoint
1680
+ case 'Thermostat Setpoint':
1681
+ case 67:
1678
1682
  Name = ZWaveJS.getEnumMemberName(
1679
1683
  ZWaveJS.ThermostatSetpointType,
1680
1684
  VID.propertyKey
@@ -1753,6 +1757,8 @@ module.exports = function (RED) {
1753
1757
  'VALUE_UPDATED',
1754
1758
  'SLEEP',
1755
1759
  'WAKE_UP',
1760
+ 'DEAD',
1761
+ 'ALIVE',
1756
1762
  'VALUE_ID_LIST',
1757
1763
  'GET_VALUE_RESPONSE',
1758
1764
  'GET_VALUE_METADATA_RESPONSE'
@@ -2025,11 +2031,11 @@ module.exports = function (RED) {
2025
2031
  }
2026
2032
 
2027
2033
  function WireNodeEvents(Node) {
2028
- Node.once(event_Ready.zwaveName, (N) => {
2029
- if (N.isControllerNode) {
2030
- return;
2031
- }
2034
+ if (Node.isControllerNode) {
2035
+ return;
2036
+ }
2032
2037
 
2038
+ Node.once(event_Ready.zwaveName, () => {
2033
2039
  Node.on(event_FirmwareUpdateFinished.zwaveName, (N, S) => {
2034
2040
  Send(N, event_FirmwareUpdateFinished.redName, S);
2035
2041
  });
@@ -2064,6 +2070,14 @@ module.exports = function (RED) {
2064
2070
  Node.on(event_Sleep.zwaveName, (N) => {
2065
2071
  Send(N, event_Sleep.redName);
2066
2072
  });
2073
+
2074
+ Node.on(event_Dead.zwaveName, (N) => {
2075
+ Send(N, event_Dead.redName);
2076
+ });
2077
+
2078
+ Node.on(event_Alive.zwaveName, (N) => {
2079
+ Send(N, event_Alive.redName);
2080
+ });
2067
2081
  });
2068
2082
 
2069
2083
  Node.on(event_InterviewStarted.zwaveName, (N) => {