I have 4 outdoor motion sensors and I want to only trigger the outdoor lights when two of them have been triggered within 60 seconds of each other - this should prevent moths and other insects from triggering the lights in the night.
This is beyond my nodered expertise, I've don't lots of nodered so I get most of the basic concepts but I need a pointer on how to solve this is someone is able to help?
That's how I would have done it. But I am very picky about keeping my palette as lean and mean as possible, so tend to do as much as possible in the built-in nodes. The built-in nodes are guaranteed to be supported and updated node-red release to release, and node.js release to release... User ones - well, not so much.
Yeah that seems to be a very sensible approach.. I probably need to be more vigilant about that. I do tend to encapsulate 3rd party stuff in subflows where feasible which allows me to easily tweak things and provide consistent behaviors across flows/sequences. I did get a burned on the "Unsafe Function Node" behavior diverging from the system one after a few updates and had to swap it out.