What are some psychiatric disorders that involve sleep but is not a sleep disorder?

Psych and Insomnia. Depression can cause insomnia or hypersomnia, bipolar mania can cause decreased need foe sleep and insomnia anxiety can cause racing thoughts and insomnia stimulants, caffeine later in the day can cause insomnia cocaine, meth can cause insomnia for days marijuana can cause hypersomnia etc these are general guidelines and it is not confirmatory.