def set_mode(self, mode):
        """
        :param mode:  a str, one of [home, away, night]
        :return: nothing
        """
        values = {"desired_state": {"mode": mode}}
        response = self.api_interface.set_device_state(self, values)
        self._update_state_from_response(response)