node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version 1.0.57 to 1.0.58
@@ -25,2 +25,5 @@ module.exports.ToBoolean = function ToBoolean(value) { | ||
if (value.toLowerCase() === "home") return true; | ||
if (value.toLowerCase() === "not_home") return false; | ||
} else if (typeof value === 'number') { | ||
@@ -27,0 +30,0 @@ // Is it formated as a decimal number? |
@@ -7,2 +7,7 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.0.58</b> December 2022<br/> | ||
- NEW: added string conversion from "home", "not_home" to boolean.</br> | ||
- Updated the README</br> | ||
</p> | ||
<p> | ||
<b>Version 1.0.57</b> September 2022<br/> | ||
@@ -9,0 +14,0 @@ - Added node help in the node-red help tab.</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.0.57", | ||
"version": "1.0.58", | ||
"description": "A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
@@ -38,2 +38,4 @@ # node-red-contrib-boolean-logic-ultimate | ||
| "0" | false | | ||
| "home" | true | | ||
| "not_home" | false | | ||
@@ -204,4 +206,4 @@ | ||
This node has 2 outputs.<br /> | ||
If the input payload is true, the node will send <code>true</code> on output 1 and nothing on oputput 2<br /> | ||
If the input payload is false, the node will send nothing on output 1 and <code>false</code> on oputput 2<br /> | ||
If the input payload is true, the node will send <code>true</code> on output 1 and nothing on output 2<br /> | ||
If the input payload is false, the node will send nothing on output 1 and <code>false</code> on output 2<br /> | ||
The input message is preserved and passed to the output, changing only the topic and the payload. If the input message has it's own topic, it'll be preserved as well.<br/> | ||
@@ -208,0 +210,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1240205
945
487