A positive airway pressure device , comprising: a flow generator configured to provide gas at a pressure to a patient; a sensor configured to measure breathing of the patient; and a control system configured to: detect sleep disordered breathing based at least in part on analysis of data acquired by the sensor ; determine a sleep state of the patient based at least in part on analysis of data acquired by the sensor ; control the flow generator to provide a pressure within an effective therapeutic pressure range, the effective therapeutic pressure range being between a low pressure and a high pressure when the sleep state is determined to be asleep, the pressure provided based at least in part on whether sleep disordered breathing is detected; and control the flow generator to provide an awake pressure different from the low pressure if the sleep state is determined to be awake, wherein the control system employs a transition function to ramp the pressure up from the awake pressure to the effective therapeutic pressure range and ramp the pressure down from the effective therapeutic pressure range to the awake pressure; and wherein sleep disordered breathing is ignored during ramp up from the awake pressure to the low pressure. a flow generator configured to provide gas at a pressure to a patient; a sensor configured to measure breathing of the patient; and a control system configured to: detect sleep disordered breathing based at least in part on analysis of data acquired by the sensor ; determine a sleep state of the patient based at least in part on analysis of data acquired by the sensor ; control the flow generator to provide a pressure within an effective therapeutic pressure range, the effective therapeutic pressure range being between a low pressure and a high pressure when the sleep state is determined to be asleep, the pressure provided based at least in part on whether sleep disordered breathing is detected; and control the flow generator to provide an awake pressure different from the low pressure if the sleep state is determined to be awake, wherein the control system employs a transition function to ramp the pressure up from the awake pressure to the effective therapeutic pressure range and ramp the pressure down from the effective therapeutic pressure range to the awake pressure; and wherein sleep disordered breathing is ignored during ramp up from the awake pressure to the low pressure. detect sleep disordered breathing based at least in part on analysis of data acquired by the sensor ; determine a sleep state of the patient based at least in part on analysis of data acquired by the sensor ; control the flow generator to provide a pressure within an effective therapeutic pressure range, the effective therapeutic pressure range being between a low pressure and a high pressure when the sleep state is determined to be asleep, the pressure provided based at least in part on whether sleep disordered breathing is detected; and control the flow generator to provide an awake pressure different from the low pressure if the sleep state is determined to be awake, wherein the control system employs a transition function to ramp the pressure up from the awake pressure to the effective therapeutic pressure range and ramp the pressure down from the effective therapeutic pressure range to the awake pressure; and wherein sleep disordered breathing is ignored during ramp up from the awake pressure to the low pressure. <EOS>