#How to reset trigger node in Node-red

1 messages · Page 1 of 1 (latest)

crude stone
#

Have a state node that triggers a trigger node, and this trigger node repeats every 20 seconds an action.
When the state node switches off the trigger node remains triggering the action.
What should I change to stop the trigger node when the state nodes 'false' is active?

crude stone
#

So if the HA entity is 'off' the trigger node should stop repeating....

amber quiver
#

Not very fluent in NR but I think you want the off/uit node to also send the state of the entity in msg.payload. Now you send the content of msg.reset in msg.payload which i'm not even sure is defined. You're not sending a msg.reset in the output this way.

So just clone the on/aan node and only change it to check for the off state.

zinc ermine