node-red-contrib-knx-ultimate 2.2.9 → 2.2.10
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 +9 -2
- package/nodes/hue-config.js +12 -12
- package/nodes/knxUltimate-config.html +3 -3
- package/nodes/knxUltimateHueBattery.html +1 -1
- package/nodes/knxUltimateHueButton.html +1 -1
- package/nodes/knxUltimateHueLight.html +473 -469
- package/nodes/knxUltimateHueLight.js +29 -2
- package/nodes/knxUltimateHueLightSensor.html +1 -1
- package/nodes/knxUltimateHueMotion.html +1 -1
- package/nodes/knxUltimateHueScene.html +34 -2
- package/nodes/knxUltimateHueScene.js +27 -21
- package/nodes/knxUltimateHueTapDial.html +1 -1
- package/nodes/knxUltimateHueTemperatureSensor.html +11 -11
- package/nodes/knxUltimateSceneController.js +4 -5
- package/package.json +1 -1
- package/resources/11f26b4500.js +2 -0
- package/resources/iro@5 +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,22 +6,29 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
+
<b>Version 2.2.10</b> - November 2023<br/>
|
|
10
|
+
<p>
|
|
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
|
+
- 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/>
|
|
13
|
+
</p>
|
|
9
14
|
<b>Version 2.2.9</b> - November 2023<br/>
|
|
15
|
+
<p>
|
|
10
16
|
- Fixed errors in Iobroker.<br/>
|
|
11
|
-
</p>
|
|
12
|
-
<b>Version 2.2.8</b> - November 2023<br/>
|
|
13
17
|
- HUE Light: NEW: color selection show now the temperature in kelvin.<br/>
|
|
14
18
|
- HUE Light: NEW: Tunable White: added control and status in kelvin (DPT 7.600). This is in BETA testing.<br/>
|
|
15
19
|
- Removed some options in button and scene nodes, because they are unnecessary.<br/>
|
|
16
20
|
</p>
|
|
17
21
|
<b>Version 2.2.6</b> - October 2023<br/>
|
|
22
|
+
<p>
|
|
18
23
|
- Fix: fixed HUE button sending a KNX telegram at startup. Fixed also other nodes.<br/>
|
|
19
24
|
- HUE Nodes: added the option to inizialize at startup or not.<br/>
|
|
20
25
|
</p>
|
|
26
|
+
<p>
|
|
21
27
|
<b>Version 2.2.5</b> - October 2023<br/>
|
|
22
28
|
- Fix: fixed some HUE nodes not able to register to the event notification service.<br/>
|
|
23
29
|
- Restyle GUI of KNX Device node.<br/>
|
|
24
30
|
</p>
|
|
31
|
+
<p>
|
|
25
32
|
<b>Version 2.2.4</b> - October 2023<br/>
|
|
26
33
|
- HUE Light: fixed some status hiccups and better handling of async hue bridge functions.<br/>
|
|
27
34
|
</p>
|
package/nodes/hue-config.js
CHANGED
|
@@ -99,7 +99,7 @@ module.exports = (RED) => {
|
|
|
99
99
|
if (node.sysLogger !== undefined && node.sysLogger !== null) node.sysLogger.error("hue-Config node.hueManager.on('connected' " + error.message);
|
|
100
100
|
}
|
|
101
101
|
})();
|
|
102
|
-
},
|
|
102
|
+
}, 10000);
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
|
|
@@ -114,24 +114,24 @@ module.exports = (RED) => {
|
|
|
114
114
|
if (node.nodeClientsAwaitingInit !== undefined) {
|
|
115
115
|
// Because the whole process is async, if the function await node.hueManager.hueApiV2.get("/resource") has not jet been called or is late,
|
|
116
116
|
// the node/nodes belonging to this server, has been previously added to the nodeClientsAwaitingInit list.
|
|
117
|
-
node.nodeClientsAwaitingInit.forEach((
|
|
118
|
-
node.nodeClients.push(
|
|
117
|
+
node.nodeClientsAwaitingInit.forEach((_node) => {
|
|
118
|
+
node.nodeClients.push(_node);
|
|
119
119
|
});
|
|
120
120
|
node.nodeClientsAwaitingInit = [];
|
|
121
121
|
}
|
|
122
|
-
node.nodeClients.forEach((
|
|
123
|
-
if (
|
|
124
|
-
const oHUEDevice = node.hueAllResources.filter((a) => a.id ===
|
|
122
|
+
node.nodeClients.forEach((_node) => {
|
|
123
|
+
if (_node.hueDevice !== undefined && node.hueAllResources !== undefined) {
|
|
124
|
+
const oHUEDevice = node.hueAllResources.filter((a) => a.id === _node.hueDevice)[0];
|
|
125
125
|
if (oHUEDevice !== undefined) {
|
|
126
126
|
// Add _Node to the clients array
|
|
127
|
-
|
|
127
|
+
_node.setNodeStatusHue({
|
|
128
128
|
fill: "green",
|
|
129
129
|
shape: "ring",
|
|
130
|
-
text: "Ready :-)",
|
|
130
|
+
text: "Ready from awaiting list :-)",
|
|
131
131
|
});
|
|
132
|
-
nodeClient.currentHUEDevice = oHUEDevice;
|
|
133
132
|
oHUEDevice.initializingAtStart = true; // Signalling first connection after restart.
|
|
134
|
-
|
|
133
|
+
_node.currentHUEDevice = oHUEDevice;
|
|
134
|
+
_node.handleSendHUE(oHUEDevice);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
});
|
|
@@ -278,8 +278,8 @@ module.exports = (RED) => {
|
|
|
278
278
|
if (node.hueAllResources !== undefined && node.hueAllResources !== null) {
|
|
279
279
|
if (node.nodeClients.filter((x) => x.id === _Node.id).length === 0) { // At first start, due to the async method for retrieving hueAllResources, hueAllResources is still null. The first start is handled in node.hueManager.on("connected")
|
|
280
280
|
const oHUEDevice = node.hueAllResources.filter((a) => a.id === _Node.hueDevice)[0];
|
|
281
|
-
_Node.currentHUEDevice = oHUEDevice;
|
|
282
281
|
oHUEDevice.initializingAtStart = true; // Signalling first connection after restart.
|
|
282
|
+
_Node.currentHUEDevice = oHUEDevice;
|
|
283
283
|
_Node.handleSendHUE(oHUEDevice);
|
|
284
284
|
node.nodeClients.push(_Node);
|
|
285
285
|
// Add _Node to the clients array
|
|
@@ -296,7 +296,7 @@ module.exports = (RED) => {
|
|
|
296
296
|
_Node.setNodeStatusHue({
|
|
297
297
|
fill: "grey",
|
|
298
298
|
shape: "dot",
|
|
299
|
-
text: "
|
|
299
|
+
text: "I'm gointo to init awaiting list.",
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
// 14/08/2021 Elimino il file delle persistenze di questo nodo
|
|
114
|
-
$.getJSON("deletePersistGAFile?nodeID=" + node.id, (data) => {});
|
|
114
|
+
$.getJSON("deletePersistGAFile?nodeID=" + node.id, (data) => { });
|
|
115
115
|
|
|
116
116
|
// 06/07/2023 Tabs
|
|
117
117
|
// *****************************
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.ui-tabs .ui-tabs-nav .ui-state-active {
|
|
181
|
-
background: transparent
|
|
181
|
+
background: transparent no-repeat bottom center;
|
|
182
182
|
border: none;
|
|
183
183
|
}
|
|
184
184
|
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
<i class="fa fa-tag"></i>
|
|
202
202
|
<span data-i18n="knxUltimate-config.properties.node-config-input-name"></span>
|
|
203
203
|
</label>
|
|
204
|
-
<input type="text" id="node-config-input-name"
|
|
204
|
+
<input type="text" id="node-config-input-name" >Name
|
|
205
205
|
</div>
|
|
206
206
|
|
|
207
207
|
<div class="form-row">
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
</script>
|
|
230
|
-
<script src="
|
|
230
|
+
<script src="http://localhost:1880/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="http://localhost:1880/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.
|