smart-nodes 0.6.3 → 0.6.4
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 +5 -1
- package/SmartNodesContext.json +1 -1
- package/mixing-valve/mixing-valve.js +0 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -236,4 +236,8 @@
|
|
|
236
236
|
|
|
237
237
|
## Version 0.6.3:
|
|
238
238
|
|
|
239
|
-
- Fixed bug, when disabling mixing-valve while it is opening, the off mode close was not handled. Same for closing and off mode open.
|
|
239
|
+
- Fixed bug, when disabling mixing-valve while it is opening, the off mode close was not handled. Same for closing and off mode open.
|
|
240
|
+
|
|
241
|
+
## Version 0.6.4:
|
|
242
|
+
|
|
243
|
+
- Do off mode for the full time, in case the real position dismatch the known position in the node.
|
package/SmartNodesContext.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"idn1":{"value":null,"last_message":null}}
|
|
1
|
+
{"idn1":{"enabled":false,"setpoint":20,"current_temperature":null,"last_position":50,"last_enabled_sended":null,"alarm_active":false,"value":null,"last_message":null}}
|
|
@@ -498,12 +498,6 @@ module.exports = function (RED)
|
|
|
498
498
|
helper.log(node, "Start changing", adjustAction, time_ms)
|
|
499
499
|
stopChanging();
|
|
500
500
|
|
|
501
|
-
// Already oppened/closed
|
|
502
|
-
if (adjustAction == ADJUST_OPEN && node_settings.last_position >= 100)
|
|
503
|
-
time_ms = time_total_s * 1000 / 200; // Change at least 1/200 => 0.5 %
|
|
504
|
-
else if (adjustAction == ADJUST_CLOSE && node_settings.last_position <= 0)
|
|
505
|
-
time_ms = time_total_s * 1000 / 200; // Change at least 1/200 => 0.5 %
|
|
506
|
-
|
|
507
501
|
adjusting_start_time = Date.now();
|
|
508
502
|
if (adjustAction == ADJUST_OPEN)
|
|
509
503
|
node.send([{ payload: true }, { payload: false }, null]);
|