For a few hours around lunchtime on a bright and windy day last month, Germany paid people to use electricity. The country’s investment in renewable energy has paid off so handsomely that green power sources produced almost enough electricity to meet national demand. Because the rest of the energy infra­structure — nuclear, coal and gas stations — was online too, the temporary surplus pushed prices on Germany’s spot market on 8 May into the negative. For a brief time, the more electricity that commercial customers used, the more money they made.

Just as the introduction of negative interest rates — banks charging customers to deposit money — have prompted more questions about the state of the world’s economy, so the events of 8 May have been used to throw stones at Germany’s energy transition, the Energiewende.

Critics of the Energiewende blame the generous support for renewables — including a guaranteed above-market price for producers, and grid priority for wind and solar power — for such grotesque market distortions and for Germany’s relatively high household electri­city bills. Indeed, private consumers in the country pay more than €20 billion (US$23 billion) in annual surcharges for the fixed feed-in tariffs that go to individual producers. In response to criticism, the government last week agreed to slow the scale and pace at which Germany will further expand renewable energy over the next decade.

Electricity that is produced from renewable sources (including hydropower) has tripled in Germany over the past decade, and now provides (on most days) almost one-third of domestic electricity generation. The 19% growth in renewable-power generation last year was the largest in at least a decade. In terms of renewable-power capacity, Germany is third in the world, behind China and the United States (see Trendwatch). But at 1.1 kilowatts per capita, the 92 gigawatts that the nation produced in 2015 represents more than twice the renewable power per capita of any other large economy.

The planned amendment of Germany’s renewable-energy act, agreed in principle last week, sets a 45% cap on the amount of renewable electricity generation by 2025. And, as demanded by Brussels, future promotion of wind and solar energy will be linked to tenders, favouring producers who generate renewable power at the lowest price. Unsurprisingly, the plan has upset parts of the renewable-energy sector — in particular, smaller companies, and millions of homeowners who have invested in lucrative rooftop solar panels — that fear the loss of market opportunities and revenue. Meanwhile, green lobby­ists say the reforms are a concession to the fossil-fuel sector that could send a false signal to countries that regard Germany as a role model. Overall, it might seem that the Energiewende — and, by extension, renewables investment elsewhere — has failed, or is falling from political grace in troubled times.

What Germany’s case illustrates is that energy transition must be backed by comprehensive plans.

That is wrong. Opinions will rightly differ on which fiscal and policy measures are best suited to promoting renewables. But controversies of microeconomics will not derail the grand decarbonization project that is under way.

What Germany’s case does illustrate is that this transition must be backed by comprehensive energy plans. To incorporate fast-growing, decentralized power generation into electricity grids requires improved networks, reliable tools to predict supply and demand, efficient storage and more-flexible conventional plants.

Science can help. In April, the German federal government approved a 10-year, €400-million programme for research on the technology — smart grid technology and energy storage, for instance — that will be needed for an energy system and a market dominated by renewable sources. Funders should ensure that projects address the problems faced by suppliers and users of electricity under real-world market conditions. Sceptics may celebrate the wrinkles as renewables bed into the energy market, but the long-term trend has been set.

Of course, Germany and other countries will continue to depend on coal and gas to meet electricity demands for at least a couple of decades — but then, massive subsidies ($500 billion globally in 2014, against $135 billion for renewables) mean that fossil-fuel power continues to be offered at a knock-down price. A realistic, climate-friendly energy system for the future demands greater reform of the oil and coal markets, rather than changes to the renewables sector.