Node Name: Toggle
User Guide Summary:
The toggle node has 2 outputs.
When triggered, the Toggle node alters the state of its outputs.
It accepts 3 inputs, and is driven by the ‘input-select’ node.
where:
Input 1: SET,
Input 2: RESET,
Input 3: TOGGLE
Set function:
Drives output 1 high, output 2 low.
Reset function:
Drives output 1 low, output 2 high.
Toggle function:
Inverts the existing output states on each high input.
If you wish to skip the input-select node:
Accepts a msg.payload of type JSON Object:
{"Input":1,"Value":true}
{"Input":2"Value":true}
{"Input":3"Value":true}
Each of the two outputs, emits a message of type JSON Object:
{"Value":true} or {"Value":false}