node-red-contrib-dmx-for-ha 0.6.10 → 0.6.11
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/nodes/ha-mqtt-dmx.js +2 -2
- package/package.json +1 -1
package/nodes/ha-mqtt-dmx.js
CHANGED
|
@@ -397,8 +397,8 @@ module.exports = function (RED) {
|
|
|
397
397
|
const to = toChannels[i] ? toChannels[i][1] : 0;
|
|
398
398
|
const raw = Math.round(from + (to - from) * progress);
|
|
399
399
|
// Apply floor during transition — never send flicker values
|
|
400
|
-
// Exception: if target is 0
|
|
401
|
-
const floored = (raw > 0 && raw < S.dmxFloor) ? S.dmxFloor : raw;
|
|
400
|
+
// Exception: if target is 0 (intentionally off) allow it to reach 0
|
|
401
|
+
const floored = (raw > 0 && raw < S.dmxFloor && to > 0) ? S.dmxFloor : raw;
|
|
402
402
|
return [ch, floored];
|
|
403
403
|
});
|
|
404
404
|
sendDmxChannels(channels);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-dmx-for-ha",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"description": "DMX lighting control for Home Assistant via Node-RED and MQTT. Place a node, fill in the settings, deploy. Full HA device registry integration with RGBW/RGBWW/CCT/brightness colour modes, transitions, effects, and group control.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|