Welcome to the forum and congratulations on over a year off opiates!!!
Though I'm not a male, I have read that many things we would never ever consider "can" affect sexual health and functioning. Here's a link that may help you....it lists some of the "possible" reasons for ED:
http://www.webmd.com/erectile-dysfunction/guide/drugs-linked-erectile-dysfunction
Thank you very much its been a struggle but well worth the fight. Inpatient and op treatment and now serious involvement in the AA community. Thank you for the link