Some of you might be interested in another driver I’m working on now that may be helpful in your efforts to port webcore pistons to automation routines/Rules. It provides two main functions: timer for how long a switch has been ON, and a counter that can be incremented or decremented via pushbuttons or linked to the switch state. See this topic if you are interested. I have a driver available for testing.