node-red-contrib-knx-ultimate 2.2.38 → 2.2.39
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,8 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
-
**Version 2.2.
|
|
10
|
-
-
|
|
9
|
+
**Version 2.2.39** - Jan 2024<br/>
|
|
10
|
+
- Fixed DPT 9.001 issue when sending numbers having > 2 decimals.<br/>
|
|
11
|
+
- 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/>
|
|
11
12
|
|
|
12
13
|
**Version 2.2.37** - December 2023<br/>
|
|
13
14
|
- HUE Light Node: you can now set the DIM direction for tunable white lights. Fixed some issues as well.<br/>
|
package/KNXEngine/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
+
<p>
|
|
10
|
+
<b>Version 1.0.43</b> - December 2023<br/>
|
|
11
|
+
- Fixed DPT 9.001 issue when sending numberso having > 2 decimals.<br/>
|
|
12
|
+
</p>
|
|
9
13
|
<p>
|
|
10
14
|
<b>Version 1.0.43</b> - October 2023<br/>
|
|
11
15
|
- Added help description for DPT 3.001 DIMMING stop telegram.<br/>
|
package/KNXEngine/package.json
CHANGED
|
@@ -38,6 +38,7 @@ exports.formatAPDU = function (value) {
|
|
|
38
38
|
if (!isFinite(value)) {
|
|
39
39
|
knxLog.get().warn('DPT9: cannot write non-numeric or undefined value')
|
|
40
40
|
} else {
|
|
41
|
+
value = value.toFixed(2); // Fix issue with float having too many decimals.
|
|
41
42
|
const arr = frexp(value)
|
|
42
43
|
const mantissa = arr[0]; const exponent = arr[1]
|
|
43
44
|
// find the minimum exponent that will upsize the normalized mantissa (0,5 to 1 range)
|
|
@@ -502,15 +502,21 @@ module.exports = function (RED) {
|
|
|
502
502
|
if (node.brightnessStep === null || node.brightnessStep === undefined) node.brightnessStep = node.currentHUEDevice.dimming.brightness || 50;
|
|
503
503
|
node.brightnessStep = Math.ceil(Number(node.brightnessStep));
|
|
504
504
|
|
|
505
|
-
// Set the speed
|
|
506
|
-
_dimSpeedInMillisecs /= numStep;
|
|
507
|
-
numStep = Math.round((config.maxDimLevelLight - config.minDimLevelLight) / numStep, 0);
|
|
508
|
-
|
|
509
505
|
// We have also minDimLevelLight and maxDimLevelLight to take care of.
|
|
510
|
-
let minDimLevelLight
|
|
511
|
-
if (config.minDimLevelLight ===
|
|
506
|
+
let minDimLevelLight;
|
|
507
|
+
if (config.minDimLevelLight === undefined) {
|
|
508
|
+
minDimLevelLight = 10;
|
|
509
|
+
} else if (config.minDimLevelLight === "useHueLightLevel") {
|
|
510
|
+
minDimLevelLight = node.currentHUEDevice.dimming.min_dim_level === undefined ? 10 : node.currentHUEDevice.dimming.min_dim_level;
|
|
511
|
+
} else {
|
|
512
|
+
minDimLevelLight = Number(config.minDimLevelLight);
|
|
513
|
+
}
|
|
512
514
|
const maxDimLevelLight = config.maxDimLevelLight === undefined ? 100 : Number(config.maxDimLevelLight);
|
|
513
515
|
|
|
516
|
+
// Set the speed
|
|
517
|
+
_dimSpeedInMillisecs /= numStep;
|
|
518
|
+
numStep = Math.round((maxDimLevelLight - minDimLevelLight) / numStep, 0);
|
|
519
|
+
|
|
514
520
|
if (_KNXbrightness_Direction > 0 && _KNXaction === 1) {
|
|
515
521
|
// DIM UP
|
|
516
522
|
if (node.timerStepDim !== undefined) clearInterval(node.timerStepDim);
|
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.39",
|
|
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",
|