Trigger event if reset topic/message was not been received, after alarm msg

Hi all.

I'm getting a message on a mqtt topic when grid fails,
value == 1 Grid Feed
value != 1 Grid Failed
I want to wait 60 seconds on a Grid Failed message, and first see if grid returns, if not returned then make alarm.
Please help....
G

Feed the message into a Trigger node set to initially send nothing, then to send the alarm message after 60 seconds. Also configure the node to reset if msg.payload is 1. Note that it is probably the string 1 not the number 1. You can check that in a debug node.
The result is that any fail message will start the trigger timeout, but the ok message will reset it.

1 Like

thanks, will give it a try.
G