smart-nodes 0.7.0 → 0.7.2
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
|
@@ -257,3 +257,12 @@
|
|
|
257
257
|
|
|
258
258
|
- Added support of home assistant boolean values "on" and "off"
|
|
259
259
|
- BREAKING CHANGE: The forwarder node is only using set_forwarder and set_forwarder_state topics.
|
|
260
|
+
|
|
261
|
+
## Version 0.7.1:
|
|
262
|
+
|
|
263
|
+
- Small bugfix in mode-selector node.
|
|
264
|
+
|
|
265
|
+
## Version 0.7.2:
|
|
266
|
+
|
|
267
|
+
- Shutter complex node is adding a 5 seconds longer time for actions up and down, to really get to the end.
|
|
268
|
+
- Text exec node now understands blink and toggle for light nodes.
|
package/SmartNodesContext.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"idn1":{"last_position":0,"last_direction_up":
|
|
1
|
+
{"idn1":{"last_value":false,"last_value_before_alarm":false,"last_value_sended":false,"alarm_active":false,"last_position":0.001666666666666667,"last_direction_up":true,"last_position_before_alarm":0.001666666666666667}}
|
package/light/light.js
CHANGED
|
@@ -86,7 +86,7 @@ module.exports = function (RED)
|
|
|
86
86
|
|
|
87
87
|
if (typeof msg.payload === "boolean" || msg.payload === "on" || msg.payload === "off")
|
|
88
88
|
{
|
|
89
|
-
msg.payload =
|
|
89
|
+
msg.payload = helper.toBool(msg.payload);
|
|
90
90
|
|
|
91
91
|
// Syntax: set_mode#MODE_NAME and payload is boolean
|
|
92
92
|
// If payload is true, set to MODE_NAME
|
package/package.json
CHANGED
|
@@ -360,7 +360,7 @@ module.exports = function (RED)
|
|
|
360
360
|
case ACTION_UP:
|
|
361
361
|
// data is the run time
|
|
362
362
|
if (data == null)
|
|
363
|
-
run_time_ms = node_settings.last_position * max_time_up / 100 * 1000;
|
|
363
|
+
run_time_ms = node_settings.last_position * max_time_up / 100 * 1000 + 5000; // Add 5 seconds to ensure shutter reaches the end
|
|
364
364
|
else
|
|
365
365
|
run_time_ms = helper.getTimeInMsFromString(data);
|
|
366
366
|
break;
|
|
@@ -368,7 +368,7 @@ module.exports = function (RED)
|
|
|
368
368
|
case ACTION_DOWN:
|
|
369
369
|
// data is the run time
|
|
370
370
|
if (data == null)
|
|
371
|
-
run_time_ms = (100 - node_settings.last_position) * max_time_down / 100 * 1000;
|
|
371
|
+
run_time_ms = (100 - node_settings.last_position) * max_time_down / 100 * 1000 + 5000; // Add 5 seconds to ensure shutter reaches the end
|
|
372
372
|
else
|
|
373
373
|
run_time_ms = helper.getTimeInMsFromString(data);
|
|
374
374
|
break;
|
package/text-exec/text-exec.js
CHANGED
|
@@ -132,6 +132,34 @@ module.exports = function (RED)
|
|
|
132
132
|
}
|
|
133
133
|
break;
|
|
134
134
|
|
|
135
|
+
case "blink":
|
|
136
|
+
case "blinken":
|
|
137
|
+
// node.log("Set action to blink");
|
|
138
|
+
mode = "light";
|
|
139
|
+
action = "blink";
|
|
140
|
+
if (performAction(mode, action, number, affectedNodes))
|
|
141
|
+
{
|
|
142
|
+
action = null;
|
|
143
|
+
affectedNodes = [];
|
|
144
|
+
number = null;
|
|
145
|
+
without = false;
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
|
|
149
|
+
case "toggle":
|
|
150
|
+
case "umschalten":
|
|
151
|
+
// node.log("Set action to toggle");
|
|
152
|
+
mode = "light";
|
|
153
|
+
action = "toggle";
|
|
154
|
+
if (performAction(mode, action, number, affectedNodes))
|
|
155
|
+
{
|
|
156
|
+
action = null;
|
|
157
|
+
affectedNodes = [];
|
|
158
|
+
number = null;
|
|
159
|
+
without = false;
|
|
160
|
+
}
|
|
161
|
+
break;
|
|
162
|
+
|
|
135
163
|
case "aus":
|
|
136
164
|
case "off":
|
|
137
165
|
case "ausschalten":
|