Hello, new user here... I'm trying to figure out why a flow isn't working as expected.
First, though, I've exported the flow from Node-Red which is installed inside my Home Assistant on a Raspberry Pi. I'm attaching it as a json file and I'm hopeful that folks here can read it. Let me know if it's not useable as attached.
My flow is designed to turn my desk lamp on and off via a motion sensor and during work hours I want it to go off after 10 min unless the motion sensor picks up another motion. On weekends I want the delay to be only 2 min.
The way it is now, it is turning on correctly with motion, and turns off correctly on weekends - but during the week it does not wait 10 min before going off.
I suspect there is some basic logic with one or more of these nodes that I don't fully grasp, but if anyone can point me in the right direction, it would be most appreciated.
flows.json (3.3 KB)