1) Give a description of the problem
I would like to make a piston that is capable of turning on a variable based on a motion sensor changing from inactive -> active a set number of times.
2) What is the expected behavior?
Example: If Motion sensor is changed to active X number of times then set variable to true. This variable in turn would be used to control other functions.
3) What is happening/not happening?
I do not see a way of writing a piston to count motion events. I would think this could be accomplished with some variable, but I am still new to webcore and was wondering if anyone had any tips they could provide!