- Population numbers have fallen across Ukraine, with more than eight million refugees beyond its borders, and that too has put less strain on the energy infrastructure.
- Consumption is down and the refugees have not yet come back, as one official remarked.
Ukrainians are enjoying the onset of spring. The nights are still cold, but they are emerging from a winter of Russian missile strikes that have cut their power, heating and their water too.
The winter was very hard but it was now over, declared President Volodymyr Zelensky. Ukraine still had heat and the country was unbreakable, was the message.
Until Thursday, Ukraine had just gone for more than three weeks in a row with no blackouts and and even had surplus in the system.
There had been no Russian attacks for three weeks either, and it looked as if Vladimir Putin's battle to bring down Ukraine's supply was over.
"Yes, we're doing it, but who started it?" he said in December, pinning the blame on Kyiv.
It was a far more desperate story at that point. As much as half the energy infrastructure was damaged and a Ukrainian nuclear security expert warned the situation was close to critical.
But during those weeks of quiet, Russia had been stocking up weaponry. In the early hours of Thursday it fired 81 missiles and left four regions grappling with emergency power cuts. By Friday, half a million people still had no power in Kharkiv, Ukraine's second-biggest city.
"It's totally cold now. We have food, but only part of it has been cooked," said Oleksii as he watched the battery life on his mobile phone slip to 14%.
Another 500 people live in his block of flats, and when he went to his local "invincibility centre" to power up his phone, there were too many people with the same idea.
Another 150,000 people were left with no power in Zhytomyr, two hours' drive south of the Belarus border. The mayor said the next few weeks would be critical and rolling blackouts are looming for this city west of Kyiv.
"We had three weeks without attacks and we had power," said Eugene Herasymchuk. "And the power in the system allowed local authorities to start up the trolleybuses and trams. That was a big step because before that, public transport was on a pause."
Kyiv was also hit and one hospital treating 700 people went without heating and hot water for several hours. But for many Ukrainians, it was not long before they were back on the grid.
"It's safe to say that Ukraine won on the energy front," said Tetyana Boyko from civic network Opora, praising the fleet of energy workers and international help. "Let's pray, but I think the worst-case scenario is over."
The winter may be over, but Oleksii believes the battle to save Ukraine's power supply from Vladimir Putin's missiles will continue as long as Russia has the ability to strike it.
Every one of Ukraine's thermal and hydroelectric power plants has been damaged since Russia launched its assault on the energy infrastructure last October. Kyiv had already lost the use of Europe's biggest nuclear power plant at Zaporizhzhia, which is in Russia hands.
Sub-stations have been reduced to hunks of twisted metal, no longer capable of transforming the electricity to power for homes and businesses.
For two weeks in the depth of winter, the BBC followed teams of engineers and technicians rushing to repair the damage that the missiles had done.
One substation had been hit six times with missiles or drones and replacing these damaged transformers will take time.
Transformers soon became Ukraine's number one requirement. It needed more than the world could produce in a year and so far only one high-voltage transformer has been sent, while dozens of lower-power machines have arrived.
As the winter wore on, Ukraine's armed forces grew more adept at shooting down Russia's missiles and drones.
But this week, only 34 of the missiles were destroyed, because Russia used different, high-speed weapons. They included hypersonic Kh-47 Kinzhal missiles as well as anti-ship and anti-aircraft missiles.
"They can cause huge, huge destruction," said one industry official.
Until Russia's full-scale war on Ukraine began in February 2022, there were 15 nuclear reactors on stream at four power stations. Six of those reactors were at Zaporizhzhia, seized by the occupying military in the early days of the invasion.
For months, the plant has been at the centre of a high-stakes nuclear row, amid accusations that Moscow wants to connect it to Russia's electricity grid.
The other three power stations are South Ukraine and Rivne and Khmelnytskyi in the west. Between them, they now produce half of Ukraine's power.
That may sound bleak, but a combination of an unusually mild winter and sheer hard work means Ukraine has moved back from the brink and the sense of optimism is palpable.
Power plants have been restored and repaired. One source in the industry told the BBC that as the days became sunnier and warmer, it would become harder and harder for Russia's military might to terrorise his country.
The east-central city of Dnipro has endured several deadly missile strikes over the winter, and this week was no different.
But there have been no problems for weeks with energy supplies.
"The city has transformed. Finally, street lights are back, and it's no longer scary to walk the city streets," said Inna Shtanko, a young mother with a son under the age of two.
Cooking and having a hot shower have become part of the daily routine once more for her family. "Our psychological state has improved considerably, because our family and other mothers too can easily plan our day."
There's a similar story in Kherson, occupied by Russian forces until they retreated across the Dnipro river last November.
Life was hard for several weeks after the Russians left the southern city with no basic utilities.
"We didn't have any electricity for about month and a week, then we had it for two hours a day, then gradually it stopped breaking," said local entrepreneur Alexei Sandakov.
Now he boasts a regular power supply, although the pressure on the system is far lower than before the war because the population of 55,000 is a fraction of what it was before the Russians invaded.
Population numbers have fallen across Ukraine, with more than eight million refugees beyond its borders, and that too has put less strain on the energy infrastructure. Consumption is down and the refugees have not yet come back, as one official remarked.
The overall sense is that the damage caused by this latest wave of missiles will be repaired quickly.
There was considerable damage, but engineers have become highly skilled at restoring power within days, even after a major attack.
"It's like a competition: how quickly can they cause us damage and how quickly can we repair. And we are winning that competition," said Oleksandr Kharchenko, director of Kyiv's Energy Industry Research Centre.
In Zhytomyr, Eugene Herasymchuk believes things are looking up. "A lot of Ukrainians say it's better to have one cold and one dark winter than 100 years with Russia - so I think we can handle this."
Ukrainians now have everything on their side, according to Mr Kharchenko, from the improving weather to the support of international donors and the professional of staff in the energy industry. But he is more guarded about the future.
"I don't say we've won the energy war, but I can say we won the energy battle this winter."