node-red-contrib-knx-ultimate 2.1.28 → 2.1.29

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,10 @@
6
6
 
7
7
  # CHANGELOG
8
8
 
9
+ <p>
10
+ <b>Version 2.1.29</b> - July 2023<br/>
11
+ - FIX: HUE Light: fixed an issue involving brightness. The HUE HUB, randomly, sends a 0.39 dimming value as hue status. This cause an ON telegram to be sent to the KNX bus.<br/>
12
+ </p>
9
13
  <p>
10
14
  <b>Version 2.1.28</b> - July 2023<br/>
11
15
  - HUE Light: fixed DIM behaviour.<br/>
@@ -279,7 +279,12 @@ module.exports = function (RED) {
279
279
  if (node.currentHUEDevice !== undefined) node.currentHUEDevice.color = _event.color // Update the internal object representing the current light
280
280
  }
281
281
  if (_event.hasOwnProperty('dimming')) {
282
+ // Every once time, the light transmit the brightness value of 0.39.
283
+ // To avoid wrongly turn light state on, exit
284
+ if (_event.dimming.brightness < 1) _event.dimming.brightness = 0
285
+ if (node.currentHUEDevice !== undefined && node.currentHUEDevice.hasOwnProperty('dimming') && node.currentHUEDevice.dimming.brightness === _event.dimming.brightness) return
282
286
  if (_event.dimming.brightness === undefined) return
287
+
283
288
  node.updateKNXBrightnessState(_event.dimming.brightness)
284
289
  // Send true/false to switch state
285
290
  node.updateKNXLightState(_event.dimming.brightness > 0)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=16.0.0"
5
5
  },
6
- "version": "2.1.28",
6
+ "version": "2.1.29",
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",