First question.........Have you been diagnosed, by a Medical Doctor as having " asthma " How long ago ? What medications are you taking now?
You mentioned that your sleep is disturbed by "asthma " that is odd. Most asthma attacks are either stress related or are triggerd by allergic reactions, or possibly air bourne irritants.
Caffeine is the main active ingredient in coffee, and it is a stimulant, so it should NOT be consumed before bed time.
Im my opinion, you should be discussing this subject with your Medical Doctor, not trying to self medicate.
Jim B. Toronto.