I noticed in my hallway that my hue motion sensor didn’t consistently trigger turning on my light strip (actually more not working that it was working).
So I decided to turn it off in the hue app and use nodered, since the motion trigger did go off in HA.
I then start the light strip and start a 5 minute delay to turn it off again.
I also used a little “clear message” trick to reset the 5 minute count.
When triggered, it goes to the 5 minute delay instantly with a msg.reset:
Simultaneous, it delays for 1 second to send a start delay of 5 minutes.
This, when the light is already on, the 5 minute countdown is reset and starts again on new motion.
This is the full setup:
And very stable, works every time (sometimes it just triggers after about 5 seconds instead of instantly)