# iglass-logic-nodes

[Node-RED][1] contribution package with nodes to simplify configuration of logic.

## Installation

Run the following command in the root directory of your Node-RED install

    npm install iglass-logic-nodes
    
## Nodes description

### iGlass-logic-invert

Node for invert input logical value.

### iGlass-logic-variable-set

Node for set the variable value.

### iGlass-logic-variable-get

Node for get the variable value.

### iGlass-logic-variable-condition

Node for check the condition for current value of the variable.

### iGlass-logic-button-events

Node for generate button events.
Button events currently supported include:
 * Single click
 * Double click
 * Triple click
 * Quadre click
 * Hold started
 * Hold finished
You can also get total number of clicks.

### iGlass-logic-toggle

Node for toggle state.

### iGlass-logic-constant

Node for inject constant value.

## Authors

[iGlass Automation][2]

[1]:https://nodered.org
[2]:https://iglass.international/