node-red-contrib-knx-ultimate 3.2.8 → 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,9 @@
|
|
|
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
|
+
|
|
9
12
|
**Version 3.2.8** - October 2024<br/>
|
|
10
13
|
- KNX Node: fixed "read status at startup" field not showing up in very old versions.<br/>
|
|
11
14
|
|
|
@@ -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.
|
|
727
|
-
this.
|
|
725
|
+
if (this.timerWaitBackEnd !== undefined) clearTimeout(this.timerWaitBackEnd);
|
|
726
|
+
this.timerWaitBackEnd = setTimeout(() => {
|
|
728
727
|
timerWaitBackEndCounter++;
|
|
729
728
|
if (timerWaitBackEndCounter > 20) {
|
|
730
729
|
timerWaitBackEndCounter = 0;
|
package/nodes/utils/http.js
CHANGED
|
@@ -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) {
|
package/nodes/utils/hueEngine.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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",
|