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 +4 -0
- package/hysteresis/hysteresis.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/hysteresis/hysteresis.js
CHANGED
|
@@ -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
|
}
|