node-red-contrib-knx-ultimate 2.1.39 → 2.1.40
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,9 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
+
<b>Version 2.1.40</b> - August 2023<br/>
|
|
10
|
+
- HUE Light: Buffix: color cycle continues to cycle color, even if a FALSE is sent from the group address.<br/>
|
|
11
|
+
</p>
|
|
9
12
|
<p>
|
|
10
13
|
<b>Version 2.1.39</b> - August 2023<br/>
|
|
11
|
-
- KNX-Ultimate Node:
|
|
14
|
+
- KNX-Ultimate Node: fixed an issue with the msg.topic sent to the flow.<br/>
|
|
12
15
|
- NEW: HUE Light: now you can set the color temperature, using datapoint 5.001 as well.<br/>
|
|
13
16
|
- NEW: HUE Light: the node will now disable parts of the UI, based on the capabilities of the HUE lamp.<br/>
|
|
14
17
|
- HUE nodes now wait 15 seconds before getting status and updating KNX devices, after node-red restart. <br/>
|
|
@@ -231,6 +231,7 @@ module.exports = function (RED) {
|
|
|
231
231
|
}
|
|
232
232
|
}, 10000)
|
|
233
233
|
} else {
|
|
234
|
+
if (node.timerColorCycle !== undefined) clearInterval(node.timerColorCycle)
|
|
234
235
|
node.serverHue.hueManager.writeHueQueueAdd(config.hueDevice, { on: { on: false } }, (node.isGrouped_light === false ? 'setLight' : 'setGroupedLight'))
|
|
235
236
|
}
|
|
236
237
|
node.setNodeStatusHue({ fill: 'green', shape: 'dot', text: 'KNX->HUE', payload: gaValColorCycle })
|
|
@@ -47,7 +47,9 @@ module.exports = function (RED) {
|
|
|
47
47
|
knxMsgPayload.dpt = config.dptlightsensor
|
|
48
48
|
|
|
49
49
|
if (_event.hasOwnProperty('light') && _event.light.hasOwnProperty('light_level')) {
|
|
50
|
-
|
|
50
|
+
//console.log(Math.round(10 ** ((_event.light.light_level - 1) / 10000)))
|
|
51
|
+
//console.log(_event.light.light_level === 0 ? 0 : Math.round(Math.pow(10, (_event.light.light_level - 1) / 10000)))
|
|
52
|
+
knxMsgPayload.payload = _event.light.light_level === 0 ? 0 : Math.round(Math.pow(10, (_event.light.light_level - 1) / 10000))
|
|
51
53
|
// Send to KNX bus
|
|
52
54
|
if (knxMsgPayload.topic !== '' && knxMsgPayload.topic !== undefined) node.server.writeQueueAdd({ grpaddr: knxMsgPayload.topic, payload: knxMsgPayload.payload, dpt: knxMsgPayload.dpt, outputtype: 'write', nodecallerid: node.id })
|
|
53
55
|
node.status({ fill: 'green', shape: 'dot', text: 'HUE->KNX ' + JSON.stringify(knxMsgPayload.payload) + ' (' + new Date().getDate() + ', ' + new Date().toLocaleTimeString() + ')' })
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"engines": {
|
|
4
4
|
"node": ">=16.0.0"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.1.
|
|
6
|
+
"version": "2.1.40",
|
|
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 handling.",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"mkdirp": "3.0.1",
|