1) Give a description of the problem
I am trying to understand the best way to cause something to happen at a specific point in time that is calculated based on other activity. So in this example I am trying to control lights based on a motion sensor.
2) What is the expected behavior?
Basically, I want the lights to turn off only if there has been a certain period of time with inactivity. The problem I’m having is figuring out how to structure the piston to accomplish this.
3) What is happening/not happening?
The piston I have shared works… most of the time. And I believe the flaw is in the fact that the second if statement is not actually a trigger. Therefore, if the trigger on the motion detector does not occur at the right point in time, the second if never gets executed and the lights never get turned off.
Also, I would like to read any further documentation on webCoRE that may help me understand fully how the system works. It is great and kudos on the design, I just wish I could get a deeper understanding of how the pistons work.
4) Post a Green Snapshot of the piston