I think the thing to remember is that YOU are not miserable - the ED is miserable. Think of it as being like this - your ED is a greedy little beast. Whatever it convinces you you DON'T need, it is eating. It convinces you to avoid that tasty sandwich your body needs, to say no to a biscuit with your cuppa, because it then gets to feed itself with the notions of the things you've avoided.
I never gauge my ED as a separate entity - it is, after all, just a broken bit of my mind caused by offset disorders in other parts of my life. But EDs SEEM like they give structure and control to an otherwise anarchic world, but in reality all it does is gives you that illusion.
Think of it like being a goldfish in a well-decorated bowl, which is then plunged into the ocean. You can leave it whenever you want, but you don't. You get to SEE the rest of the world from the bowl, from the confines of the bubble, so you convince yourself that's all you want, and all you need. You've decorated the bowl so that nothing gets in or out that you yourself don't scrutinise. But what about that ocean?! Nah, can't be as structured, as rigid, as personally idyllic as the bowl, right? No, it's not. It's mental. It's scary. It's got things that eat you and want to hurt you in ways you couldn't imagine. But on the other hand, it's got exciting, new experiences, every day is an unexplored adventure - and it also has other fish oblivious to what a goldfish bowl even is, utterly contented and excited that this day might be the BEST day.
I was once told a piece of information that scared and excited me. "Everything you think means something in your life means nothing to someone else. If you died tonight, in your sleep, and got to watch how the world reacted to your passing, how would they react? I bet it would be a pin dropping in a rock concert. So why do you care for the things you care for? When they only mean what they mean to you? Because they make every day, this last day of your life, a reason to smile. Nobody knows why you are smiling, and they might never understand. So let your smile resonate for as long as your heart beats, because that means something to you, and now... everybody knows it."