So you were semi erect this morning? Not your usual morning erection is what you are saying. Since you deal with insomnia, are you stressed out or suffering anxiety? That can impact our erections. Start with describing why you think you have insomnia (it was important enough to mention it) and what other mental health things you battle such as extreme stress, fatigue from insomnia, anxiety, etc. Is anything going on right now in your life?