Solar cells and modules maker Hanwha Q Cells GmbH, or Qcells, has agreed to buy a 66% stake in German digital cloud platform company Lyngtech GmbH from municipal energy service provider Enercity AG to beef up its competencies in software and IT-based energy solutions.