Hello I have the following piston created and I was hoping that I could get some assistance with it. The goal I’m trying to accomplish is to have a motion sensor turn on a light for two minutes, but used CoRE because before if the light was already on the regular routine I had setup caused the light to time out and changed brightness. Now my issue is that if the motion sensor triggers the light and I turn it off and then back on before the two minutes are up and then it will turn it back off when the two minutes expire. How can I get it so that it stays on?
You will get the quickest answer if you post your question to the end of the Core peer assistance thread. That’s where most of the core experts hang out.
Your best bet will be splitting your actions up into a latching piston like above. You can substitute your condition of the light being off where I have the mode selection. I would also move the time into the IF section instead of under the action section.