node-red-contrib-boolean-logic-ultimate 1.0.63 → 1.1.1

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
@@ -3,6 +3,14 @@
3
3
 
4
4
  # CHANGELOG
5
5
 
6
+ <p>
7
+ <b>Version 1.1.1</b> October 2023<br/>
8
+ - Math node: FIX: fixed "measurement" and "average" not showing correct results when using the "subtract" option.</br>
9
+ </p>
10
+ <p>
11
+ <b>Version 1.1.0</b> September 2023<br/>
12
+ - NEW: Translator config node. Each boolean logic node can now translate the input payload to a boolean value. For example, you can add "done:true" to the translation table, to convert the input payload "done", to a boolean <i>TRUE</> value.</br>
13
+ </p>
6
14
  <p>
7
15
  <b>Version 1.0.63</b> September 2023<br/>
8
16
  - NEW: Comparator node. Compare the values from 2 input messages.</br>
package/README.md CHANGED
@@ -38,6 +38,7 @@ Other than true/false, all nodes accepts these strings and convert it to true/fa
38
38
  | "home" | true |
39
39
  | "not_home" | false |
40
40
 
41
+ You can add your own translation command, thanks to the translator-config node.
41
42
 
42
43
  <br/>
43
44
  <br/>
@@ -35,7 +35,8 @@
35
35
  }
36
36
  },
37
37
  restrictinputevaluation: { value: false },
38
- delayEvaluation: { value: 0 }
38
+ delayEvaluation: { value: 0 },
39
+ translatorConfig: { type: "translator-config", required: false }
39
40
  },
40
41
  inputs: 1,
41
42
  outputs: 3,
@@ -201,6 +202,15 @@
201
202
  (ms)</label>
202
203
  <input style="width:150px" type="text" id="node-input-delayEvaluation" placeholder="Set 0 for no delay">
203
204
  </div>
205
+ <div class="form-row">
206
+ <br />
207
+ <b>Translator</b>
208
+ <br />
209
+ <label for="node-input-translatorConfig">
210
+ <font color="green" size="4px"><i class="fa fa-sign-in" aria-hidden="true"></i></font> Input
211
+ </label>
212
+ <input type="text" id="node-input-translatorConfig" />
213
+ </div>
204
214
  </p>
205
215
  </div>
206
216
 
@@ -232,6 +242,7 @@
232
242
  | Remember latest input values after reboot | If checked, the input values are retained after a node-red reboot. That means, that if you reboot your node-red, you don't need to wait all inputs to arrive and initialize the node, before the node can output a payload. Every time you modify the node's config, <b>the retained values are cleared</b>.|
233
243
  | Reject non boolean (true/false) input values | If checked, the node will accept only boolean true/false values. Otherwise, it will try to convert the payload value to a logic true/false boolean. |
234
244
  | Delay evaluation (ms) | Delays the evaluation until this time (in milliseconds) is elapsed. Each time a message or "topic trigger message" (see **Trigger mode**) arrives, the delay is restarted. This option is useful for debouncing pourposes or simply for adding some delay. For example, you can turn on a light if the room is occupied for a long time, allowing people to fast transit repeatedly, without the need of turning the light on. Another example, if you have many sensors changing state rapidly, you can wait until these sensor reach a quiet state, then evaluate the inputs.|
245
+ | Translator Input | Translates the incoming <code>payload</code> value, to true/false. This allows the compatibility with, for example, **HomeAssistant** nodes. |
235
246
 
236
247
  <br/>
237
248