How to make a flow with « if power is under xx watts for xx sec »?

Not exactly what you have asked but heve you seen this topic?
Washingmachine is ready

Works also for a dishwasher. My college uses it with a coffeemachine.
You have to play a little with the minimum and maximum power values.