Send or intercept inject node only when required

Hello,
I have the following question.
an Inject Node should trigger my AVR amplifier every few seconds to get the status. But when the amplifier is off, I get error messages all the time.
Can I set up the Inject Node so that the payload only goes through when a ping arrives?

Thank you very much for your support
Roland

somehow between Inject and Get Node as an example

The ping node will return: a number if it gets a response, or else false.

Use a switch node to only pass the message if msg.payload is a number, then a change node to setup whatever you need for your get zone status node.

Since the ping node can fire at specified intervals, no need for an inject node.

1 Like

Hello jbudd,
yes, that's what I thought too ...
I think it could work like this