Set the mode by using the name of the zone

def set_mode_by_name(self, zone_name, mode):
        """
        Set the mode by using the name of the zone
        """
        zone = self.get_zone(zone_name)
        if zone is None:
            raise RuntimeError("Unknown zone")

        return self.set_mode_by_id(zone["zoneId"], mode)