Hypnagogia

Hypnagogia is the state between wakefulness and sleep (as in a person falling asleep), as opposed to hypnopompia, the state between sleep and wakefulness (as in a person awakening from sleep).