smart-nodes 0.6.2 → 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 +14 -6
- package/SmartNodesContext.json +1 -1
- package/mixing-valve/mixing-valve.js +1 -6
- package/package.json +1 -1
- package/persistence.js +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
|
|
152
152
|
## Version 0.4.17:
|
|
153
153
|
|
|
154
|
-
- Fixed mixing
|
|
154
|
+
- Fixed mixing-valve position calculation.
|
|
155
155
|
- Fixed up_down message for central node.
|
|
156
156
|
|
|
157
157
|
## Version 0.4.18:
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
## Version 0.4.19:
|
|
162
162
|
|
|
163
|
-
- Added min_change_time option to mixing
|
|
163
|
+
- Added min_change_time option to mixing-valve node.
|
|
164
164
|
|
|
165
165
|
## Version 0.4.20:
|
|
166
166
|
|
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
|
|
207
207
|
- Improved light control percentage status text.
|
|
208
208
|
- Fixed logic node when common outputs is configured but one value is set to "send nothing".
|
|
209
|
-
-
|
|
210
|
-
-
|
|
209
|
+
- mixing-valve can now output as percentage directly or with open/close impulses.
|
|
210
|
+
- mixing-valve tries to guess the best position, when getting enabled.
|
|
211
211
|
- Added debug topic to all nodes, to see current values.
|
|
212
212
|
- Added new node "mode-selector".
|
|
213
213
|
|
|
@@ -227,9 +227,17 @@
|
|
|
227
227
|
|
|
228
228
|
## Version 0.6.1:
|
|
229
229
|
|
|
230
|
-
- Removed some ui limits of mixing
|
|
230
|
+
- Removed some ui limits of mixing-valve.
|
|
231
231
|
|
|
232
232
|
## Version 0.6.2:
|
|
233
233
|
|
|
234
234
|
- Cached runtime config is revoked now, when new settings are applied in the web frontend.
|
|
235
|
-
- Removed feature from
|
|
235
|
+
- Removed feature from mixing-valve to automatically start with the best known position, because it hadn't worked as expected.
|
|
236
|
+
|
|
237
|
+
## Version 0.6.3:
|
|
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.
|
|
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":{"
|
|
1
|
+
{"idn1":{"enabled":false,"setpoint":20,"current_temperature":null,"last_position":50,"last_enabled_sended":null,"alarm_active":false,"value":null,"last_message":null}}
|
|
@@ -214,6 +214,7 @@ module.exports = function (RED)
|
|
|
214
214
|
if (node_settings.alarm_active)
|
|
215
215
|
return;
|
|
216
216
|
|
|
217
|
+
stopChanging();
|
|
217
218
|
stopSampling();
|
|
218
219
|
doOffMode();
|
|
219
220
|
break;
|
|
@@ -497,12 +498,6 @@ module.exports = function (RED)
|
|
|
497
498
|
helper.log(node, "Start changing", adjustAction, time_ms)
|
|
498
499
|
stopChanging();
|
|
499
500
|
|
|
500
|
-
// Already oppened/closed
|
|
501
|
-
if (adjustAction == ADJUST_OPEN && node_settings.last_position >= 100)
|
|
502
|
-
time_ms = time_total_s * 1000 / 200; // Change at least 1/200 => 0.5 %
|
|
503
|
-
else if (adjustAction == ADJUST_CLOSE && node_settings.last_position <= 0)
|
|
504
|
-
time_ms = time_total_s * 1000 / 200; // Change at least 1/200 => 0.5 %
|
|
505
|
-
|
|
506
501
|
adjusting_start_time = Date.now();
|
|
507
502
|
if (adjustAction == ADJUST_OPEN)
|
|
508
503
|
node.send([{ payload: true }, { payload: false }, null]);
|
package/package.json
CHANGED
package/persistence.js
CHANGED
|
@@ -85,20 +85,8 @@ module.exports = function (_RED)
|
|
|
85
85
|
function get(id, config_change_date)
|
|
86
86
|
{
|
|
87
87
|
let data = globalData["id" + id];
|
|
88
|
-
if (id == "7e5e332f362a43fb")
|
|
89
|
-
{
|
|
90
|
-
log({
|
|
91
|
-
old_config_change_date: data.config_change_date,
|
|
92
|
-
new_config_change_date: config_change_date
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
88
|
if (data && data.config_change_date && data.config_change_date !== config_change_date)
|
|
97
|
-
{
|
|
98
|
-
console.log("id = " + id + " - config change date mismatch, ignoring stored data.");
|
|
99
89
|
return null;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
90
|
|
|
103
91
|
return data;
|
|
104
92
|
}
|