smart-nodes 0.4.4 → 0.4.5

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
@@ -98,3 +98,7 @@
98
98
  ## Version 0.4.4:
99
99
 
100
100
  - Fixed the delay node to not restart the time if "only on change" option is enabled.
101
+
102
+ ## Version 0.4.5:
103
+
104
+ - Fixed the status of hysteresis node.
@@ -173,7 +173,7 @@ module.exports = function (RED)
173
173
  let setStatus = () =>
174
174
  {
175
175
  if (node_settings.last_result == null)
176
- node.status({ fill: "yellow", shape: "ring", text: helper.getCurrentTimeForStatus() + ": ❓ S: " + node_settings.setpoint + " - H: " + node_settings.hysteresis + " - V: null" });
176
+ node.status({ fill: "yellow", shape: "ring", text: helper.getCurrentTimeForStatus() + ": ❓ S: " + node_settings.setpoint + " - H: " + node_settings.hysteresis + " - V: " + (node_settings.last_value?.toFixed(2) ?? "null") });
177
177
  else
178
178
  node.status({ fill: node_settings.last_result ? "green" : "red", shape: "dot", text: helper.getCurrentTimeForStatus() + ": " + (node_settings.last_result ? "⬆️" : "⬇️") + " S: " + node_settings.setpoint + " - H: " + node_settings.hysteresis + " - V: " + node_settings.last_value?.toFixed(2) });
179
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",