Set the mode by using the zone id
        Supported zones are available in the enum Mode

def set_mode_by_id(self, zone_id, mode):
        """
        Set the mode by using the zone id
        Supported zones are available in the enum Mode
        """
        if not self._do_auth():
            raise RuntimeError("Unable to login")

        data = {
            "ZoneId": zone_id,
            "mode": mode.value
        }

        headers = {
            "Accept": "application/json",
            "Content-Type": "application/json",
            'Authorization':
                'Bearer ' + self.login_data['token']['accessToken']
        }

        url = self.api_base_url + "Home/SetZoneMode"
        response = requests.post(url, data=json.dumps(
            data), headers=headers, timeout=10)

        if response.status_code != 200:
            return False

        mode_data = response.json()

        return mode_data.get("isSuccess", False)