smart-nodes 0.3.31 → 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.
@@ -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
- return null;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",