Trigger node bogus delay

Thanks for saying so. Have fun!

I have landscapers redoing my whole yard and I'll need to pick up my dog whenever they call so I"ll be in and out too.

I sure appreciate your help and patience with a noob.

Hi. Your description sounds just as the trigger should work. Set it to send original payload on first input Then wait 15 secs then send false , and extend if more messages arrive. ( unless I am missing something)

Just remove the 'Reset the trigger if:
"

@dceejay Thank you for chiming in.

Yes, that's exactly what I want but not what I get. I'm rather disillusioned at this point.

Ok, @zenofmud, I'll go back to my initial flow setup and make that change. Stand by...

I get the same behavior as in posts 9 & 10.

I didn't change the Send as you suggested because I do NOT want a False to pass through.

Went ahead and made that change and it WORKS! But why??? Seems a massive misnomer to me.

Try this small test flow

[{"id":"f5e9d530.76c9f8","type":"trigger","z":"646a34cd.8135ac","op1":"","op2":"false","op1type":"pay","op2type":"str","duration":"5","extend":true,"units":"s","reset":"true","bytopic":"all","name":"","x":540,"y":140,"wires":[["a4364252.b15c7"]]},{"id":"626c36d3.55a858","type":"inject","z":"646a34cd.8135ac","name":"","topic":"","payload":"true","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":80,"wires":[["f5e9d530.76c9f8","169ecbb2.09a784"]]},{"id":"873247ff.addbe8","type":"inject","z":"646a34cd.8135ac","name":"","topic":"","payload":"False","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":180,"wires":[["f5e9d530.76c9f8","169ecbb2.09a784"]]},{"id":"a4364252.b15c7","type":"debug","z":"646a34cd.8135ac","name":"out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":710,"y":140,"wires":[]},{"id":"169ecbb2.09a784","type":"debug","z":"646a34cd.8135ac","name":"in","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":250,"y":140,"wires":[]}]

Will do but first I tried sending the False before the True and, as I feared, it gets passed through.

Interesting. Your flow does absolutely nothing here.

Maybe this is a problem?

desktop[~] node -v
v14.1.0

I see that there is an update v14.1.0 -> 14.1.0-2 available.

well node 14 is bleading edge... what platform are you running on?

If you only want to send a TRUE to kick off the lighting, then you will have to have the state of the light saved. so when a msg comes in. it the light is off, send the msg to the trigger to turn on the light, but if the light is off and a false comes thru throw it away.

Give me a few minutes

I'm on Arch Linux.

It's time to retrieve my pooch so I'll get back to you in about 45 min.

The recommended version of Node.js is 12.x - there may be things in node.js 14.x that could cause issues.

Here is a flow that should do what you want, it's more complicated but your requirements have changed.

[{"id":"646a34cd.8135ac","type":"tab","label":"trigger","disabled":false,"info":""},{"id":"f5e9d530.76c9f8","type":"trigger","z":"646a34cd.8135ac","op1":"","op2":"false","op1type":"pay","op2type":"str","duration":"5","extend":true,"units":"s","reset":"","bytopic":"all","name":"","x":520,"y":220,"wires":[["df75453a.e0d39","e12bfeb9.e36038"]]},{"id":"626c36d3.55a858","type":"inject","z":"646a34cd.8135ac","name":"","topic":"","payload":"true","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":80,"wires":[["169ecbb2.09a784","fc54715c.7d15e"]]},{"id":"873247ff.addbe8","type":"inject","z":"646a34cd.8135ac","name":"","topic":"","payload":"false","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":200,"wires":[["fc54715c.7d15e","169ecbb2.09a784"]]},{"id":"a4364252.b15c7","type":"debug","z":"646a34cd.8135ac","name":"out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":260,"wires":[]},{"id":"169ecbb2.09a784","type":"debug","z":"646a34cd.8135ac","name":"in","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":150,"y":140,"wires":[]},{"id":"fc54715c.7d15e","type":"switch","z":"646a34cd.8135ac","name":"input true","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"true","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":340,"y":140,"wires":[["fc515163.cdec1","6ec26b51.c6f65c"],["3089e3a4.c440fc"]]},{"id":"fc515163.cdec1","type":"change","z":"646a34cd.8135ac","name":"set light_state on","rules":[{"t":"set","p":"light_state","pt":"flow","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":140,"wires":[["f5e9d530.76c9f8","6bc16666.91b178"]]},{"id":"3089e3a4.c440fc","type":"switch","z":"646a34cd.8135ac","name":"light on?","property":"light_state","propertyType":"flow","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":340,"y":220,"wires":[["f5e9d530.76c9f8"],[]]},{"id":"df75453a.e0d39","type":"switch","z":"646a34cd.8135ac","name":"true/false","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"false","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":520,"y":260,"wires":[["9ca1b703.ee17d8"],["a4364252.b15c7"]]},{"id":"9ca1b703.ee17d8","type":"change","z":"646a34cd.8135ac","name":"set light_state off","rules":[{"t":"set","p":"light_state","pt":"flow","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":320,"wires":[["8180f656.46b83"]]},{"id":"6ec26b51.c6f65c","type":"debug","z":"646a34cd.8135ac","name":"input true","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":400,"y":60,"wires":[]},{"id":"e12bfeb9.e36038","type":"debug","z":"646a34cd.8135ac","name":"out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":220,"wires":[]},{"id":"8180f656.46b83","type":"debug","z":"646a34cd.8135ac","name":"out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":320,"wires":[]},{"id":"6bc16666.91b178","type":"debug","z":"646a34cd.8135ac","name":"out","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":160,"wires":[]}]

Fair enough, I think I can downgrade to that and will do so.

I'll give your flow a go. Thanks for providing it.

I beg your pardon if I didn't state my requirements clearly but they have not changed, not yet anyway.

There are lots of versions available so I'll pick 12.13.0 as it's the last of the 12.x

BTW, I don't recall coming across a requirement for the nodejs version so thanks for that.

That's me, livin' on the edge! :crazy_face:

NR didn't want to run after the nodejs downgrade so I'm updating all the (bleeding edge :wink:) packages and will reboot. One of the packages is
nodejs-node-red 1.0.6-1 1 -> 2

It figures... NR won't install with nodejs 12.13.0 due to:
error while loading shared libraries: libicui18n.so.64

I posted a request for advice over on that forum.

I was warned that the whole node.js environment is DLL hell on steroids. :upside_down_face:

It turns out that the Arch version of NR won't run on nodejs later than v6. I abandoned Windows partly because of this kind of thing so I'm saying goodbye to NR. Too bad because it is a GREAT idea and I hope someone builds a similar app on a stable environment.

Thanks one and all for your assistance here.