Closed andersonimes closed 3 years ago
Here is my current flow to show you what I mean. It is super close to working correctly. If it didn't reset the timer and instead just restarted it, it'd be perfect.
Would it work for you if you set a flow variable (lets say currentDelay) in your two function nodes (to 2 or 20 respectively), and have the motion detection outputs go into a change node which sets msg.delay to flow.currentDelay before going into the timer?
Like this (showing just part of your flow above)
Yeah, that will probably work! Thanks!
Hello! I have a scenario where I'd like my lights to:
So basically I want to have the ability to change the delay (this works!), but additional motion actions I want to merely reset the clock as is, rather than back to the default 2 minutes. What's your recommended way of solving this? It's so close, but motion events completely reset the delay rather than just restarting it to what it was last overriden to.