Without having read all the detail from this post, am wondering whether one of the laundry monitor apps based on energy monitoring outlets might do what you want, the one I use includes a "power must be below a threshold for X readings" style logic.
This the app: