Security System

A security system based on the node dynamic state machine dsm.
Please take a look at the wiki on Github for more details and a flow to download.

https://github.com/cflurin/node-red-contrib-dsm/wiki/Security-System

Note: you need to instal the node node-red-contrib-dsm

I donā€™t know if you looked or not, but there already is a Finite State Machine node for Node Red (https://www.npmjs.com/package/node-red-contrib-state-machine). If it didnā€™t suit your needs, then it is better to ask for changes to be made than create a new one.

One thing you need to be careful about using the inject node to set the configuration of downstream nodes is that the inject node does not fire immediately at start up. This may result in a period where your dsm node is receiving inputs but is not configured.

  1. Sure I did first search and I've found 2 fsm nodes!
    https://flows.nodered.org/node/node-red-contrib-fsm
    and yours, so I'm wondering why did you create a new one?

  2. I tested your node and I also asked you for a new feature but unfortnally first I didn't get an answer and had to ask again and the second time there was no answer at all!

But anyway I like node-red and its ability to create new nodes.

1 Like

Fair enough. Sorry, I hadnā€™t connected your two accounts together. Yes, you did ask for a change. Just remember that like many contributors, we do this in our spare time and donā€™t always immediately respond. The change your were proposing had a potential complication that meant that it may not always work as you expected and I put it on the to-do list to look into it more closely when I had time.

I did actually search for a state machine node before I wrote mine. Interestingly, the node-red-contrib-fsm node didnā€™t show up because description doesnā€™t actually contain the term ā€˜state machineā€™. There is a lesson in that for all of us.