Thanks mate for reply
I try to turn off mining when electricity price is too high.
The only problem is if you are going to use Awesomeminer you will need to use their modded firmware and flash it to your unit to enable SSH and Privilege API.
Another option is by flashing your unit with Braiins OS to get more features like schedule shutdown/power off the miner and schedule when you need to run it again.