def set_recurrence(self, date, days=None):
        """

        :param date: Datetime object time to start/repeat
        :param days: days to repeat (Defaults to one time alarm)
        :return:
        """
        if self.parent.get_time_dial() is None:
            _LOGGER.error("Not setting alarm, no time dial.")
            return False
        timezone_string = self.parent.get_time_dial()["channel_configuration"]["timezone"]
        ical_string = _create_ical_string(timezone_string, date, days)
        _json = {'recurrence': ical_string, 'enabled': True}

        self.api_interface.set_device_state(self, _json)
        return True