smart-nodes 0.4.7 → 0.4.9
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 +9 -1
- package/examples/heating-curve.json +2 -10
- package/examples/heating-curve.png +0 -0
- package/heating-curve/heating-curve.js +6 -6
- package/light/light.js +5 -2
- package/logic/locales/de-DE/logic.json +1 -0
- package/logic/locales/en-US/logic.json +1 -0
- package/long-press/long-press.html +4 -0
- package/multi-press/multi-press.html +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -109,4 +109,12 @@
|
|
|
109
109
|
|
|
110
110
|
## Version 0.4.7:
|
|
111
111
|
|
|
112
|
-
-
|
|
112
|
+
- Added blink topic to light node.
|
|
113
|
+
|
|
114
|
+
## Version 0.4.8:
|
|
115
|
+
|
|
116
|
+
- Fixed reading values in heating-curve node.
|
|
117
|
+
|
|
118
|
+
## Version 0.4.9:
|
|
119
|
+
|
|
120
|
+
- Fixed reading config values for offset and slope in heating-curve node.
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"id": "e83d01afd93457a2",
|
|
4
|
-
"type": "tab",
|
|
5
|
-
"label": "Heating Curve",
|
|
6
|
-
"disabled": false,
|
|
7
|
-
"info": "",
|
|
8
|
-
"env": []
|
|
9
|
-
},
|
|
10
2
|
{
|
|
11
3
|
"id": "4240b41f17726057",
|
|
12
4
|
"type": "smart_heating-curve",
|
|
@@ -14,7 +6,7 @@
|
|
|
14
6
|
"name": "",
|
|
15
7
|
"room_setpoint": 20,
|
|
16
8
|
"slope": "1.5",
|
|
17
|
-
"offset":
|
|
9
|
+
"offset": "1.5",
|
|
18
10
|
"flow_max": 75,
|
|
19
11
|
"flow_min": 20,
|
|
20
12
|
"x": 540,
|
|
@@ -217,7 +209,7 @@
|
|
|
217
209
|
"crontab": "",
|
|
218
210
|
"once": false,
|
|
219
211
|
"onceDelay": 0.1,
|
|
220
|
-
"topic": "
|
|
212
|
+
"topic": "flow_max",
|
|
221
213
|
"payload": "80",
|
|
222
214
|
"payloadType": "num",
|
|
223
215
|
"x": 190,
|
|
Binary file
|
|
@@ -34,8 +34,8 @@ module.exports = function (RED)
|
|
|
34
34
|
// ##################
|
|
35
35
|
// # Dynamic config #
|
|
36
36
|
// ##################
|
|
37
|
-
let slope = config.slope;
|
|
38
|
-
let offset = config.offset;
|
|
37
|
+
let slope = parseFloat(config.slope);
|
|
38
|
+
let offset = parseFloat(config.offset);
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// ##################
|
|
@@ -79,7 +79,7 @@ module.exports = function (RED)
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
node_settings.room_setpoint =
|
|
82
|
+
node_settings.room_setpoint = new_setpoint;
|
|
83
83
|
break;
|
|
84
84
|
|
|
85
85
|
case "temperature_outside":
|
|
@@ -90,7 +90,7 @@ module.exports = function (RED)
|
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
node_settings.temperature_outside =
|
|
93
|
+
node_settings.temperature_outside = new_temp;
|
|
94
94
|
break;
|
|
95
95
|
|
|
96
96
|
case "flow_min":
|
|
@@ -101,7 +101,7 @@ module.exports = function (RED)
|
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
node_settings.flow_min =
|
|
104
|
+
node_settings.flow_min = new_flow_min;
|
|
105
105
|
break;
|
|
106
106
|
|
|
107
107
|
case "flow_max":
|
|
@@ -112,7 +112,7 @@ module.exports = function (RED)
|
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
node_settings.flow_max =
|
|
115
|
+
node_settings.flow_max = new_flow_max;
|
|
116
116
|
break;
|
|
117
117
|
|
|
118
118
|
default:
|
package/light/light.js
CHANGED
|
@@ -247,8 +247,11 @@ module.exports = function (RED)
|
|
|
247
247
|
() =>
|
|
248
248
|
{
|
|
249
249
|
isBlinking = false;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
if (!node_settings.alarm_active)
|
|
251
|
+
{
|
|
252
|
+
node.send({ payload: node_settings.last_value });
|
|
253
|
+
setStatus();
|
|
254
|
+
}
|
|
252
255
|
},
|
|
253
256
|
helper.getTimeInMsFromString(msg.time_on, 500)
|
|
254
257
|
);
|
|
@@ -67,4 +67,8 @@
|
|
|
67
67
|
<label for="node-input-long"><i class="fa fa-hand-o-up"></i> <span data-i18n="long-press.ui.long"></span></label>
|
|
68
68
|
<input type="text" id="node-input-long" />
|
|
69
69
|
</div>
|
|
70
|
+
<div class="form-row">
|
|
71
|
+
<label for="node-input-outputs"><i class="fa fa-hashtag"></i> <span data-i18n="long-press.ui.outputs"></span></label>
|
|
72
|
+
<input id="node-input-outputs" />
|
|
73
|
+
</div>
|
|
70
74
|
</script>
|
|
@@ -128,4 +128,8 @@
|
|
|
128
128
|
<label for="node-input-out4"><i class="fa fa-hand-o-up"></i> 4x</label>
|
|
129
129
|
<input type="text" id="node-input-out4" />
|
|
130
130
|
</div>
|
|
131
|
+
<div class="form-row">
|
|
132
|
+
<label for="node-input-outputs"><i class="fa fa-hashtag"></i> <span data-i18n="multi-press.ui.outputs"></span></label>
|
|
133
|
+
<input id="node-input-outputs" />
|
|
134
|
+
</div>
|
|
131
135
|
</script>
|