Webcore piston running twice in a row for some reason

Why is this script running twice in a row? As far as I see, my conditions are sound. Only if the appliance is on the script should run. But after the first run (as you see at the end of the first run the dryer turns off) it runs one more time. Even more bothersome, as someone explained to me in a different post, if I have a wait condition, after the wait the script is reevaluated to make sure the initial IF is still valid. So if that's the case, this should never run a second time because the power would be 0.

Without seeing the logs it is hard to say but I would guess your getting another trigger before the piston's first run is complete.

You might be better served to go over to the Webcore forum and ask, you will probably get more experience webcore users that can give you a better answer.

My 2 cents.... Your wattage range in your first IF is quite narrow for a dryer. Expand the range and see what happens.