node-red-contrib-knx-ultimate 3.0.1 → 3.0.3

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,14 @@
6
6
 
7
7
  # CHANGELOG
8
8
 
9
+ **Version 3.0.3** - Juli 2024<br/>
10
+ - Warning: Node-Red version **equals or major than 3.1.1** is needed to run this node.<br/>
11
+ - FIX: fix crash when no more KNX tunnels avaiable.<br/>
12
+
13
+ **Version 3.0.2** - Juli 2024<br/>
14
+ - Warning: Node-Red version **equals or major than 3.1.1** is needed to run this node.<br/>
15
+ - HUE BRIDGE: added the message to DEPLOY the flow prior to proceed, when you're creating a new HUE CONFIG node.<br/>
16
+
9
17
  **Version 3.0.1** - Juli 2024<br/>
10
18
  - Warning: Node-Red version **equals or major than 3.1.1** is needed to run this node.<br/>
11
19
  - FEATURE: Due to multiple users not well knowing the KNX Protocol, by default new nodes have "Auto" in the protocol field. The node will automatically detect and apply the correct protocol. This is the real AI.<br/>
@@ -354,7 +354,9 @@ module.exports = (RED) => {
354
354
  const serverId = RED.nodes.getNode(req.query.serverId); // Retrieve node.id of the config node.
355
355
  if (serverId === null) {
356
356
  RED.log.warn(`Warn KNXUltimateGetResourcesHUE serverId is null`);
357
- res.json({ devices: `serverId not set` });
357
+ const jRet = [];
358
+ jRet.push({ name: 'PLEASE DEPLOY FIRST: then try again.', id: 'error' })
359
+ res.json({ devices: jRet });
358
360
  return;
359
361
  }
360
362
  const jRet = serverId.getResources(req.query.rtype);
@@ -353,6 +353,7 @@ module.exports = (RED) => {
353
353
  });
354
354
  }
355
355
  } catch (error) {
356
+ console.log("KNXHue-config: getResources error ", error.trace);
356
357
  retArray.push({
357
358
  name: `${_rtype}: ERROR ${error.message}`,
358
359
  id: resource.id,
@@ -728,11 +728,18 @@
728
728
  timerWaitBackEndCounter++;
729
729
  if (timerWaitBackEndCounter > 40) {
730
730
  timerWaitBackEndCounter = 0;
731
- RED.notify("Something went wrong. Please make sure the HUE bridge connection is up and properly configured.",
731
+ const myNotification = RED.notify("Something went wrong. Please make sure the HUE bridge connection is properly configured. For further info, see the node-red log. IF YOU ARE CREATING A NEW HUE CONFIGURATION NODE, PLEASE DEPLOY AND RETRY.",
732
732
  {
733
733
  modal: false,
734
- fixed: false,
735
- type: 'error'
734
+ fixed: true,
735
+ type: 'error',
736
+ buttons: [
737
+ {
738
+ text: "OK",
739
+ click: function (e) {
740
+ myNotification.close();
741
+ }
742
+ }]
736
743
  })
737
744
  $("#waitWindow").hide();
738
745
  $("#mainWindow").show();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=16.0.0"
5
5
  },
6
- "version": "3.0.1",
6
+ "version": "3.0.3",
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",
@@ -11,7 +11,7 @@
11
11
  "dns-sync": "0.2.1",
12
12
  "eventsource": "2.0.2",
13
13
  "js-yaml": "4.1.0",
14
- "knxultimate": ">=2.3.3",
14
+ "knxultimate": ">=2.3.5",
15
15
  "lodash": "4.17.21",
16
16
  "log-driver": "1.2.7",
17
17
  "mkdirp": "3.0.1",