smart-nodes 0.3.30 → 0.3.32
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.
|
@@ -209,7 +209,6 @@
|
|
|
209
209
|
|
|
210
210
|
let drawCurve = (canvas, ctx, color, slope, offset, useMinMax = false) =>
|
|
211
211
|
{
|
|
212
|
-
console.log("Test");
|
|
213
212
|
const room_setpoint = parseFloat($("#node-input-room_setpoint").val());
|
|
214
213
|
const flow_min = parseFloat($("#node-input-flow_min").val());
|
|
215
214
|
const flow_max = parseFloat($("#node-input-flow_max").val());
|
package/hysteresis/hysteresis.js
CHANGED
|
@@ -139,7 +139,10 @@ module.exports = function (RED)
|
|
|
139
139
|
if (value <= node_settings.setpoint - node_settings.hysteresis && node_settings.last_result !== false)
|
|
140
140
|
return false;
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
if (send_only_change)
|
|
143
|
+
return null;
|
|
144
|
+
|
|
145
|
+
return node_settings.last_result;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
let setStatus = noChange =>
|
package/logic/logic.js
CHANGED
|
@@ -65,8 +65,11 @@ module.exports = function (RED)
|
|
|
65
65
|
|
|
66
66
|
setStatus();
|
|
67
67
|
|
|
68
|
+
if (invert_output)
|
|
69
|
+
result = !result;
|
|
70
|
+
|
|
68
71
|
// Get custom output message
|
|
69
|
-
if (
|
|
72
|
+
if (result)
|
|
70
73
|
{
|
|
71
74
|
if (out_true !== null)
|
|
72
75
|
out_msg = Object.assign({}, out_true);
|
package/package.json
CHANGED
|
@@ -344,7 +344,8 @@ module.exports = function (RED)
|
|
|
344
344
|
{
|
|
345
345
|
if (exact === true)
|
|
346
346
|
{
|
|
347
|
-
console.log({ up, down, stop, exact, last_pos: node_settings.last_position });
|
|
347
|
+
// console.log({ up, down, stop, exact, last_pos: node_settings.last_position });
|
|
348
|
+
|
|
348
349
|
// Don't start moving if exact is enabled and already on top/bottom.
|
|
349
350
|
if (down && node_settings.last_position == 100)
|
|
350
351
|
return;
|
package/text-exec/text-exec.html
CHANGED
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
},
|
|
265
265
|
oneditprepare: function ()
|
|
266
266
|
{
|
|
267
|
-
console.log("Here");
|
|
267
|
+
// console.log("Here");
|
|
268
268
|
onEditPrepare(this, ["smart_light-control", "smart_scene-control", "smart_shutter-complex-control", "smart_shutter-control"]);
|
|
269
269
|
},
|
|
270
270
|
oneditsave: function ()
|