node-red-contrib-knx-ultimate 2.2.15 → 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 +15 -13
- 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,17 +123,17 @@ module.exports = (RED) => {
|
|
|
123
123
|
node.timerHUEConfigCheckState = setTimeout(() => {
|
|
124
124
|
(async () => {
|
|
125
125
|
if (node.linkStatus === "disconnected") {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (node.hueManager !== undefined) {
|
|
130
|
-
try {
|
|
131
|
-
const ret = await node.hueManager.isConnected();
|
|
132
|
-
if (!ret) node.linkStatus = "disconnected";
|
|
133
|
-
} catch (error) { node.linkStatus = "disconnected"; }
|
|
134
|
-
} else {
|
|
126
|
+
try {
|
|
127
|
+
await node.initHUEConnection();
|
|
128
|
+
} catch (error) {
|
|
135
129
|
node.linkStatus = "disconnected";
|
|
136
130
|
}
|
|
131
|
+
} else {
|
|
132
|
+
try {
|
|
133
|
+
// Check wether the hue connection is still alive
|
|
134
|
+
const ret = await node.hueManager.isConnected();
|
|
135
|
+
if (!ret) node.linkStatus = "disconnected";
|
|
136
|
+
} catch (error) { node.linkStatus = "disconnected"; }
|
|
137
137
|
}
|
|
138
138
|
node.startWatchdogTimer();
|
|
139
139
|
})();
|
|
@@ -317,9 +317,9 @@ module.exports = (RED) => {
|
|
|
317
317
|
_Node.handleSendHUE(oHUEDevice);
|
|
318
318
|
// Add _Node to the clients array
|
|
319
319
|
_Node.setNodeStatusHue({
|
|
320
|
-
fill: "
|
|
320
|
+
fill: "green",
|
|
321
321
|
shape: "dot",
|
|
322
|
-
text: "
|
|
322
|
+
text: "I'm new and ready.",
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
} else {
|
|
@@ -394,8 +394,10 @@ module.exports = (RED) => {
|
|
|
394
394
|
});
|
|
395
395
|
|
|
396
396
|
RED.httpAdmin.get("/knxUltimateDpts", RED.auth.needsPermission("hue-config.read"), (req, res) => {
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
try {
|
|
398
|
+
const dpts = Object.entries(dptlib).filter(onlyDptKeys).map(extractBaseNo).sort(sortBy("base")).reduce(toConcattedSubtypes, []);
|
|
399
|
+
res.json(dpts);
|
|
400
|
+
} catch (error) { }
|
|
399
401
|
});
|
|
400
402
|
}
|
|
401
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",
|