@mschaeffler/node-red-logic 3.0.1 → 3.0.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.
@@ -108,6 +108,19 @@
108
108
  <h3>Output</h3>
109
109
 
110
110
  <p>Trigger message, in case an edge is detected.</p>
111
+
112
+ <dl class="message-properties">
113
+ <dt>topic <span class="property-type">string</span></dt>
114
+ <dd> name of the input channel.</dd>
115
+ <dt>payload <span class="property-type"></span></dt>
116
+ <dd> output value defines in <code>rise Output</code> or <code>fall Output</code>.</dd>
117
+ <dt>value <span class="property-type">number</span></dt>
118
+ <dd> last input value for <code>topic</code>.</dd>
119
+ <dt>edge <span class="property-type">string</span></dt>
120
+ <dd> <code>"rising"</code> or <code>"falling"</code> according to detected edge.</dd>
121
+ <dt>init <span class="property-type">boolean</span></dt>
122
+ <dd> <code>true</code> in case of an initialization message without really an edge detection.</dd>
123
+ </dl>
111
124
 
112
125
  <h3>Parameter</h3>
113
126
 
@@ -79,6 +79,7 @@ module.exports = function(RED) {
79
79
  context.set( "data", data );
80
80
  msg.payload = edge ? node.outputRise : node.outputFall;
81
81
  msg.edge = edge ? "rising" : 'falling';
82
+ msg.init = last === undefined;
82
83
  send( msg );
83
84
  }
84
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "description": "nodes for simple operations.",
5
5
  "license": "LGPL-2.1",
6
6
  "homepage": "https://github.com/m-schaeffler/node-red-my-nodes/tree/main/node-red-logic",