Ukraine was scrambling to turn lights and heating back on Sunday after Russian attacks targeting energy infrastructure, with the state's power provider saying its generating capacity was reduced to "zero".