Sleep apnea is a condition that is treatable with cannabis- there even was a couple of studies!

THC reduces sleep apnoea in animal research
IACM-Bulletin

Functional role for cannabinoids in respiratory stability during sleep
AAMC: Functional role for cannabinoids in respiratory stability during sleep