Hello
i do check for a device if the ping is false i got a Telegram Message!
because i don't like to get every 30Second a Message i have added a trigger Node to wait 180min.
I have a manual inject Node with the msg.reset and true this will reset the trigger Node.
i would like to have a "switch?" if ping time is >1 the the trigger should be reseted
Not sure if I fully understand your question, but have you looked at a 'delay' node set to rate limit, instead of a 'trigger' node?
Then you will only get 1 alert in any time period that you wish.
merci @Paul-Reed
my trigger node do the same - but with a inject node you can brake this delay.
imagine you ping a device (all 30s) - device is out of service - so i would get all 30sec a Telegram Information.
So I add inbetween the trigger node and then it wait 180min for the next message.
but with the inject i could brak it.
So now i would liket to have a Node (if ping result over 1 (so it is not false) then reset the trigger for the delay
You can use a Switch to check for ping OK and then feed that into a Change node to set msg.reset, as in the flow below.
If you already have a Switch node to detect the ping failed and use that to start the trigger then you can probably use the Otherwise case in the switch rather than use another Switch
@Colin
thanks a lot - more then perfect!
i did add the information to my switch and added your change Node and it works perfect.
device is off i got a telegram Message telling me then wait 3h.
as soon changed the battery i comes back to life and the trigger node is resetted.
Merci
vinc