Hey all, I can’t get this node-red flow to work. The thing I want is as follows: If my motion sensor is on, then send an API request to put my tablet screen on.
When there is no more motion detected, start a timer of x seconds (dynamically set input_number inside HA). Once there is motion in between, reset that timer.
Once the timer finishes, send another API call to put the tablet off.
I’ve this working now with a static Trigger node, but I want to put the dynamic input_number between it. This is my current one:
Got it working now with the stoptimer3 and a “stop” for the timer when motion is detected after the off state and on state. I see that the trigger node itself can use dynamic variables as well? I think I can improve some stuff about this flow: