Publicly-owned Great British Energy has awarded mayors grant funding to roll out projects such as solar panels on community buildings to cut bills.