Disable communication between nodes by trigger

I have a set of nodes that, depending on some events, make a button enabled or disabled (sending msg.enabled=true/false). This state is sent to the button every 3 seconds. There is also an event that should enable or disable the same button for 10 seconds, while the previous trigger should not change this state. How can I implement this?

Welcome to the forum @IvanPoluda.

You could use a Trigger node in combination with a node-red-contrib-simple-gate. The gate node can block the regular update based on the trigger node messages, which also disable/enable the button.

1 Like

Colin, thank you so much! This is exactly what I was looking for! Have a nice day!))

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.