I’m new to HA and Node-RED, coming from Hubitat and webCoRE. I’m learning Node-RED so I can eventually port my simpler Hubitat and more complex webCoRE automations to HA.
I have a Hubitat automation that controls the lights in the garage. It does this:
- When any of (Entry Door, Garage Door 1, Garage Door 2) are opened, turn on the lights.
- When all of the doors are closed, wait 5 minutes, then turn off the lights.
This is how I have reproduced this in Node-RED:
The problem is that I don’t know how to express “when all of the doors are closed”. This flow will trigger the timer (and turn out the lights) after any door closes. So, for example, if you leave one or both garage doors open and then open and close the entry door, the lights will go out when the timer expires. I want them to stay on so long as the garage door is open. I feel like I should be able to use “current state” nodes for this, but I don’t know how to tie them together to express “entry door is open OR garage door 1 is open OR garage door 2 is open”.
I imagine this must be a common problem, but I’ve searched around for a while and haven’t found a solution. Maybe I’m just too new at this to recognize any solution I’ve found.