node-red-contrib-knx-ultimate 3.2.7 → 3.2.9

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
@@ -6,6 +6,12 @@
6
6
 
7
7
  # CHANGELOG
8
8
 
9
+ **Version 3.2.9** - October 2024<br/>
10
+ - Maintenance release: added some log to better identify problems.<br/>
11
+
12
+ **Version 3.2.8** - October 2024<br/>
13
+ - KNX Node: fixed "read status at startup" field not showing up in very old versions.<br/>
14
+
9
15
  **Version 3.2.7** - September 2024<br/>
10
16
  - KNX Node: added "echoed" property to the flow's msg output. See help for further infos.<br/>
11
17
 
@@ -295,6 +295,9 @@
295
295
  $(this).autocomplete('search', $(this).val() + 'exactmatch');
296
296
  });
297
297
  $("#divDatapointSelection").show();
298
+ $("#divNode-input-initialread").show();
299
+ $("#divOutputRBE").show()
300
+ $("#divInputRBE").show()
298
301
  } else if ($("#node-input-setTopicType").val() === 'listenAllGA') {
299
302
  $("#node-input-topic").hide();
300
303
  $("#divDatapointSelection").hide()
@@ -303,20 +306,12 @@
303
306
  $("#divInputRBE").hide()
304
307
  $("#node-input-inputRBE").val("false")
305
308
  $("#divnotifyreadrequestautoreact").hide();
306
- $("#helpallga").show();
307
309
  $("#divTopic").hide()
310
+ $("#divNode-input-initialread").hide();
308
311
 
309
312
  // Call a fake datapoint to load a sample "Universal Node"
310
313
  knxUltimateDptsGetHelp("0.000", true); // 15/09/2020 Supergiovane, load sample help
311
314
 
312
- if ($("#helpallga").html == "") {
313
- // There is a ETS csv file, show the init read option
314
- $("#divNode-input-initialread").show()
315
- } else {
316
- // There isn't a ETS csv file, hide and deselect the init read option
317
- $("#divNode-input-initialread").hide();
318
- $("#node-input-initialread").val(0);
319
- }
320
315
  } else {
321
316
 
322
317
  // 15/09/2020 Supergiovane, load the help sample of the current datapoint
@@ -329,7 +324,6 @@
329
324
  } else {
330
325
  $("#divnotifyreadrequestautoreact").hide();
331
326
  }
332
- $("#helpallga").hide()
333
327
  $("#divNode-input-initialread").show();
334
328
 
335
329
  $("#node-input-topic").prop('placeholder', $("#node-input-setTopicType").val());
@@ -342,12 +336,10 @@
342
336
  // Hide or show the GA and DPT fields if Notify on all Group Addresses is checked
343
337
  if (oNodeServer !== undefined && oNodeServer !== null) {
344
338
  if (oNodeServer.csv !== undefined && oNodeServer.csv !== "") {
345
- $("#helpallga").html("");
346
339
  // There is a ETS csv file, show the init read option
347
340
  $("#divNode-input-initialread").show()
348
341
  } else {
349
342
  // 25/10/2019 Warn user that the node will node encode/decode datagram, if Listen All GA's if the config node doesn't contain the csv
350
- $("#helpallga").html("<i> " + node._("knxUltimate.advanced.noETSWarning") + " </i>");
351
343
  if ($("#node-input-setTopicType").val() === 'listenAllGA') {
352
344
  // There isn't a ETS csv file, hide and deselect the init read option
353
345
  $("#divNode-input-initialread").hide();
@@ -362,7 +354,6 @@
362
354
  $("#divDatapointSelection").show()
363
355
  $("#divOutputRBE").show()
364
356
  $("#divInputRBE").show()
365
- $("#helpallga").hide()
366
357
  $("#divNode-input-initialread").show()
367
358
  }
368
359
 
@@ -438,8 +429,7 @@
438
429
  }
439
430
  // $("#node-input-listenallga").prop("checked", false)
440
431
  // $("#divOutputRBE").show()
441
- // $("#divInputRBE").show()
442
- //$("#helpallga").show()
432
+ // $("#divInputRBE").show()
443
433
  }
444
434
 
445
435
  // 15/09/2020 Supergiovane, Detele the sample help editor
@@ -720,11 +720,10 @@
720
720
  });
721
721
 
722
722
  // Timer connection to backend ####################################################
723
- this.timerWaitBackEnd;
724
723
  let timerWaitBackEndCounter = 0;
725
724
  function checkConnection() {
726
- if (this.timerBlinkBackground !== undefined) clearTimeout(this.timerBlinkBackground);
727
- this.timerBlinkBackground = setTimeout(() => {
725
+ if (this.timerWaitBackEnd !== undefined) clearTimeout(this.timerWaitBackEnd);
726
+ this.timerWaitBackEnd = setTimeout(() => {
728
727
  timerWaitBackEndCounter++;
729
728
  if (timerWaitBackEndCounter > 20) {
730
729
  timerWaitBackEndCounter = 0;
@@ -121,7 +121,7 @@ module.exports.getBridgeDetails = async (_ip) => {
121
121
  simpleget.concat(opt, (err, res, data) => {
122
122
  try {
123
123
  if (err) {
124
- reject(err);
124
+ reject(new Error(err.message || 'getBridgeDetails general error'));
125
125
  } else {
126
126
  // log.trace('http data ' + data);
127
127
  if (res.statusCode >= 100 && res.statusCode < 400) {
@@ -78,7 +78,7 @@ class classHUE extends EventEmitter {
78
78
  this.es.onopen = () => {
79
79
  // if (this.sysLogger !== undefined && this.sysLogger !== null) this.sysLogger.error('KNXUltimatehueEngine: classHUE: SSE-Connected')
80
80
  this.emit("connected");
81
-
81
+ if (this.sysLogger !== undefined && this.sysLogger !== null) this.sysLogger.info(`KNXUltimatehueEngine: classHUE: this.es.onopen: connected`);
82
82
  // Check wether the hue bridge is connected or not
83
83
  if (this.timerCheckConnected !== null) clearInterval(this.timerCheckConnected);
84
84
  this.timerCheckConnected = setInterval(() => {
@@ -86,7 +86,9 @@ class classHUE extends EventEmitter {
86
86
  }, 30000);
87
87
  };
88
88
 
89
- // this.es.onerror = (error) => {
89
+ this.es.onerror = (error) => {
90
+ if (this.sysLogger !== undefined && this.sysLogger !== null) this.sysLogger.error(`KNXUltimatehueEngine: classHUE: this.es.onopen: ${error.status || ''} ${error.message}`);
91
+ };
90
92
  // 29/08/2023 NON riattivare, perchè alla disconnessione, va in loop e consuma tutto il pool di risorse.
91
93
  // try {
92
94
  // this.es.close();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=16.0.0"
5
5
  },
6
- "version": "3.2.7",
6
+ "version": "3.2.9",
7
7
  "description": "Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.",
8
8
  "dependencies": {
9
9
  "binary-parser": "2.2.1",