Take action based on multiple notification devices #254
Replies: 1 comment 1 reply
-
Use a node such as Boolean logic. https://flows.nodered.org/node/node-red-contrib-boolean-logic-ultimate You can emit a true or false, based upon multiple (differently timed) events. I use it in such a way that one of my sensors must be true (OR) but you can use it in AND mode (all sensors must be a certain value) You just have to program your logic around it - it works extremely well. It uses topics to identify inputs (you must pass true or false for each topic) - can be at different times. In OR mode - one must be true, to return true, else it's false In AND mode - all Must pass true to be true else false. Then you can react on the overall output (true or false) This node is designed to exactly cator for your needs |
Beta Was this translation helpful? Give feedback.
-
I have a three door sensors that send out notification events (command class 113). I would like to take action when I get an event from one of these sensors, but the action I take is based on the state of all three sensors. The only thing I can think of is to maintain context for all three sensors and then read the context in a function node to take the desired action. Is this the way to do this, or is there something easier?
Beta Was this translation helpful? Give feedback.
All reactions