node-red-contrib-knx-ultimate 2.2.12 → 2.2.14
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 +10 -2
- package/nodes/knxUltimateHueBattery.html +1 -1
- package/nodes/knxUltimateHueButton.html +1 -1
- package/nodes/knxUltimateHueLight.html +9 -3
- package/nodes/knxUltimateHueLightSensor.html +5 -4
- package/nodes/knxUltimateHueMotion.html +1 -1
- package/nodes/knxUltimateHueScene.html +1 -1
- package/nodes/knxUltimateHueTapDial.html +1 -1
- package/nodes/knxUltimateHueTemperatureSensor.html +13 -2
- 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.14</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
|
@@ -126,8 +126,16 @@ module.exports = (RED) => {
|
|
|
126
126
|
await node.initHUEConnection();
|
|
127
127
|
} else {
|
|
128
128
|
// Check wether the hue connection is still alive
|
|
129
|
-
|
|
130
|
-
|
|
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
|
+
const ret = await node.hueManager.isConnected();
|
|
135
|
+
if (!ret) node.linkStatus = "disconnected";
|
|
136
|
+
} else {
|
|
137
|
+
node.linkStatus = "disconnected";
|
|
138
|
+
}
|
|
131
139
|
}
|
|
132
140
|
node.startWatchdogTimer();
|
|
133
141
|
})();
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
</script>
|
|
230
|
-
<script src="
|
|
230
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
231
231
|
|
|
232
232
|
<script type="text/markdown" data-help-name="knxUltimateHueBattery">
|
|
233
233
|
This node lets you get the battery level from your HUE device. Here you can get the HUE battery level events, that represents a percentage 0-100% value, evetytime the
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
|
|
405
405
|
|
|
406
406
|
</script>
|
|
407
|
-
<script src="
|
|
407
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
408
408
|
|
|
409
409
|
<script type="text/markdown" data-help-name="knxUltimateHueButton">
|
|
410
410
|
This node lets you get the events from your HUE button.
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
2
|
+
<script src="resources/node-red-contrib-knx-ultimate/iro@5"></script>
|
|
3
|
+
|
|
1
4
|
<script type="text/javascript">
|
|
2
5
|
|
|
3
6
|
RED.nodes.registerType("knxUltimateHueLight", {
|
|
@@ -300,7 +303,10 @@
|
|
|
300
303
|
});
|
|
301
304
|
// Eval
|
|
302
305
|
const format = "node." + _destinationWidget.replace("#node-input-", "");
|
|
303
|
-
|
|
306
|
+
try {
|
|
307
|
+
if (format !== undefined) $(_destinationWidget).val(eval(format).toString());
|
|
308
|
+
} catch (error) { }
|
|
309
|
+
|
|
304
310
|
});
|
|
305
311
|
}
|
|
306
312
|
|
|
@@ -562,8 +568,8 @@
|
|
|
562
568
|
|
|
563
569
|
|
|
564
570
|
</script>
|
|
565
|
-
<script src="
|
|
566
|
-
<script src="
|
|
571
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
572
|
+
<script src="resources/node-red-contrib-knx-ultimate/iro@5"></script>
|
|
567
573
|
|
|
568
574
|
<script type="text/html" data-template-name="knxUltimateHueLight">
|
|
569
575
|
|
|
@@ -211,13 +211,14 @@
|
|
|
211
211
|
<label for="node-input-namelightsensor" style="width:50px; margin-left: 0px; text-align: right;">Name</label>
|
|
212
212
|
<input type="text" id="node-input-namelightsensor" style="width:200px;margin-left: 5px; text-align: left;">
|
|
213
213
|
</div>
|
|
214
|
-
|
|
214
|
+
|
|
215
|
+
<br/>
|
|
215
216
|
<div class="form-row">
|
|
216
217
|
<label style="width:180px" for="node-input-readStatusAtStartup"><i class="fa fa-play-circle"></i> Read status at startup</label>
|
|
217
218
|
<select id="node-input-readStatusAtStartup">
|
|
218
219
|
<option value="no">No</option>
|
|
219
|
-
<option value="yes">Yes, and emit KNX telegrams.</option>
|
|
220
|
-
</select>
|
|
220
|
+
<option value="yes">Yes, and emit KNX telegrams.</option>
|
|
221
|
+
</select>
|
|
221
222
|
</div>
|
|
222
223
|
|
|
223
224
|
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
|
|
228
229
|
|
|
229
230
|
</script>
|
|
230
|
-
<script src="
|
|
231
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
231
232
|
|
|
232
233
|
<script type="text/markdown" data-help-name="knxUltimateHueLightSensor">
|
|
233
234
|
This node lets you get the events from your HUE motion device.
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
</script>
|
|
220
|
-
<script src="
|
|
220
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
221
221
|
|
|
222
222
|
<script type="text/markdown" data-help-name="knxUltimateHueMotion">
|
|
223
223
|
This node lets you get the events from your HUE motion device.
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
|
|
284
284
|
|
|
285
285
|
</script>
|
|
286
|
-
<script src="
|
|
286
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
287
287
|
|
|
288
288
|
<script type="text/markdown" data-help-name="knxUltimateHueScene">
|
|
289
289
|
This node lets you recall a HUE scene, via KNX.
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
</script>
|
|
222
|
-
<script src="
|
|
222
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
223
223
|
|
|
224
224
|
<script type="text/markdown" data-help-name="knxUltimateHueTapDial">
|
|
225
225
|
This node lets you get the events from your HUE rotary device, for example the Tap Dial.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
nametemperaturesensor: { value: "" },
|
|
12
12
|
GAtemperaturesensor: { value: "" },
|
|
13
13
|
dpttemperaturesensor: { value: "" },
|
|
14
|
+
readStatusAtStartup: { value: "no" },
|
|
14
15
|
|
|
15
16
|
hueDevice: { value: "" }
|
|
16
17
|
},
|
|
@@ -210,7 +211,15 @@
|
|
|
210
211
|
<label for="node-input-nametemperaturesensor" style="width:50px; margin-left: 0px; text-align: right;">Name</label>
|
|
211
212
|
<input type="text" id="node-input-nametemperaturesensor" style="width:200px;margin-left: 5px; text-align: left;">
|
|
212
213
|
</div>
|
|
213
|
-
|
|
214
|
+
|
|
215
|
+
<br/>
|
|
216
|
+
<div class="form-row">
|
|
217
|
+
<label style="width:180px" for="node-input-readStatusAtStartup"><i class="fa fa-play-circle"></i> Read status at startup</label>
|
|
218
|
+
<select id="node-input-readStatusAtStartup">
|
|
219
|
+
<option value="no">No</option>
|
|
220
|
+
<option value="yes">Yes, and emit KNX telegrams.</option>
|
|
221
|
+
</select>
|
|
222
|
+
</div>
|
|
214
223
|
|
|
215
224
|
<br/>
|
|
216
225
|
<br/>
|
|
@@ -218,7 +227,7 @@
|
|
|
218
227
|
|
|
219
228
|
|
|
220
229
|
</script>
|
|
221
|
-
<script src="
|
|
230
|
+
<script src="resources/node-red-contrib-knx-ultimate/11f26b4500.js"></script>
|
|
222
231
|
|
|
223
232
|
<script type="text/markdown" data-help-name="knxUltimateHueTemperatureSensor" This node lets you get the events from
|
|
224
233
|
your HUE temperature device. Here you can get the HUE temperature events, that represents a celsius value, evetytime
|
|
@@ -232,6 +241,8 @@ you're typing.
|
|
|
232
241
|
| KNX GW | Select the KNX gateway to be used |
|
|
233
242
|
| HUE Bridge | Select the HUE Bridge to be used |
|
|
234
243
|
| Hue Sensor | HUE sensor to be used. The avaiable buttons start showing up while you're typing.|
|
|
244
|
+
| Read status at startup | Read the status at startup and emit the event to the KNX bus at startup/reconnection.
|
|
245
|
+
(Default "no")|
|
|
235
246
|
|
|
236
247
|
**KNX**
|
|
237
248
|
|Property|Description|
|
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.14",
|
|
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",
|