If you got this working can you send a snapshot of what your flow looks like? I’m new to node red and I can’t figure out out to keep the lights on. My flow is a lot simpler than what you have. I have a sensor in event state and a trigger to turn light off after 5 minutes. I just can’t figure how to keep on if no motion.