StackOverflowError (devicehandler) from piston


Hey, I have several pistons similar to this one and it seems like the async statements are causing some issues. If I press the light switches frequently I get this error:

org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.StackOverflowError (deviceHandler)


Is there a better way to do what I’m trying to do? Which is to change my dimmer level to the average of my hue lights?