Problems with the trigger node when switching from 1 to 0

Hi,

I have a problem with the trigger node. If first a "1" is applied to the input and then a "0" then the trigger node makes the "0" again a "1"

But I would like that if a "1" is applied to the input this is also 5 seconds at the output. But if a "0" is applied to the input should continue to be a "0" at the output and not as now 5 seconds a "1".

[{"id":"64d54ff7.5e66f","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"61ed6400.86d44c","type":"trigger","z":"64d54ff7.5e66f","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"5","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":350,"y":360,"wires":[["fc9a7f7f.3e85d8"]]},{"id":"fc9a7f7f.3e85d8","type":"debug","z":"64d54ff7.5e66f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":750,"y":360,"wires":[]},{"id":"9cbd3877.9c64e8","type":"inject","z":"64d54ff7.5e66f","name":"","topic":"1","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":360,"wires":[["61ed6400.86d44c"]]},{"id":"bcfeb78c.4d3bf8","type":"inject","z":"64d54ff7.5e66f","name":"","topic":"0","payload":"","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":420,"wires":[["61ed6400.86d44c"]]}]

Is there a solution to the problem?

Excuse my English. This text was written with a translator

Greeting Volker

Hi.

I think you will need to explain it another way.

The trigger node may not be what you really want/need.

This node (as you have it set) waits for an input signal to trigger it.
When triggered, it sends a 1 then waits 5 seconds and sends a 0.

Node-red doesn't support

It sees the 1 appearing on/at the input and sends a 1 to the output.

Ok, it could be said that it remains there because in 5 seconds a 0 is sent.
That is true in saying what happens, but I think there is a problem with what you want and what you are getting.

I got it. After the trigger node, I set a switch node that can only output a "1". Not nice but it works

It might make more sense to put the switch node on the input of trgger node, so you only send '1' messages to the trigger.