node-red-contrib-state-machine
node-red-contrib-state-machine copied to clipboard
State-based outputs and message routing
In using the state machine node I found that I was always creating a switch node to handle each state differently. Rather than continuing this repetitive and error-prone practice (the switch states were an exact copy of the SM states and text needed to be updated in both if the name of the state changed), I incorporated the concept of state-based message routing into the state machine node itself. Feel free to change text as you see appropriate.