arduino+ctsensor

My project is:
1- I have 3 devices (refrigerator, washing machine and a television) I need to take a current for each device and connect it to the Arduino (done that by the ct sensor and connected them , and I want to display on the LCD how much of current I consume from the maximum to the minimum)
2- I have 2 sources of electricity connected to the arduino : governmental and the generator (but I don’t know how to connect them).I need when the governmental electricity goes off the higher 2 currents shown on the LCD goes off and keep the 3rd and after discussion turn the generator on and keep the 3rd device on, and in case the governmental electricity came give it the priority.
3- I want to use an Automatic/manual button, in case automatic is chosen the system does what is explained in (number 2) and in case of manual I can choose from the LCD from the devices on which one to turn it off.