def set_target_temperature(self, ain, temperature):
        """Set the thermostate target temperature."""
        param = 16 + ((float(temperature) - 8) * 2)

        if param < min(range(16, 56)):
            param = 253
        elif param > max(range(16, 56)):
            param = 254
        self._aha_request('sethkrtsoll', ain=ain, param=int(param))
Set the thermostate target temperature.