node-red-contrib-knx-ultimate 2.2.14 → 2.2.16
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 +1 -1
- package/nodes/hue-config.js +14 -14
- package/nodes/knxUltimateHueTemperatureSensor.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
-
<b>Version 2.2.
|
|
9
|
+
<b>Version 2.2.16</b> - November 2023<br/>
|
|
10
10
|
<p>
|
|
11
11
|
- NEW: Hue Light: you can now enable the input/output PINs and send/receive commands to/from the light, via the msg flow, like msg.on={"on":true}. The option is "Node Input/Output PINs".<br/>
|
|
12
12
|
- NEW: Hue Scene: you can now enable the input/output PINs and send/receive commands to/from the light, via the msg flow. The option is "Node Input/Output PINs".<br/>
|
package/nodes/hue-config.js
CHANGED
|
@@ -123,19 +123,17 @@ module.exports = (RED) => {
|
|
|
123
123
|
node.timerHUEConfigCheckState = setTimeout(() => {
|
|
124
124
|
(async () => {
|
|
125
125
|
if (node.linkStatus === "disconnected") {
|
|
126
|
-
|
|
126
|
+
try {
|
|
127
|
+
await node.initHUEConnection();
|
|
128
|
+
} catch (error) {
|
|
129
|
+
node.linkStatus = "disconnected";
|
|
130
|
+
}
|
|
127
131
|
} else {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
try {
|
|
131
|
-
const ret = await node.hueManager.isConnected();
|
|
132
|
-
if (!ret) node.linkStatus = "disconnected";
|
|
133
|
-
} catch (error) { node.linkStatus = "disconnected"; }
|
|
132
|
+
try {
|
|
133
|
+
// Check wether the hue connection is still alive
|
|
134
134
|
const ret = await node.hueManager.isConnected();
|
|
135
135
|
if (!ret) node.linkStatus = "disconnected";
|
|
136
|
-
}
|
|
137
|
-
node.linkStatus = "disconnected";
|
|
138
|
-
}
|
|
136
|
+
} catch (error) { node.linkStatus = "disconnected"; }
|
|
139
137
|
}
|
|
140
138
|
node.startWatchdogTimer();
|
|
141
139
|
})();
|
|
@@ -319,9 +317,9 @@ module.exports = (RED) => {
|
|
|
319
317
|
_Node.handleSendHUE(oHUEDevice);
|
|
320
318
|
// Add _Node to the clients array
|
|
321
319
|
_Node.setNodeStatusHue({
|
|
322
|
-
fill: "
|
|
320
|
+
fill: "green",
|
|
323
321
|
shape: "dot",
|
|
324
|
-
text: "
|
|
322
|
+
text: "I'm new and ready.",
|
|
325
323
|
});
|
|
326
324
|
}
|
|
327
325
|
} else {
|
|
@@ -396,8 +394,10 @@ module.exports = (RED) => {
|
|
|
396
394
|
});
|
|
397
395
|
|
|
398
396
|
RED.httpAdmin.get("/knxUltimateDpts", RED.auth.needsPermission("hue-config.read"), (req, res) => {
|
|
399
|
-
|
|
400
|
-
|
|
397
|
+
try {
|
|
398
|
+
const dpts = Object.entries(dptlib).filter(onlyDptKeys).map(extractBaseNo).sort(sortBy("base")).reduce(toConcattedSubtypes, []);
|
|
399
|
+
res.json(dpts);
|
|
400
|
+
} catch (error) { }
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
RED.nodes.registerType("hue-config", hueConfig, {
|
|
@@ -23,6 +23,7 @@ module.exports = function (RED) {
|
|
|
23
23
|
node.formatnegativevalue = 'leave';
|
|
24
24
|
node.formatdecimalsvalue = 2;
|
|
25
25
|
node.hueDevice = config.hueDevice;
|
|
26
|
+
node.initializingAtStart = !((config.readStatusAtStartup === undefined || config.readStatusAtStartup === "no"));
|
|
26
27
|
|
|
27
28
|
// Used to call the status update from the config node.
|
|
28
29
|
node.setNodeStatus = ({
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"engines": {
|
|
4
4
|
"node": ">=16.0.0"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.2.
|
|
6
|
+
"version": "2.2.16",
|
|
7
7
|
"description": "Control your KNX intallation via Node-Red! Single Node KNX IN/OUT with optional ETS group address importer. Easy to use and highly configurable. With integrated Philips HUE devices control.",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"binary-parser": "2.2.1",
|