Hypnopompia

Hypnopompia [hypnopompic] (from Greek: ὕπνος, húpnos, "sleep" + πομπέ, pompé, "conductor, guide") is the state of consciousness that exists between sleep and wakefulness (as in a person awakening from sleep), as opposed to hypnagogia, the state between wakefulness and sleep (as in a person falling asleep).