The German government has agreed on plans to subsidize gas power plants that can switch to hydrogen, which will be produced with renewable energy.