Block unless value changes

Hello.
I have a problem with the Filter-node, and more specific: When I use "Block unless value changes"
It works like a charm and I get a SMS everytime the value changes, Great!, ...until I work with another completely different flow.
Everytime I press "Deploy" I'll get a bunch of SMS from all the nodes that uses the filter-node with the "Block unless value changes", even if the value is the same.
What can I do to avoid this?

I assume you are using "full" deploy mode. This tares down and recreates all nodes (including the in-memory filter of the RBE/filter nodes)

Use "nodes" deploy mode instead.

The better solution is to use a database or other persistent storage to check if the message was sent instead of depending on in-memory state.

Try setting the deploy to only modified nodes, then the filter will only reset if you modify the filter node.

Also you might want to set the Filter node mode like this, so that it never passes the first message through.
image

Thanks both of you!
I have used Node-red for quite some time, but never reflected
over the different settings for deploy! :slight_smile: