Could smart buildings become energy suppliers?