The scenario I’m trying to accomplish is to trigger lights in my living room to turn on if the brightness drops below a certain threshold AND there was motion detected in the room in the last 60 minutes.
I can’t seem to find a way in node-red to check if a certain sensor had a certain state in the past X minutes. Can someone point me in the right direction on this one?