You could connect the ballasts to a switchable plugbar (if you have one) and switch the socket on/off at the appropriate times