node-red-contrib-knx-ultimate 2.2.39 → 2.2.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,6 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
+
**Version 2.2.40** - Jan 2024<br/>
|
|
10
|
+
- HUE Light: fixed an issue with initial status read from HUE Bridge (on/off status was incorrectly set).<br/>
|
|
11
|
+
|
|
9
12
|
**Version 2.2.39** - Jan 2024<br/>
|
|
10
13
|
- Fixed DPT 9.001 issue when sending numbers having > 2 decimals.<br/>
|
|
11
14
|
- HUE Light node: fixed an issue in dimming, when the minimum dim level is set to the minimum level defined by the HUE bridge.<br/>
|
|
@@ -87,14 +87,14 @@ module.exports = function (RED) {
|
|
|
87
87
|
node.context().global.set(node.name + '_WRITE', [], node.contextStorage) // Delete the var
|
|
88
88
|
for (let index = 0; index < oContext.length; index++) {
|
|
89
89
|
const element = oContext[index]
|
|
90
|
-
if (
|
|
90
|
+
if (element.hasOwnProperty('address') === false) {
|
|
91
91
|
node.setNodeStatus({ fill: 'RED', shape: 'dot', text: 'NO Group Address set', payload: '', GA: '', dpt: '', devicename: '' })
|
|
92
92
|
RED.log.error('knxUltimateGlobalContext: No group address set in node ' + node.id)
|
|
93
93
|
oContext = null // 21/03/2022
|
|
94
94
|
node.goTimerGo()
|
|
95
95
|
return
|
|
96
96
|
}
|
|
97
|
-
if (
|
|
97
|
+
if (element.hasOwnProperty('payload') === false) {
|
|
98
98
|
node.setNodeStatus({ fill: 'RED', shape: 'dot', text: 'NO payload set', payload: '', GA: '', dpt: '', devicename: '' })
|
|
99
99
|
RED.log.error('knxUltimateGlobalContext: No payload set for address ' + element.address + ' in node ' + node.id)
|
|
100
100
|
oContext = null // 21/03/2022
|
|
@@ -103,7 +103,7 @@ module.exports = function (RED) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// 13/09/2021 retrieve the datapoint if not specified
|
|
106
|
-
if (
|
|
106
|
+
if (element.hasOwnProperty('dpt') === false || element.dpt === undefined || element.dpt === '') {
|
|
107
107
|
try {
|
|
108
108
|
const sDPT = node.server.csv.find(item => item.ga === element.address).dpt
|
|
109
109
|
element.dpt = sDPT
|
|
@@ -689,7 +689,7 @@ module.exports = function (RED) {
|
|
|
689
689
|
if (node.currentHUEDevice.on !== undefined && node.currentHUEDevice.on.on === false && _event.dimming.brightness === 0) {
|
|
690
690
|
// Do nothing, because the light is off and the dimming also is 0
|
|
691
691
|
} else {
|
|
692
|
-
if (node.currentHUEDevice.on !== undefined && node.currentHUEDevice.on.on === false && (
|
|
692
|
+
if (node.currentHUEDevice.on !== undefined && node.currentHUEDevice.on.on === false && (_event.on === undefined || (_event.on !== undefined && _event.on.on === true))) node.updateKNXLightState(_event.dimming.brightness > 0);
|
|
693
693
|
node.updateKNXBrightnessState(_event.dimming.brightness);
|
|
694
694
|
// If the brightness reaches zero, the hue lamp "on" property must be set to zero as well
|
|
695
695
|
if (_event.dimming.brightness === 0 && node.currentHUEDevice.on !== undefined && node.currentHUEDevice.on.on === true) {
|
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.40",
|
|
7
7
|
"description": "Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"binary-parser": "2.2.1",
|