Hypothyroidism causes heavy, unrefreshing sleep and daytime sleepiness. Hyperthyroidism causes racing thoughts and insomnia. Both need correction for normal sleep.