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 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.
@@ -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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Controls light, shutters and more. Includes common used logic and statistic nodes to control your home.",
5
5
  "keywords": [
6
6
  "node-red",