AwesomeMiner is your guy, it is free for a single miner, however, you are going to have to use thier distribution of vanish to have more flexibility in the trigger/action/rule.
You can automate everything you ever thought of, you just need to give yourself some time to get familiar with the software, they have a support topic here which you can use to get help on things you don't fully understand.