I have an arrival piston that I use to turn on lights when someone arrives. Everything has been working until I recently added the last IF Statement. In the final statement, I am trying to have it check if a presence sensor has arrived within the last 5 minutes along with a particular door being opened. If those two things happen, then I want to have another light come on and then return to it’s previous state after 3 minutes. At the same time, the original lights should come on and return to their previous state.
Before I added the last statement, the lights would turn on and then resume their previous state. Now with the statement added, the lights com on, but never resume their previous state. I’ve since commented out the last statement and things still work as expected.