A bang-bang controller node for Node-RED with dynamic setpoints and outputs
https://github.com/blazewicz/node-red-contrib-bang-bang-controller.git
Bang-bang controller (2 step controller, on-off controller, hysteresis controller) is a feedback controller that switches between two states. [1]
Node sends one of two programmed output values on state change.
State changes from low to high when received payload value is greater than Threshold Upper.
Similarly, transition from high to low occurs when payload value is less than Threshold Lower.
Primary intended use of this block is a thermostat.