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 CHANGED
@@ -109,4 +109,12 @@
109
109
 
110
110
  ## Version 0.4.7:
111
111
 
112
- - Added blink topic to light node
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": 0,
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": "flow_min",
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 = msg.payload;
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 = msg.payload;
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 = msg.payload;
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 = msg.payload;
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
- node.send({ payload: node_settings.last_value });
251
- setStatus();
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
  );
@@ -17,6 +17,7 @@
17
17
  "save_state": "Zustand speichern",
18
18
  "send_after_start": "Letze Nachricht 10 Sekunden nach dem Start senden",
19
19
 
20
+ "send_nothing": "Nichts senden",
20
21
  "send_only_change": "Nur bei Änderung",
21
22
  "always": "Immer",
22
23
  "common_output": "Gemeinsamer Ausgang",
@@ -17,6 +17,7 @@
17
17
  "save_state": "Save state",
18
18
  "send_after_start": "Send last message 10 seconds after start",
19
19
 
20
+ "send_nothing": "Send nothing",
20
21
  "send_only_change": "Only on change",
21
22
  "always": "Always",
22
23
  "common_output": "Common output",
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",